The code for the script lives here.
Process
See here for a mapping of ICAT Investigation to DataPublication.
See here for a mapping of ICAT Investigation & DataPublication to Datacite metadata.
The script goes about minting DOI’s in the following fashion:
...