NOTE: In recent (version greater than 13.3) versions of macOS, Apple has enhanced their security policies such that it is more difficult to install open source software like eprinttools. To allow software like eprinttools on your Mac you need to author installation of unsigned software when using the Mac Terminal application. Go to your system settings, click on “Privacy & Secutiry”, then click on “Developer Tools”. You should see the Terminal listed. Set the setting so you are allowed to install unsigned software in the Terminal. You can switch this back off after run the software installed installed.
cd
doi2eprintxml
and click “Open” in the dialogSteps 2 through 5
cd
curl https://caltechlibrary.github.io/eprinttools/installer.sh | sh
open bin
Step 6 switch to the finder window. Right click on the
doi2eprintxml
program, then click “open” in the dialog
box.
Step 7 close the Terminal window and reopen it. You should now be
ready to use doi2eprintxml
.
You can test by running the command
doi2eprintxml -version
.
The tool doi2eprintxml
is a command line program, it is
normally run from the terminal’s command prompt. The purpose of the
program is to take a list of DOI contact CrossRef or DataCite and
generate what is called an EPrint XML document. The EPrint XML document
is used to import records into EPrints (e.g. CaltechAUTHORS) via the
“import” button under “Manage Deposits” page.
The typical workflow is to create a plain text file (UTF-8 encoded)
using a text editor such as VSCode or Zed with one DOI per line. The
doi2eprintxml
program can then read the list and generate
an EPrint XML document for importing into EPrints. Follow the following
steps to generate a file called eprint.xml based on a
list of of DOI in a file called doi.txt. In the example
below code
is the VS code editor, replace that line with
your favorite text editor.
cd ~/Desktop
code doi.txt
doi2eprintxml -i doi.txt >eprints.xml
In this example the DOI is “10.1021/acsami.7b15651”.
doi2eprintxml "10.1021/acsami.7b15651" > article.xml
For details of using doi2eprintxml
see the manual
page