Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Suppose items (holding journal articles) include 'dc.identifier.issn' when available. We might also want to catalog the publisher name (in 'dc.publisher'). The cataloger could look up the name given the ISSN in various sources, but this 'research' is tedious, costly and error-prone. There are many good quality, free web services that can furnish this information. So we will configure a MetadataWebService task to call a service, and then automatically assign the publisher name to the item metadata. As noted above, all that is needed is a description of the service, and what to do with the results. Create a new file in 'config/modules' called 'issn2pubname.cfg' (or whatever is mnemonically useful to you). The first property in this file describes the service as a 'template':

 

...

. The template is just the URL to call the web service, with parameters to substitute values in. Here we will use 'Sherpa/Romeo' service:

Code Block
template=http://www.sherpa.ac.uk/romeo/api29.php?issn={dc.identifier.issn}

...

When the task runs, it will replace '{dc.idnetifier.issn}' with the value of that field in the item, If the field has multiple values, the first one will be used.

...