update openaire publication API to accept DOI query
This commit is contained in:
parent
11b0db21ac
commit
03f7afede8
|
@ -748,9 +748,26 @@ but not
|
||||||
<label>OpenAIRE Publications</label>
|
<label>OpenAIRE Publications</label>
|
||||||
<ordinal>1</ordinal>
|
<ordinal>1</ordinal>
|
||||||
<type>External</type>
|
<type>External</type>
|
||||||
<url>https://services.openaire.eu/search/v2/api/resources?query=oaftype exact result and {like}&page={page}&size={pageSize}&format=json</url>
|
<url>https://services.openaire.eu/search/v2/api/resources?query=oaftype exact result and {query}&page={page}&size={pageSize}&format=json</url>
|
||||||
<firstPage>0</firstPage>
|
<firstPage>0</firstPage>
|
||||||
<contenttype>application/json;charset=UTF-8</contenttype>
|
<contenttype>application/json;charset=UTF-8</contenttype>
|
||||||
|
<queries>
|
||||||
|
<query>
|
||||||
|
<ordinal>0</ordinal>
|
||||||
|
<condition>(10[.][0-9]{4,}(?:[.][0-9]+)*\/(?:(?!["&\'<>])[[:graph:]])+)</condition>
|
||||||
|
<value>(pidclassid exact "doi" and pid="{like}")</value>
|
||||||
|
</query>
|
||||||
|
<query>
|
||||||
|
<ordinal>1</ordinal>
|
||||||
|
<condition>(10[.][0-9]{4,}(?:[.][0-9]+)*\/(?:(?!["&\'<>])\S)+)</condition>
|
||||||
|
<value>(pidclassid exact "doi" and pid="{like}")</value>
|
||||||
|
</query>
|
||||||
|
<query>
|
||||||
|
<ordinal>2</ordinal>
|
||||||
|
<condition>.+</condition>
|
||||||
|
<value>{like}</value>
|
||||||
|
</query>
|
||||||
|
</queries>
|
||||||
<data>
|
<data>
|
||||||
<path>$['results'][*]['result']['metadata']['oaf:entity']['oaf:result']</path>
|
<path>$['results'][*]['result']['metadata']['oaf:entity']['oaf:result']</path>
|
||||||
<fields>
|
<fields>
|
||||||
|
|
Loading…
Reference in New Issue