Changes to translator files from zotero:// link Quick Copy options

  • Did this cause any changes to Zotero translator files? Ever since this update, pasting and copying into Tana (the note-taking app I use), only picks up the title and author, not the other items (e.g., abstract, date, Zotero link) I've included in my translator file that worked perfectly until this update. Thanks.
  • Not sure what you're talking about. What "translator file"?
  • I created a translator file (https://www.zotero.org/support/translators) to copy and paste Zotero data into a note taking app. It worked perfectly until the last Zotero update. Now only the title and author fields get copied.
  • We obviously can't debug your custom translator without any details — we have no idea what you're doing, what code you're running, or how this relates to Zotero's built-in Quick Copy functionality. If you want to provide a link to the full source code and explain exactly what you did here, we might be able to offer a suggestion.
  • {
    "translatorID":"dda092d2-a257-46af-b9a3-2f04a55cb04f",
    "translatorType":2,
    "label":"Tana Metadata Export",
    "creator":"Stian Håklev based on Joel Chan's work",
    "target":"md",
    "minVersion":"2.0",
    "maxVersion":"",
    "priority":200,
    "inRepository":false,
    "lastUpdated":"2022-09-07 - 10:15"
    }

    function doExport() {
    Zotero.write('%%tana%%\n');
    var item;
    while (item = Zotero.nextItem()) {
    // ref
    Zotero.write('- ' + item.title + ' #source\n');

    // author
    Zotero.write(' - Author:: \n');
    // write authors as indented nodes
    for (author in item.creators){
    Zotero.write(' - [[' + (item.creators[author].firstName||'') + ' ' + (item.creators[author].lastName||'') + ']]\n');
    }
    Zotero.write('\n');

    // year
    var date = Zotero.Utilities.strToDate(item.date);
    var dateS = (date.year) ? date.year : item.date;
    Zotero.write(' - Year:: ')
    Zotero.write((dateS||'') + '\n')

    // publication
    Zotero.write(' - Publication:: ')
    Zotero.write((item.publicationTitle ||'')+ '\n')

    // zotero link
    var library_id = item.libraryID ? item.libraryID : 0;
    var itemLink = 'zotero://select/items/' + library_id + '_' + item.key;

    Zotero.write(' - Zotero link:: ')
    Zotero.write('[Zotero Link](' + itemLink + ')\n')

    // url with citation
    Zotero.write(' - URL:: ' + (item.url||'') + '\n')

    Zotero.write(' - Abstract:: '+ (item.abstractNote || '')+ '\n')
    }
    }

  • Works fine for me. You'd have to look at the error console and debug output, including adding some extra debug lines if necessary.

    This shouldn't be related in any way to the changes in the thread you posted to.
  • I should ask, did you actually test the file with the Tana note-taking app?
  • Please disregard. I found the issue, which was in Tana. Thanks again.
Sign In or Register to comment.