mirror of https://github.com/logseq/logseq
fix: do not wrap abstract note in quotes
parent
f672f269fa
commit
1df0cf25cf
|
@ -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}))
|
||||
|
|
|
@ -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!))
|
||||
|
|
Loading…
Reference in New Issue