Browse Source

fix item type format

Weihua Lu 4 years ago
parent
commit
1c46adb975
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/extensions/zotero/extractor.cljs

+ 2 - 2
src/main/frontend/extensions/zotero/extractor.cljs

@@ -109,7 +109,7 @@
        (markdown-link "Web library" (web-link item))))
 
 (defn properties [item]
-  (let [type    (util/format "[[%s]]" (item-type item))
+  (let [type    (item-type item)
         fields  (schema/fields type)
         authors (authors item)
         tags    (tags item)
@@ -123,7 +123,7 @@
                                 :authors authors
                                 :tags tags
                                 :date date
-                                :item-type type)
+                                :item-type (util/format "[[%s]]" type))
                          (dissoc :creators)
                          (rename-keys {:title :original-title})
                          (assoc :title (page-name item)))]