# crossref

Enriches consultation events with crossref (opens new window) data from their API (opens new window)

# Headers

  • crossref-enrich : Set to false to disable crossref enrichment. Enabled by default.
  • crossref-cache : Enable/Disable cache.
  • crossref-license : Set to true to get the license field as JSON. Disabled by default.
  • crossref-ttl : Lifetime of cached documents, in seconds. Defaults to 7 days (3600 * 24 * 7).
  • crossref-throttle : Minimum time to wait between queries, in milliseconds. Defaults to 200ms.
  • crossref-paquet-size : Maximum number of identifiers to send for query in a single request. Defaults to 50.
  • crossref-buffer-size : Maximum number of memorised access events before sending a request. Defaults to 1000.
  • crossref-max-tries : Maximum number of attempts if an enrichment fails. Defaults to 5.
  • crossref-on-fail : Strategy to adopt if an enrichment reaches the maximum number of attempts. Can be either of abort, ignore or retry. Defaults to abort.
  • crossref-base-wait-time : Time to wait before retrying after a query fails, in milliseconds. Defaults to 1000ms. This time doubles after each attempt.
  • crossref-plus-api-token : If you signed up for the Plus service, put your token in this header.
  • crossref-user-agent : Specify what to send in the User-Agent header when querying Crossref. Defaults to ezPAARSE (https://ezpaarse.org; mailto:ezteam@couperin.org).

# Example :

curl -v -X POST http://localhost:59599
  -H "ezPAARSE-Middlewares: crossref"
  -F "files[]=@access.log"
Last Updated: 3/5/2021, 4:10:28 PM