diff --git a/biblio-tools/examples.http b/biblio-tools/examples.http index c3a9396..5d86ef8 100644 --- a/biblio-tools/examples.http +++ b/biblio-tools/examples.http @@ -42,6 +42,23 @@ ] ### +# unpaywall/works/expand +# POST http://localhost:31976/v1/unpaywall/works/expand?indent=true HTTP/1.1 + +POST https://biblio-tools.services.inist.fr/v1/unpaywall/works/expand?indent=true HTTP/1.1 +Content-Type: application/json + +[ + { "value": "10.1016/j.fuel.2018.07.071" }, + { "value": "10.1007/s10980-018-0699-8" }, + { "value": "10.1159/000490004" }, + { "value": "10.1016/j.memsci.2018.08.024"}, + { "value": "10.1029/2018jd029272"}, + { "value": "10.4000/edc.9014"}, + { "value": "unknown"} +] +### + # crossref/prefixes/1 POST https://biblio-tools.services.inist.fr/v1/crossref/prefixes/expand?indent=true HTTP/1.1 Content-Type: application/json diff --git a/biblio-tools/v1/unpaywall/works/expand.ini b/biblio-tools/v1/unpaywall/works/expand.ini index fcb16c3..a6b2ada 100644 --- a/biblio-tools/v1/unpaywall/works/expand.ini +++ b/biblio-tools/v1/unpaywall/works/expand.ini @@ -71,7 +71,8 @@ # On crée un objet contenant toutes les valeurs nécessaires pour créer une requête [spawn/combine/replace] path = query -value = fix('{GetByDOI(dois:[', self.dois, ']){doi, is_oa, oa_status, has_repository_copy, best_oa_location { host_type }}}').join('') +; value = fix('{GetByDOI(dois:[', self.dois, ']){doi, is_oa, oa_status, has_repository_copy, best_oa_location { host_type }}}').join('') +value = fix('{GetByDOI(dois:[', self.dois, ']){doi,data_standard,genre,is_paratext,is_oa,journal_is_in_doaj,journal_is_oa,journal_issns,journal_issn_l,journal_name,oa_status,has_repository_copy,published_date,publisher,title,updated,year,oa_locations{host_type,is_best,license,url,url_for_landing_page,url_for_pdf},first_oa_location{host_type,is_best,license,pmh_id,updated,url,url_for_landing_page,url_for_pdf,version}}}').join('') [spawn/combine/URLStream] ;url = https://unpaywall.inist.fr/api/graphql