Changing translator by hand (RIS.js)
Hello,
a collegue of mine wants to import his whole EndNote library into Zotero. That's nothing to worry about. But he wants the follow field allocation (EndNote -> Zotero):
Notes -> Extra
Research Notes -> Rights
The standard RIS.js does not support the Rights-field, RIS fields M1 and M2 are mapped to Extra. So, I took a look into RIS.js in C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox\Profiles\<profile>\zotero\translators\RIS.js
After (line 317ff)
} else if (tag == "M1" || tag == "M2") {
// Miscellaneous fields
if (!item.extra) {
item.extra = value;
} else {
item.extra += "; "+value;
}
}
I added a new elseif:
} else if (tag == "M1" || tag == "M2") {
// Miscellaneous fields
if (!item.extra) {
item.extra = value;
} else {
item.extra += "; "+value;
}
} else if (tag == "RN") {
// Research Notes fields
if (!item.rights) {
item.rights = value;
}
}
If I import given references into Zotero, the Rights-field is left blank. I tried some time yesterday and discovered something strange:
I changed the Extra-field code:
} else if (tag == "M2") {
// Miscellaneous fields
if (!item.extra) {
item.extra = value;
} else {
item.extra += "; "+value;
}
}
But referenced with a M1-field from EndNote are still mapped to the Rights-field in Zotero. It seems that changes in the translators are not taken into account.
Is there a solution for my problem?
Best regards,
Arne
P.S.: I know that EndNote can use Bibtex and the Bibtex translator supports the rights-field. But Zotero does import all attachements in this translator and I'd like to use links.
a collegue of mine wants to import his whole EndNote library into Zotero. That's nothing to worry about. But he wants the follow field allocation (EndNote -> Zotero):
Notes -> Extra
Research Notes -> Rights
The standard RIS.js does not support the Rights-field, RIS fields M1 and M2 are mapped to Extra. So, I took a look into RIS.js in C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox\Profiles\<profile>\zotero\translators\RIS.js
After (line 317ff)
} else if (tag == "M1" || tag == "M2") {
// Miscellaneous fields
if (!item.extra) {
item.extra = value;
} else {
item.extra += "; "+value;
}
}
I added a new elseif:
} else if (tag == "M1" || tag == "M2") {
// Miscellaneous fields
if (!item.extra) {
item.extra = value;
} else {
item.extra += "; "+value;
}
} else if (tag == "RN") {
// Research Notes fields
if (!item.rights) {
item.rights = value;
}
}
If I import given references into Zotero, the Rights-field is left blank. I tried some time yesterday and discovered something strange:
I changed the Extra-field code:
} else if (tag == "M2") {
// Miscellaneous fields
if (!item.extra) {
item.extra = value;
} else {
item.extra += "; "+value;
}
}
But referenced with a M1-field from EndNote are still mapped to the Rights-field in Zotero. It seems that changes in the translators are not taken into account.
Is there a solution for my problem?
Best regards,
Arne
P.S.: I know that EndNote can use Bibtex and the Bibtex translator supports the rights-field. But Zotero does import all attachements in this translator and I'd like to use links.
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.
The Zotero BibTeX translator can also import attachments.
The new Translator works now. I did restart Firefox each time but did not close UltraEdit (just saved the file). This might be the cause.
@noksagt: Yes, the Bibtex translator does import attachments, but also uploads them to Zotero.
Regards,
Arne