This tool can update a set of DOI-URLs.
Example:
Your site moved and you want to update ALL your DataCite DOI's. If so: This tool is for you!
It uses DataCite API to update DOI's like this:
From: http://mysite/view/1234
To: http://myNEWsite/view/1234
- Copy the script to an server with PHP (tested: PHP 5.5/5.6)
- edit updateDOIs.php to your needs ($USER/$PASS are the DataCite account data, set $PROXY if you are behind a proxy)
- Run it:
php updateDOIs.php
- If you are sure that everything works (verify output!) then set
$prod = false
to$prod = true
! - That's it!
If you have any questions: Create an issue.