fix: do not wrap abstract note in quotes

pull/2620/head
Weihua Lu 2021-08-12 13:49:20 +08:00
parent f672f269fa
commit 1df0cf25cf
2 changed files with 6 additions and 6 deletions

View File

@ -127,7 +127,7 @@
:tags tags
:date date
:item-type (util/format "[[%s]]" type))
(dissoc :creators)
(dissoc :creators :abstract-note)
(rename-keys {:title :original-title})
(assoc :title (page-name item)))]
(->> data
@ -155,6 +155,8 @@
(defmethod extract :default
[item]
(let [page-name (page-name item)
properties (properties item)]
properties (properties item)
abstract-note (-> item :data :abstract-note)]
{:page-name page-name
:properties properties}))
:properties properties
:abstract-note abstract-note}))

View File

@ -59,9 +59,7 @@
:or {insert-command? true notification? true}
:as opt}]
(go
(let [{:keys [page-name properties]} (extractor/extract item)
abstract-note (get properties :abstract-note)
properties (dissoc properties :abstract-note)]
(let [{:keys [page-name properties abstract-note]} (extractor/extract item)]
(when insert-command?
(handle-command-zotero block-dom-id page-name)
(editor-handler/save-current-block!))