Export from Endnote to Zotero - Access Date

Problem: the Access Date from EndNote is not exported into Zotero, it just does not appear
Tried some things, e.g. Y2 - Access Date| (Endnot) and Y2:"accessDate" (Zotero), but it just does not work

Really helpless
  • dstillman Zotero Team
    edited March 30, 2011
    There is no access date in the RIS spec. But if you know some JavaScript you could modify the RIS translator in Zotero to import it from a particular tag.
  • Hi Dan!
    We tried to export the Access Date from Endnote to the L3 RIS field.
    Ti import this field in Zotero, we added the code line
    L3:"accessDate",
    under "var fieldMap = {" and under "var inputFieldMap = {" in the RIS translator (RIS.js).
    The import only works if the date has the following format: YYYY-MM-DD
    But in most cases, we use the German format (DD.MM.YYYY), sometimes also YYYY/MM/DD or someting like "5. Oktober 2010"... Do you have any suggestions how the JavaScript code should be modified to import also alternative date formats?
    Thanks!
  • The date code is actually separate-- defined around line 186. You could tie in to it, but it'd take some additional logic.
  • It seems I found a workaround for the problem in the RIS translator by adding the following code to the end of the "function processTag" section:

    } else if(tag == "L3") {
    var dateParts = value.split(".");
    // split by GERMAN style (DD.MM.YYYY)
    if(dateParts.length == 1) {
    // if date format is not in german style, date is appended to abstract
    item.abstractNote += ". [AccessDate]: "+value;
    } else {
    // date format is converted to YYYY-MM-DD to be imported
    var dateX = dateParts[2] + "-" + dateParts[1] + "-" + dateParts[0];
    item.accessDate = dateX;
    }
    }

    thanks :)

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.