Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doi-registration

Example code for generating Crossref XML for DOI registration at the Wisconsin Geological and Natural History Survey. For sharing purposes only - this is not the live code that is run by WGNHS, as that is part of a larger application that also performs other actions.

Pre-requisites

Metadata input files

This code uses the following example JSON files located in the input_files directory as input.

These files are exported from a SQL database, and each file represents the contents of a table (filtered to include only items that we display publicly in the WGNHS publications catalog)

Running the code

  1. Clone this repository to your local machine

     git clone
    
  2. Move to the directory on your machine containing this repository

     cd doi-registration
    
  3. Install NPM dependencies

     npm install
    
  4. Run the code

     npm run build
    
  5. 2 XML files will be generated in the output_files directory: journal_dois.xml and report_dois.xml

  6. These files can be submitted to Crossref to register/update DOIs using one of the Direct deposit of XML methods. Existing DOIs in the file will be updated with any metadata changes; new DOIs in the file will be registered.

WGNHS uses HTTPS post, ex:

    export CROSSREF_LOGIN_ID=[USERNAME ISSUED BY CROSSREF] && \
    export CROSSREF_LOGIN_PASSWORD=[PASSWORD ISSUED BY CROSSREF] && \
    curl -F 'operation=doMDUpload' -F "login_id=$CROSSREF_LOGIN_ID" -F "login_passwd=$CROSSREF_LOGIN_PASSWORD" -F 'fname=@report_dois.xml' https://test.crossref.org/servlet/deposit

About

Example code for registering Crossref DOIs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages