Skip to content

DOI Registration (1.X.X)

Patrick Hochstenbach edited this page Jun 13, 2019 · 1 revision

DOI registraion at DataCite is supported by LibreCat. Make sure that your institution is a member at DataCite and you must have your credentials at hand (at least some demo or test credentials).

Configuration

Before editing the configuration stop your workers:

$ bin/librecat queue stop

In your catmandu.local.yml (or a config file in your custom layer) you need to add

# Test prefix! Add your valid DataCite prefix here.
doi:
  prefix: "10.5072/test"
  queue: datacite
  default_publisher: "My University"

# Add you valid credentials here.
worker:
  Datacite:
    user: 'DEMO.XXX'
    password: 'secret'

# The datacite workers needs to be running.
queue:
  workers:
    datacite:
      count: 1
      supervise: 1

# define action when the worker should be fired
hooks:
  publication-publish:
    before_fixes: []
    after_fixes: ['register_doi']

# Generating the forms with DOI registration checkbox.
forms:
  publication_types:
    book:
      fields:
        basic_fields:
          doi: &doi
            mandatory: 0
            multiple: 0
            register: 1 # this is the relevant line here

Finally

You need to run these commands to complete the DOI registration feature:

$ bin/librecat generate forms
$ bin/librecat queue start
$ sudo systemctl restart librecat.service
Clone this wiki locally