diff --git a/README.md b/README.md
index f7ab1a1..088990d 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,9 @@
# MarkDB-Connect (Zotero Markdown DataBase Connect)
-- **_Scans your Markdown database and adds a colored tag to associated Zotero items._**
-- **_Jump to Markdown notes from the contextual menu of Zotero items._**
-- **_Supports various Markdown databases, including [Obsidian](https://obsidian.md), [logseq](https://logseq.com), and [Zettlr](https://www.zettlr.com)_**
+- **_Scans your Markdown database and adds a colored tag to associated Zotero items._**
+- **_Jump to Markdown notes from the contextual menu of Zotero items._**
+- **_Supports various Markdown databases, including [Obsidian](https://obsidian.md), [logseq](https://logseq.com), and [Zettlr](https://www.zettlr.com)_**

@@ -26,13 +26,13 @@ Opens an existing markdown note in [Obsidian](https://obsidian.md), [logseq](htt
## Instalation
-- Download the plugin (the .xpi file) from the latest release: https://github.com/daeh/zotero-markdb-connect/releases
-- To download the .xpi file, right click it and select 'Save link as'
-- Run Zotero (version 5.x or 6.x)
-- Go to `Tools -> Add-ons`
-- `Install Add-on From File`
-- Choose the file `MarkDBConnect-0.0.19.xpi`
-- Restart Zotero
+- Download the plugin (the .xpi file) from the latest release: https://github.com/daeh/zotero-markdb-connect/releases
+- To download the .xpi file, right click it and select 'Save link as'
+- Run Zotero (version 5.x or 6.x)
+- Go to `Tools -> Add-ons`
+- `Install Add-on From File`
+- Choose the file `MarkDBConnect-0.0.20.xpi`
+- Restart Zotero
## Setup
@@ -40,14 +40,14 @@ A markdown file can specify which Zotero item it's linked to using either a [Bet
1. Using **Better BibTeX citekeys** to link markdown files to Zotero items.
- - This is recommended if you created the markdown notes with [obsidian-citation-plugin](https://github.com/hans/obsidian-citation-plugin), [BibNotes Formatter](https://github.com/stefanopagliari/bibnotes), or [Obsidian Zotero Integration](https://github.com/mgmeyers/obsidian-zotero-integration).
+ - This is recommended if you created the markdown notes with [obsidian-citation-plugin](https://github.com/hans/obsidian-citation-plugin), [BibNotes Formatter](https://github.com/stefanopagliari/bibnotes), or [Obsidian Zotero Integration](https://github.com/mgmeyers/obsidian-zotero-integration).
- - The BetterBibTeX citekey needs to appear in the filename or the metadata of the markdown note.
+ - The BetterBibTeX citekey needs to appear in the filename or the metadata of the markdown note.
2. Using **Zotero Item Keys** to link markdown files to Zotero items.
- - This is recommended if you created the markdown notes with the `Export Note` feature of Zotero.
- - The markdown note contents should include the Zotero-Item-Key in a consistent format.
+ - This is recommended if you created the markdown notes with the `Export Note` feature of Zotero.
+ - The markdown note contents should include the Zotero-Item-Key in a consistent format.
NOTE: multiple markdown files can point to the same Zotero item. But a given markdown file should only be linked to a single Zotero item. A markdown reading note can reference multiple Zotero items throughout the file, but _MarkDB-Connect_ will only link the markdown note to one BetterBibTeX-citekey / Zotero-Item-Key.
@@ -57,24 +57,24 @@ NOTE: multiple markdown files can point to the same Zotero item. But a given mar
_MarkDB-Connect_ can extract the BetterBibTeX citekey that specifies which Zotero Item a markdown note corresponds to. The BetterBibTeX citekey can be taken from the markdown filename or yaml metadata.
-- In `MarkDBConnect Preferences...` (under the `Tools` menu),
+- In `MarkDBConnect Preferences...` (under the `Tools` menu),
- - Specify the location of the folder that contains your markdown reading notes (e.g. `/Users/me/Documents/ObsVault/ReadingNotes/`). The _MarkDB-Connect_ plugin will recursively search this path for markdown files.
+ - Specify the location of the folder that contains your markdown reading notes (e.g. `/Users/me/Documents/ObsVault/ReadingNotes/`). The _MarkDB-Connect_ plugin will recursively search this path for markdown files.
- - The default behavior is to search for markdown files beginning with `@`.
- - Alternatively, you can specify a RegEx pattern to match your reading note files.
+ - The default behavior is to search for markdown files beginning with `@`.
+ - Alternatively, you can specify a RegEx pattern to match your reading note files.
- - Select the `Match notes based on BetterBibTeX citekey` option.
+ - Select the `Match notes based on BetterBibTeX citekey` option.
- - By default, _MarkDB-Connect_ expects that the filenames of your markdown reading note files begin with `@mycitekey` but can include extra information after it (e.g. a reading note with the BetterBibTeX citekey `shepard1987science` could have the file name `@shepard1987science.md` or `@shepard1987science Toward a universal law of generalization for psychological science.md`).
+ - By default, _MarkDB-Connect_ expects that the filenames of your markdown reading note files begin with `@mycitekey` but can include extra information after it (e.g. a reading note with the BetterBibTeX citekey `shepard1987science` could have the file name `@shepard1987science.md` or `@shepard1987science Toward a universal law of generalization for psychological science.md`).
- - Optionally, you can have _MarkDB-Connect_ read the metadata of your markdown notes and extract the citekey from one of the fields. To enable this, specify the metadata ID (`citekey` is a common value).
+ - Optionally, you can have _MarkDB-Connect_ read the metadata of your markdown notes and extract the citekey from one of the fields. To enable this, specify the metadata ID (`citekey` is a common value).
- - This is necessary if the file names do not begin with the correct citekey, which may happen if the citekeys include special characters (e.g. if a citekey contains `:`, it will probably need to be taken from the yaml metadata rather than the filename).
+ - This is necessary if the file names do not begin with the correct citekey, which may happen if the citekeys include special characters (e.g. if a citekey contains `:`, it will probably need to be taken from the yaml metadata rather than the filename).
-- Run the synchronization function from `Tools -> MarkDBConnect Sync Tags`.
- - This will add a tag (`ObsCite`) to every Zotero item for which there exists a reading note in the external folder you specified.
-- In the `Tags` plane of Zotero, right-click on the `ObsCite` tag and assign it a color, which will mark the tagged items in the preview plane of Zotero.
+- Run the synchronization function from `Tools -> MarkDBConnect Sync Tags`.
+ - This will add a tag (`ObsCite`) to every Zotero item for which there exists a reading note in the external folder you specified.
+- In the `Tags` plane of Zotero, right-click on the `ObsCite` tag and assign it a color, which will mark the tagged items in the preview plane of Zotero.
---
@@ -84,28 +84,28 @@ _MarkDB-Connect_ can extract the Zotero-Item-Key that specifies which Zotero Ite
Zotero automatically generates Item Keys, they take the form of `ABCD1234`, as in `zotero://select/library/items/ABCD1234`. NB this is not the same as the BetterBibTeX citekey you assigned an item (e.g. `mycitekey` in `zotero://select/items/@mycitekey`).
-- In `MarkDBConnect Preferences...` (under the `Tools` menu),
+- In `MarkDBConnect Preferences...` (under the `Tools` menu),
- - Specify the location of the folder that contains your markdown reading notes (e.g. `/Users/me/Documents/ObsVault/ReadingNotes/`). The _MarkDB-Connect_ plugin will recursively search this path for markdown files.
+ - Specify the location of the folder that contains your markdown reading notes (e.g. `/Users/me/Documents/ObsVault/ReadingNotes/`). The _MarkDB-Connect_ plugin will recursively search this path for markdown files.
- - The default behavior is to search for markdown files beginning with `@`.
- - Alternatively, you can specify a RegEx pattern to match your reading note files.
+ - The default behavior is to search for markdown files beginning with `@`.
+ - Alternatively, you can specify a RegEx pattern to match your reading note files.
- - Select the `Match notes based on Zotero-Item-Key` option.
+ - Select the `Match notes based on Zotero-Item-Key` option.
- - Specify a RegEx pattern to extract the Zotero-Item-Key from the markdown contents.
+ - Specify a RegEx pattern to extract the Zotero-Item-Key from the markdown contents.
- E.g. if your note has the line
+ E.g. if your note has the line
- `- local:: [local zotero](zotero://select/library/items/GZ9DQ2AM)`
+ `- local:: [local zotero](zotero://select/library/items/GZ9DQ2AM)`
- you could extract the Zotero key (`GZ9DQ2AM`) using this RegEx pattern:
+ you could extract the Zotero key (`GZ9DQ2AM`) using this RegEx pattern:
- `^- local::.+\/items\/(\w+)\)`
+ `^- local::.+\/items\/(\w+)\)`
-- Run the synchronization function from `Tools -> MarkDBConnect Sync Tags`.
- - This will add a tag (`ObsCite`) to every Zotero item for which there exists a reading note in the external folder you specified.
-- In the `Tags` plane of Zotero, right-click on the `ObsCite` tag and assign it a color, which will mark the tagged items in the preview plane of Zotero.
+- Run the synchronization function from `Tools -> MarkDBConnect Sync Tags`.
+ - This will add a tag (`ObsCite`) to every Zotero item for which there exists a reading note in the external folder you specified.
+- In the `Tags` plane of Zotero, right-click on the `ObsCite` tag and assign it a color, which will mark the tagged items in the preview plane of Zotero.
---
@@ -123,7 +123,8 @@ doi: 10.1016/j.copsyc.2017.04.019
# Formalizing emotion concepts within a Bayesian model of theory of mind
-The body of notes can include references to other Zotero items. The _MarkDB-Connect_ plugin will only link this file to one Zotero item.
+The body of notes can include references to other Zotero items. The _MarkDB-Connect_
+plugin will only link this file to one Zotero item.
Here are links to other papers.
@@ -136,18 +137,18 @@ This one uses an Obsidian wiki link: [[@cusimano2018cogsci]]
## Related Projects
-- [obsidian-citation-plugin](https://github.com/hans/obsidian-citation-plugin) by hans
- - Obsidian plugin that integrates your Zotero database with Obsidian.
-- [BibNotes Formatter](https://github.com/stefanopagliari/bibnotes) by stefanopagliari
- - Obsidian plugin to facilitate exporting annotations from Zotero into Obsidian.
-- [Obsidian Zotero Integration](https://github.com/mgmeyers/obsidian-zotero-integration) by mgmeyers
- - Obsidian plugin to facilitate exporting annotations from Zotero into Obsidian.
-- [Zotero 6 'Export Notes' feature](https://forums.zotero.org/discussion/93521/available-for-beta-testing-markdown-export-of-notes/p1) by Zotero
- - Zotero 6 beta feature to export notes and annotations from Zotero items as markdown files.
-- [Zotero-mdnotes](https://argentinaos.com/zotero-mdnotes/) by argenos
- - Zotero plugin to export metadata and notes from Zotero items as markdown files.
-- [Zotero to Markdown](https://github.com/e-alizadeh/Zotero2md) by e-alizadeh
- - Python library to export annotations and notes from Zotero items as markdown files.
+- [obsidian-citation-plugin](https://github.com/hans/obsidian-citation-plugin) by hans
+ - Obsidian plugin that integrates your Zotero database with Obsidian.
+- [BibNotes Formatter](https://github.com/stefanopagliari/bibnotes) by stefanopagliari
+ - Obsidian plugin to facilitate exporting annotations from Zotero into Obsidian.
+- [Obsidian Zotero Integration](https://github.com/mgmeyers/obsidian-zotero-integration) by mgmeyers
+ - Obsidian plugin to facilitate exporting annotations from Zotero into Obsidian.
+- [Zotero 6 'Export Notes' feature](https://forums.zotero.org/discussion/93521/available-for-beta-testing-markdown-export-of-notes/p1) by Zotero
+ - Zotero 6 beta feature to export notes and annotations from Zotero items as markdown files.
+- [Zotero-mdnotes](https://argentinaos.com/zotero-mdnotes/) by argenos
+ - Zotero plugin to export metadata and notes from Zotero items as markdown files.
+- [Zotero to Markdown](https://github.com/e-alizadeh/Zotero2md) by e-alizadeh
+ - Python library to export annotations and notes from Zotero items as markdown files.
## Notes
diff --git a/bin/build.sh b/bin/build.sh
index fc71c82..b79326a 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-version='0.0.19'
+version='0.0.20'
rm -f MarkDBConnect-${version}.xpi
zip -r MarkDBConnect-${version}.xpi chrome/* defaults/* chrome.manifest install.rdf -x "*.DS_Store"
diff --git a/chrome/content/options.xul b/chrome/content/options.xul
index 2e80ba6..904ff28 100644
--- a/chrome/content/options.xul
+++ b/chrome/content/options.xul
@@ -214,6 +214,6 @@
-
+
diff --git a/chrome/content/scripts/mdbconnect.js b/chrome/content/scripts/mdbconnect.js
index e115fcc..f274e88 100644
--- a/chrome/content/scripts/mdbconnect.js
+++ b/chrome/content/scripts/mdbconnect.js
@@ -14,7 +14,7 @@ if (typeof Zotero === 'undefined') {
Zotero.MarkDBconnect = {
- version: '0.0.19',
+ version: '0.0.20',
folderSep: null,
cleanrun: true,
suppressNotifications: false,
@@ -1122,7 +1122,7 @@ Zotero.MarkDBconnect = {
const configuration = this.getPref('configuration');
if (configuration === 'false') {
-
+
Zotero.debug("MarkDBconnect: configuration not found");
/// check if there are preexisting preferences
@@ -1146,7 +1146,7 @@ Zotero.MarkDBconnect = {
this.showNotification(...["MarkDBConnect", "ZotObsCite has been renamed. Please remove 'ZoteroObsidianCitations' from your Extensions", false]);
return;
}
- } catch (error) {}
+ } catch (error) { }
} else {
/// don't run sync if plugin has yet to be configured
this.showNotification(...["MarkDBConnect", "Please configure MarkDBConnect preferences", true]);
diff --git a/chrome/locale/en-US/options.dtd b/chrome/locale/en-US/options.dtd
index d6deda5..6a025ab 100644
--- a/chrome/locale/en-US/options.dtd
+++ b/chrome/locale/en-US/options.dtd
@@ -20,6 +20,7 @@
+
diff --git a/install.rdf b/install.rdf
index ce7248b..36d8d93 100644
--- a/install.rdf
+++ b/install.rdf
@@ -5,7 +5,7 @@
daeda@mit.edu
MarkDBConnect
- 0.0.19
+ 0.0.20
2
Dae Houlihan
Add a tag to Zotero items that have a external note.
diff --git a/update.rdf b/update.rdf
index 55e0692..520d868 100644
--- a/update.rdf
+++ b/update.rdf
@@ -6,13 +6,13 @@
- 0.0.19
+ 0.0.20
zotero@chnm.gmu.edu
5.0.0
6.0.*
- https://github.com/daeh/zotero-markdb-connect/releases/download/v0.0.19/MarkDBConnect-0.0.19.xpi
+ https://github.com/daeh/zotero-markdb-connect/releases/download/v0.0.20/MarkDBConnect-0.0.20.xpi