# 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 thelicense
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
200
ms. - 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
orretry
. Defaults toabort
. - crossref-base-wait-time : Time to wait before retrying after a query fails, in milliseconds. Defaults to
1000
ms. This timedoubles
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 toezPAARSE (https://ezpaarse.org; mailto:ezteam@couperin.org)
.
# Example :
curl -v -X POST http://localhost:59599
-H "ezPAARSE-Middlewares: crossref"
-F "files[]=@access.log"
← bot-ua-detector cut →