Skip to content
Snippets Groups Projects
Commit b291b524 authored by Paul Millar's avatar Paul Millar
Browse files

Update semantics of facility's OAI-PMH endpoint link

parent 2897ecda
No related branches found
No related tags found
1 merge request!24Update semantics of facility's OAI-PMH endpoint link
Pipeline #456094 passed
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
odr: odr:
link: https://vuo.elettra.eu/pls/vuo/open_access_data_portal.show_search link: https://vuo.elettra.eu/pls/vuo/open_access_data_portal.show_search
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://data.ceric-eric.eu/oaipmh/request?verb=Identify link: https://data.ceric-eric.eu/oaipmh/request
last-check: 2024-02-07 last-check: 2024-02-07
status: Active status: Active
pan-search-api: pan-search-api:
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
odr: odr:
link: https://data.esrf.fr/ link: https://data.esrf.fr/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://icatplus.esrf.fr/oaipmh/request?verb=Identify link: https://icatplus.esrf.fr/oaipmh/request
last-check: 2024-02-07 last-check: 2024-02-07
status: Active status: Active
pan-search-api: pan-search-api:
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
odr: odr:
link: https://scicat.ess.eu/ link: https://scicat.ess.eu/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://oai.panosc.ess.eu/openaire/oai?verb=Identify link: https://oai.panosc.ess.eu/openaire/oai
last-check: 2024-02-08 last-check: 2024-02-08
status: Active status: Active
pan-search-api: pan-search-api:
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
odr: odr:
link: https://in.xfel.eu/metadata/ link: https://in.xfel.eu/metadata/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://in.xfel.eu/metadata/oai-pmh/oai2?verb=Identify link: https://in.xfel.eu/metadata/oai-pmh/oai2
last-check: 2024-02-07 last-check: 2024-02-07
status: Active status: Active
pan-search-api: pan-search-api:
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
odr: odr:
link: https://rodare.hzdr.de/ link: https://rodare.hzdr.de/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://rodare.hzdr.de/oai2d?verb=Identify link: https://rodare.hzdr.de/oai2d
status: Active status: Active
last-check: 2024-02-19 last-check: 2024-02-19
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
odr: odr:
link: https://data.ill.eu/ link: https://data.ill.eu/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://fairdata.ill.fr/openaire/oai?verb=Identify link: https://fairdata.ill.fr/openaire/oai
status: Active status: Active
last-check: 2024-02-07 last-check: 2024-02-07
pan-search-api: pan-search-api:
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
odr: odr:
link: https://data.isis.stfc.ac.uk/datagateway link: https://data.isis.stfc.ac.uk/datagateway
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://icatisis.esc.rl.ac.uk/oaipmh/request?verb=Identify link: https://icatisis.esc.rl.ac.uk/oaipmh/request
status: Error status: Error
last-check: 2024-11-01 last-check: 2024-11-01
pan-search-api: pan-search-api:
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
odr: odr:
link: https://scicat.maxiv.lu.se/ link: https://scicat.maxiv.lu.se/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://scicat.maxiv.lu.se/openaire/oai?verb=Identify link: https://scicat.maxiv.lu.se/openaire/oai
status: Error status: Error
last-check: 2024-02-07 last-check: 2024-02-07
pan-search-api: pan-search-api:
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
odr: odr:
link: https://doi.psi.ch/ link: https://doi.psi.ch/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://doi.psi.ch/oaipmh/oai?verb=Identify link: https://doi.psi.ch/oaipmh/oai
status: Active status: Active
last-check: 2024-02-07 last-check: 2024-02-07
pan-search-api: pan-search-api:
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
odr: odr:
link: https://datacatalog.synchrotron-soleil.fr link: https://datacatalog.synchrotron-soleil.fr
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://datacatalog.synchrotron-soleil.fr/scicat/oai?verb=Identify link: https://datacatalog.synchrotron-soleil.fr/scicat/oai
status: Active status: Active
last-check: 2024-02-07 last-check: 2024-02-07
pan-search-api: pan-search-api:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Want to make changes to the [LEAPS-IT webpage](https://leaps-wg3.desy.de/)? You are in the right repository. Want to make changes to the [LEAPS-IT webpage](https://leaps-wg3.desy.de/)? You are in the right repository.
## Pre-requisite ## Pre-requisite
* __Login__ with the "Helmholtz AAI" method, using your home institute’s credentials. * __Login__ with the "Helmholtz AAI" method, using your home institute’s credentials.
_If that doesn't work, or if you don't find your home institute, please refer to [the documentation](https://hifis.net/doc/helmholtz-aai/list-of-connected-organisations/)._ _If that doesn't work, or if you don't find your home institute, please refer to [the documentation](https://hifis.net/doc/helmholtz-aai/list-of-connected-organisations/)._
* __Install jekyll__ on your machine following the instructions in [readme.md](/readme.md). You will need that to check your changes are rendering well before pushing them, as we do not offer a preview tool yet. * __Install jekyll__ on your machine following the instructions in [readme.md](/readme.md). You will need that to check your changes are rendering well before pushing them, as we do not offer a preview tool yet.
...@@ -26,7 +26,7 @@ _If that doesn't work, or if you don't find your home institute, please refer to ...@@ -26,7 +26,7 @@ _If that doesn't work, or if you don't find your home institute, please refer to
If you'd like to update the data concerning your facility, be it: If you'd like to update the data concerning your facility, be it:
- its adoption status of outcomes in the [adoption table](https://leaps-wg3.desy.de/outcomes.html#adoption-table) - its adoption status of outcomes in the [adoption table](https://leaps-wg3.desy.de/outcomes.html#adoption-table)
- its involvement in current projects in the [projects table](https://leaps-wg3.desy.de/current-work.html#gotoprojects) - its involvement in current projects in the [projects table](https://leaps-wg3.desy.de/current-work.html#gotoprojects)
- its open data repository and access methods in the [PaN facilities repositories table](https://leaps-wg3.desy.de/open-data-resources.html#gotofacility) - its open data repository and access methods in the [PaN facilities repositories table](https://leaps-wg3.desy.de/open-data-resources.html#gotofacility)
You will need to go the [`_data/facilities.yml`](_data/facilities.yml) and edit the data about your facility, following the schema: You will need to go the [`_data/facilities.yml`](_data/facilities.yml) and edit the data about your facility, following the schema:
``` ```
...@@ -52,8 +52,8 @@ You will need to go the [`_data/facilities.yml`](_data/facilities.yml) and edit ...@@ -52,8 +52,8 @@ You will need to go the [`_data/facilities.yml`](_data/facilities.yml) and edit
- EOSC-Future - EOSC-Future
odr: # links to open data repository and access methods odr: # links to open data repository and access methods
link: https://doi.psi.ch/ link: https://doi.psi.ch/
oai-pmh-endpoint: oai-pmh-endpoint:
link: https://doi.psi.ch/oaipmh/oai?verb=Identify link: https://doi.psi.ch/oaipmh/oai
status: Active status: Active
last-check: 2023-08-07 last-check: 2023-08-07
pan-search-api: pan-search-api:
......
...@@ -45,13 +45,13 @@ title: Open data resources ...@@ -45,13 +45,13 @@ title: Open data resources
</td> </td>
{% if facility.odr.oai-pmh-endpoint.status == "Active" %}<td class="adopted">{% else %}<td class="no">{% endif %} {% if facility.odr.oai-pmh-endpoint.status == "Active" %}<td class="adopted">{% else %}<td class="no">{% endif %}
<div class="tooltip-cont"> <div class="tooltip-cont">
<a href="{{ facility.odr.oai-pmh-endpoint.link }}" class="trigger-tooltip">{{ facility.odr.oai-pmh-endpoint.status }}</a> <a href="{{ facility.odr.oai-pmh-endpoint.link }}?verb=Identify" class="trigger-tooltip">{{ facility.odr.oai-pmh-endpoint.status }}</a>
<span class="tooltip">last check: {{ facility.odr.oai-pmh-endpoint.last-check | date: "%Y-%m-%d" }}</span> <span class="tooltip">last check: {{ facility.odr.oai-pmh-endpoint.last-check | date: "%Y-%m-%d" }}</span>
</div> </div>
</td> </td>
{% if facility.odr.pan-search-api.status == "Active" %}<td class="adopted">{% else %}<td class="no">{% endif %} {% if facility.odr.pan-search-api.status == "Active" %}<td class="adopted">{% else %}<td class="no">{% endif %}
<div class="tooltip-cont"> <div class="tooltip-cont">
<a href="{{ facility.odr.pan-search-api.link }}" class="trigger-tooltip">{{ facility.odr.pan-search-api.status }}</a> <a href="{{ facility.odr.pan-search-api.link }}?verb=Identify" class="trigger-tooltip">{{ facility.odr.pan-search-api.status }}</a>
<span class="tooltip">last check: {{ facility.odr.pan-search-api.last-check | date: "%Y-%m-%d" }}</span> <span class="tooltip">last check: {{ facility.odr.pan-search-api.last-check | date: "%Y-%m-%d" }}</span>
</div> </div>
</td> </td>
......
...@@ -5,10 +5,11 @@ require 'nokogiri' ...@@ -5,10 +5,11 @@ require 'nokogiri'
require 'yaml' require 'yaml'
def check_oai_pmh_endpoint(endpoint_url) def check_oai_pmh_endpoint(endpoint_url)
queryIdentify_url = endpoint_url + "?verb=Identify"
begin begin
response = HTTParty.head(endpoint_url) response = HTTParty.head(queryIdentify_url)
if response.success? if response.success?
response = HTTParty.get(endpoint_url) response = HTTParty.get(queryIdentify_url)
if !(response.body.nil? || response.body.empty?) if !(response.body.nil? || response.body.empty?)
xml_response = Nokogiri::XML(response.body) xml_response = Nokogiri::XML(response.body)
oai_pmh_tag = xml_response.at_xpath('//*[name()="OAI-PMH"]') oai_pmh_tag = xml_response.at_xpath('//*[name()="OAI-PMH"]')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment