Permalink
Browse files

Fix notes in RIS (#1459)

Only include them in export where the option is checked
  • Loading branch information...
adam3smith committed Nov 7, 2017
1 parent 2bad8b9 commit b985f8b8b84868b06a8de52ce5f20bcbba432f06
Showing with 5 additions and 3 deletions.
  1. +5 −3 RIS.js
View
8 RIS.js
@@ -18,7 +18,7 @@
"inRepository": true,
"translatorType": 3,
"browserSupport": "gcsv",
"lastUpdated": "2017-07-27 09:11:30"
"lastUpdated": "2017-10-28 09:11:30"
}
function detectImport() {
@@ -153,7 +153,7 @@ for(ty in degenerateExportTypeMap) {
*****************************/
/** Syntax
* {
* RIS-TAG:
* RIS-TAG:
* String, Zotero field used for any item type
* List, item-type dependent mapping
* {
@@ -1920,7 +1920,9 @@ function doExport() {
if(!value.length) value = undefined;
break;
case "notes":
value = item.notes.map(function(n) { return n.note.replace(/(?:\r\n?|\n)/g, "\r\n"); });
if (item.notes && Zotero.getOption("exportNotes")) {
value = item.notes.map(function(n) { return n.note.replace(/(?:\r\n?|\n)/g, "\r\n"); });
}
break;
case "tags":
value = item.tags.map(function(t) { return t.tag; });

0 comments on commit b985f8b

Please sign in to comment.