{ "translatorID": "18dd188a-9afc-4cd6-8775-1980c3ce0fbf", "label": "Simple Evernote Export", "creator": "Volodymir Skipa", "target": "enex", "minVersion": "2.1.9", "maxVersion": "", "priority": 50, "displayOptions": { "exportNotes": true }, "inRepository": false, "translatorType": 2, "browserSupport": "g", "lastUpdated": "2012-02-17 11:51:00" } /* Evernote Export Translator Copyright (C) 2012 Volodymir Skipa This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ function doExport() { Zotero.setCharacterSet("utf-8"); var evernoteString = ""; var item; while(item = Zotero.nextItem()) { var itemString = ""; itemString += ""+item.title+""; itemString += ""; /** NOTES **/ if(Zotero.getOption("exportNotes")) { itemString += ""; for(var i in item.notes) { itemString += "
"+item.notes[i].note+"
"; } itemString += "
]]>"; } var dateToFormat = new String(item.date); var evernoteDate = dateToFormat.replace(/-/g, ""); itemString += "
"+evernoteDate+"T000000Z"; /** TAGS **/ for(var j in item.tags) { itemString += ""+item.tags[j].tag+""; } itemString += "web.clip"+item.url+"
"; // replace "&" with "&" itemString = itemString.replace(/\&/g, "&"); evernoteString += itemString; } Zotero.write(evernoteString); Zotero.write("
"); }