Skip to content

Commit

Permalink
Note Markdown: Fix item key for unsynced libraries
Browse files Browse the repository at this point in the history
From zotero/markdown-translator-builder#3144e2b5fc
  • Loading branch information
dstillman committed Mar 21, 2022
1 parent b18eeac commit d37788c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Note Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"inRepository": true,
"translatorType": 2,
"lastUpdated": "2021-12-15 10:26:46"
"lastUpdated": "2022-03-21 12:00:00"
}

/*
Expand Down Expand Up @@ -1445,7 +1445,7 @@ function convert(doc) {
let openURI;
let uriParts = uri.split('/');
let libraryType = uriParts[3];
let key = uriParts[6];
let key = uriParts[uriParts.length - 1];
if (libraryType === 'users') {
openURI = 'zotero://open-pdf/library/items/' + key;
}
Expand Down Expand Up @@ -1495,7 +1495,7 @@ function convert(doc) {
if (typeof uri === 'string') {
let uriParts = uri.split('/');
let libraryType = uriParts[3];
let key = uriParts[6];
let key = uriParts[uriParts.length - 1];
if (libraryType === 'users') {
uris.push('zotero://select/library/items/' + key);
}
Expand Down

0 comments on commit d37788c

Please sign in to comment.