Endnote 'note' field stripped of formatting
hi,
i'm trying to make the big switch and encountering a glitch: in Endnote the text that i've typed into my 'note' fields is carefully formatted with line and paragraph breaks and sometimes italics and other text attributes--the line and paragraph breaks are preserved in the .txt file that Endnote exports, but zotero does _not_ seem to preserve them, so i end up with a massive block of undifferentiated text. i can let go of the attributes, i think, 'cause i know that the .txt format doesn't preserve them, but i need to line and paragraph breaks!
my version of Endnote allows me to use the .RIS export format, but it only allows me to _save_ in .txt, .rtf, .htm, or .xml. [when the "export window" comes up, what i'm offered diverges from the instructions on the zotero instructions document:
Once RefMan (RIS) is set as the format, select “Export” from the File menu. In the Export window that pops up, choose “Text Only”, select the RIS output style immediately below “Text Only” in the dialog, and hit “Save.”
".RIS" is not offered as an output style, only the four formats i listed above.
any suggestions would be welcome!
i'm trying to make the big switch and encountering a glitch: in Endnote the text that i've typed into my 'note' fields is carefully formatted with line and paragraph breaks and sometimes italics and other text attributes--the line and paragraph breaks are preserved in the .txt file that Endnote exports, but zotero does _not_ seem to preserve them, so i end up with a massive block of undifferentiated text. i can let go of the attributes, i think, 'cause i know that the .txt format doesn't preserve them, but i need to line and paragraph breaks!
my version of Endnote allows me to use the .RIS export format, but it only allows me to _save_ in .txt, .rtf, .htm, or .xml. [when the "export window" comes up, what i'm offered diverges from the instructions on the zotero instructions document:
Once RefMan (RIS) is set as the format, select “Export” from the File menu. In the Export window that pops up, choose “Text Only”, select the RIS output style immediately below “Text Only” in the dialog, and hit “Save.”
".RIS" is not offered as an output style, only the four formats i listed above.
any suggestions would be welcome!
Linebreaks should be possible-- hopefully one of our Endnote migration gurus can chip in here.
thanks.
Loren
It should be possible to copy and paste the note contents into Zotero and maintain formatting. I know that that sounds horribly slow, but I don't know of any other way you can be sure that the formatting will be preserved. The formatting of notes is not specified in any of the main standards for exchanging bibliographic data, so no software does it very well.
actually, I wonder if this isn't a bug/deficiency: Zotero doesn't import line or paragraph breaks into notes. That's not a RIS limitation - line breaks in abstracts are imported fine.
This is even true for Zotero's own RIS export, which uses <p> </p> for hard returns in notes - and has it promptly stripped out on import. There has got to be a better solution for this.
is this fixable?
thanks.
Losing the paragraphs and line breaks that Zotero puts in itself is bad.
But I'm not sure what test we'd use to determine if the input was plaintext.
<p>Not all actors in policy coalition have same interest. Sometimes ambiguity is helpful.</p>
<p>In French Pensions: Establishment of a secondary </br> save as you earn tier based on mutliple support, first from the right, but then also from savors and finally from leftists in an anti-American turn, because anglo-investment funds were becoming too influential.</p>
imports as one paragraph for me - the Ps were added by Zotero RIS export and I tried to insert the </br> to see if it did anything, all to no avail. (the html of the imported note just has the paragraph tags at the beginning and the end).
if (Zotero.Utilities.unescapeHTML) {
(at the beginning ofvalue = Zotero.Utilities.unescapeHTML(value.replace("\n", "<br>", "g"));
}
processTag(..)
. No cleaning of HTML tags anywhere in RIS.js.Try importing again. I may have been too aggressive in maintaining spacing-- let me know.
http://github.com/ajlyon/zotero-bits/raw/master/RIS-2.0.9.js
Save it as "RIS.js" to the translators directory.
@mcsugarfree: Please try the new translator and let us know how it goes.
@ajlyon: how do i test the new translator (do i need to install a different version of zotero, or am i just installing a new little "module" in the version i already have?)? if there is a standard explanation in the documentation of how to implement (and test) changes like these, would you point me to it, please?
@Dan Stillman: please explain where in the process of exporting records from Endnote as .txt files in RIS format and then importing them into Zotero i would use the "text2html() function" you mention. is this part of the same process that ajlyon is talking about, or is it some alternative strategy.
sorry for my (relative) helplessness!
"how do i test the new translator"
see ajlyon's post above - download RIS.js (or RIS-2.0.9.js if you're using ZOtero 2.0.9 and rename it to RIS.js) and use it to replace the file of the same name in Zotero's translator directory (see again ajlyon's post on how to find that).
what i was trying to say was that for some reason zotero is not showing certain characters but is instead inserting some sort of, like, html or ASCII tag for those characters into my notes...kapeesh?
& quot;
?