01-12-2020 03:10 PM
So, here's the problem I'm trying to solve for a friend. He wrote a 40-page thesis using CWYW, which has 570 references (Numbered style). He then proceeded to screw up by editing the document in Google Docs. Every single reference is now plaintext, and I'm trying to help him use this with CWYW to fix the order.
He still has the old document with the citations intact. However, he has made heavy changes to it in the Google Docs version, which can't be easily replicated. However, since he took care not to change any reference numbers, if I paste the new document into the end of the intact older version, the reference numbers would still be correct according to the order of first appearance (!), since the original document is the first half of the new one. The thing is, they're all plaintext.
Is there any way to make CWYW recognize plaintext  as reference 1 in the list, instead of [#1] (which is what happens when I make it so that  are picked up as temporary citations), since record numbers unfortunately don't match the citation order? It's a 42000-word thesis, so it's nearly impossible to fix this manually. Thanks in advance.
01-12-2020 04:42 PM
This is what I would try first. I would make a copy of the old version with the endnote citations and unformat it to temporary citations. Then I would compare it to the current plain text version. Search for the curley bracket and reject that change (keeping the curley bracket version). Reject the citation changes and accept the text changes. Tedious but you should end up with a version that can be updated with the library.
number two -- go thru the library and put the number in the thesis into the label field (you may want to do this on a copy of the library) -- I know it almost 600 references but I am not sure whether it would be faster than suggestion 1. Then you can change the Endnote preferences to use label instead of the record number.  will be recognized as the label and not record number.
number three -- drag each reference into a new library in order so it gets a record number that matches the one it should be. This is really a bit of pain, because if you make one mistake...
01-12-2020 06:36 PM
Thank you for your time. Solutions two and three, while tedious, would indeed work, and one of those is probably what my friend will do if we can't get an automated solution. Number one, however, is what I'm most intrigued with, since it would probably be the fastest method. Some pages are pretty heavily rewritten, with references moved around quite a lot. Would this still be feasible?
01-13-2020 06:10 PM
Can't tell until you try! -- It may mean you miss a few and need to insert them manually. But if it works, it might be worth the time.
Depends on how heavily modified, and whether Word can see the forest thru the trees.
But if he truly didn't change any numbering, I liked your idea of copying the bibiliography to the end from the original! I just find it hard to believe none of them would have changed, if he rearranged the order of any text? ---
You might break the document into chapters before running the compare? I would do that by making multiple copies (for as many chapters) and deleting all but 1 chapter from each, so you don't have any copy paste artifacts.
07-21-2020 01:19 AM
Drag each reference to a new library in order until you get a record number that matches the number it should be. This is really a little pain, because if you make a mistake.
10-28-2020 01:38 PM
I run into a similar problem with an old Word document, where I only had a plain text version.
I wrote two small python scripts to help me with this: The first one takes all references and searches for them using Pubmed. The resulting file can be imported into a new Endnote library, which can subsequently be used with the second script to convert all numbered citations in a Word file back to Endnote placeholders aka curly brackets. Endnote will detect this and if used with the new library will fill on all the missing information to allow editing of the citation list.
The scripts can be found on github and are free to use and modify github.com/TischerT/endnote_convert