Skip to content

Instantly share code, notes, and snippets.

@brainu
brainu / 0-EndnoteProcess.md
Created October 29, 2017 15:09 — forked from platinhom/0-EndnoteProcess.md
DOI-endnote-process

Scripts for endnote librart processing.

  • modifyXML.py: To deal with nonsense chars in "Notes" column, reserve Time Cited information; modify improper doi format (remove DOI:, litter case)
  • prepareDOI.py: To pre-process doi number for getPDF.py script.
  • getPDF.py: Search PDF for endnote XML DOI records based on scihub.
    Save the doi number in a file (one doi per line) and use the file as script input.
    Each file save as "10.1021_ci111111a.pdf" in current directory. You have to move the valid file to "Done" Directory and use addPDF.py.
  • addPDF.py: Put found PDF in "Done" Directory, Some pdf don't want to search anymore in "Accept".
    Give a endnote XML as input. Move the PDF to a directory based on doi-paper number. A new xml file will be generated.
    Move all the directories in "Done" to "Endnote library.Data/PDF" and import the new xml file. You may delete old records firstly.