Editor / Associated resources panel / Extend DOI to support Crossref in addition to Datacite searches#8610
Merged
fxprunayre merged 8 commits intomainfrom Sep 10, 2025
Merged
Conversation
…in addition to Datacite searches
…in addition to Datacite searches - combine results in one list
09f571d to
9cfeda5
Compare
…in addition to Datacite searches * Add DOI search by default * Crossref add mailto parameter which is good to indicate * Use $q.all for running crossref and datacite search * encodeURIparameter * Add tooltip with the origin of the record
fxprunayre
approved these changes
Jan 31, 2025
…t when one API is undefined.
…t when one API is undefined.
… with search field)
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Follow up of #7669.
For associated resources, enable DOI search of CrossRef DOI providers. Previously only DataCite providers were supported.
Can be configured to search both types of providers or only one of them. When both types of providers are configured, results from both are combined in the results list.
Configuration:
doiapi,crossrefprefix: DOI prefix for of the DOI resources to search.For each type of source:
url: API end-point.params: search parameters. Currently supportedqueryvalue, with the query to use. It allows the following placeholders:{query}: replaced with the text entered in the search field.{prefix}: replaced with the DOI prefix configured.Example configuration for both providers: Datacite and CrossRef
{ "fields": { "associationType": "crossReference", "initiativeType": "platform" }, "sources": {"doiapi": { "prefix": "10.1111", "datacite": { "url": "https://api.datacite.org/dois", "params": {"query": "titles.title:{query}* OR doi:{query} OR id:{query}"} }, "crossref": { "url": "https://api.crossref.org/works?select=DOI%2Ctitle%2Ctype%2Cprefix%2Cabstract%2CURL", "params": {"query": "rows=10&query={prefix}%2F{query}&filter=doi%3A{prefix}%2F{query}"} } }} }Example configuration only for Datacite provider
{ "fields": { "associationType": "crossReference", "initiativeType": "platform" }, "sources": {"doiapi": { "prefix": "10.1111", "datacite": { "url": "https://api.datacite.org/dois", "params": {"query": "titles.title:{query}* OR doi:{query} OR id:{query}"} } }} }Example configuration only for Crossref provider
{ "fields": { "associationType": "crossReference", "initiativeType": "platform" }, "sources": {"doiapi": { "prefix": "10.1111", "crossref": { "url": "https://api.crossref.org/works?select=DOI%2Ctitle%2Ctype%2Cprefix%2Cabstract%2CURL", "params": {"query": "rows=10&query={prefix}%2F{query}&filter=doi%3A{prefix}%2F{query}"} } }} }Checklist
mainbranch, backports managed with labelREADME.mdfilespom.xmldependency management. Update build documentation with intended library use and library tutorials or documentationFunded by Ifremer