Copy information from Notes to Info field: extra
I have just imported my library from endnote to standalone zotero for Mac. Information in fields that are not in zotero went into the Notes section. I would like to copy them all into the Extra: field under the Info tab. Is there anyway to do this? It looks like I could go back to endnote and move the data into whatever field gets imported as Extra: and import the library again. That might be the easiest way. Any ideas about how to do it in Zotero?
If you're not afraid of computers (you don't need to know any programming yourself) we can tell you exactly what to do.
Doing this in Zotero proper would be a good deal more involved and require javascript coding.
Let us know whether that'd be useful.
Also I would like to add to the Notes pane, the rather lengthy notes on articles that I currently have in separate Word documents. If I only use the Notes area for that, then I will be able to see easily in the library view, whether I have notes on a publication or not. At the moment I see all these 'notes' that are really just stuff from some fields in Endnote that did not go into Info fields in Zotero.
Find your Zotero data directory. In that directory, you will see a "translators" directory, inside that directory, you fill find a "RIS.js" file. Open that file in a text editor, like WordPad or NotePad++ (I'd recommend the latter).
Search for the line "if(note) {" (should be line 920). Then modify the following:
- Few lines above, you will find two instances of "<br/>". Change those to "\n"
- Right below "if(note) {" add the following:
- Comment out or delete the remaining code inside "if(note)" block
The end result should look like:if(!item.extra) item.extra = '';
else item.extra += '\n';
item.extra += note;
//store unsupported and unknown fields in a single note
if(!Zotero.parentTranslator) {
var note = '';
for(var i=0, n=item.unsupportedFields.length; i<n; i++) {
note += item.unsupportedFields[i] + '\n';
}
for(var i=0, n=item.unknownFields.length; i<n; i++) {
note += item.unknownFields[i] + '\n';
}
if(note) {
if(!item.extra) item.extra = '';
else item.extra += '\n';
item.extra += note;
//note = "The following values have no corresponding Zotero field:<br/>" + note;
//item.notes.push({note: note.trim(), tags: ['_RIS import']});
}
}
I assume you're using RIS format. You will need to modify the RefWorks exporter or search/replace the "ID - " tag in the file it generates or can edit Zotero's RIS.js to send the ID field somewhere (it is ignored currently). "M2" goes to extra. Some people use 'AN' for these sorts of accession numbers instead. This would get pushed to Zotero's "location in archive" field.
annote = {Need to follow this up.},
I changed this to
M2 = {Need to follow this up.},
When I imported the edited .bib file into Zotero the note wasn't there (unsurprisingly) but the 'Extra' field was blank too. Sorry if I'm not being too bright but I can't figure out how to get the annote data into 'Extra'. What am I doing wrong?
Alternatively, you can use this tool, which does a more complete Mendeley->Zotero export than Mendeley normally allows:
https://github.com/rdiaz02/Adios_Mendeley
Alternatively, you can do the same thing with Endnote XML, though the instructions will be slightly different and the file to change is Endnote XML.js not RIS.js -- I'm afraid I won't have time to verify & troubleshoot the code, though.