|
@@ -83,6 +83,7 @@
|
|
|
:editor/show-date-picker? false
|
|
:editor/show-date-picker? false
|
|
|
;; With label or other data
|
|
;; With label or other data
|
|
|
:editor/show-input nil
|
|
:editor/show-input nil
|
|
|
|
|
+ :editor/show-zotero false
|
|
|
:editor/last-saved-cursor nil
|
|
:editor/last-saved-cursor nil
|
|
|
:editor/editing? nil
|
|
:editor/editing? nil
|
|
|
:editor/last-edit-block-input-id nil
|
|
:editor/last-edit-block-input-id nil
|
|
@@ -540,6 +541,16 @@
|
|
|
[]
|
|
[]
|
|
|
(get @state :editor/show-input))
|
|
(get @state :editor/show-input))
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+(defn set-editor-show-zotero!
|
|
|
|
|
+ [value]
|
|
|
|
|
+ (set-state! :editor/show-zotero value))
|
|
|
|
|
+
|
|
|
|
|
+(defn get-editor-show-zotero
|
|
|
|
|
+ []
|
|
|
|
|
+ (get @state :editor/show-zotero))
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
(defn set-edit-input-id!
|
|
(defn set-edit-input-id!
|
|
|
[input-id]
|
|
[input-id]
|
|
|
(swap! state update :editor/editing?
|
|
(swap! state update :editor/editing?
|
|
@@ -1255,8 +1266,8 @@
|
|
|
[q]
|
|
[q]
|
|
|
(when-not (string/blank? q)
|
|
(when-not (string/blank? q)
|
|
|
(update-state! :search/graph-filters
|
|
(update-state! :search/graph-filters
|
|
|
- (fn [value]
|
|
|
|
|
- (vec (distinct (conj value q)))))))
|
|
|
|
|
|
|
+ (fn [value]
|
|
|
|
|
+ (vec (distinct (conj value q)))))))
|
|
|
|
|
|
|
|
(defn remove-search-filter!
|
|
(defn remove-search-filter!
|
|
|
[q]
|
|
[q]
|