diff --git a/biblio-tools/examples.http b/biblio-tools/examples.http index bdf67f8..cb1fb09 100644 --- a/biblio-tools/examples.http +++ b/biblio-tools/examples.http @@ -20,7 +20,8 @@ { "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.1016/j.memsci.2018.08.024"}, + { "value": "10.1029/2018jd029272"} ] ### diff --git a/biblio-tools/v1/unpaywall/expand.ini b/biblio-tools/v1/unpaywall/expand.ini index 4ebfbf6..d0734f4 100644 --- a/biblio-tools/v1/unpaywall/expand.ini +++ b/biblio-tools/v1/unpaywall/expand.ini @@ -53,7 +53,7 @@ # On crée un objet contenant tous les valeurs nécessaire pour créer une requete [spawn/combine/replace] path = query -value = fix('{GetByDOI(dois:[', self.dois, ']){doi, is_oa, oa_status, 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('') [spawn/combine/URLStream] url = https://unpaywall.inist.fr/api/graphql @@ -80,6 +80,10 @@ path = value.host_type value = get('best_oa_location.host_type', 'n/a') +path = value.has_repository_copy +value = get('has_repository_copy', 'n/a') + + # On nettoie l'objet en supprimant les champs temporaires [spawn/exchange] value = self().omit('bufferID')