InvasionBiologyHypotheses / Documentation

Documentation related to building an open, zoomable atlas for invasion science and beyond
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Set up Simple OAI-PMH server on ToolForge #53

Open bootsa opened 2 years ago

bootsa commented 2 years ago

Set up an instance of the Open Culture Consulting's OAI-PMH provider server on ToolForge.

bootsa commented 2 years ago

Outstanding issues

Notes

bootsa commented 2 years ago

index.php fails to recognise HTTPS in section:

// Get current base URL
$baseURL = $_SERVER['HTTP_HOST'].parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
    $baseURL = 'https://'.$baseURL;
} else {
    $baseURL = 'http://'.$baseURL;
}

Which results in not passing HTTPS on to XSLT and invalidating the Identify output.

Unsure why $_SERVER['HTTPS'] is returning null so have just commented out the offending lines for the moment.

bootsa commented 2 years ago

image

Successfully got minimum DC entries recognised on our dataset :tada:

bootsa commented 2 years ago

Incremental harvesting error appears incorrect as endpoint seems to return entries correctly within date ranges, e.g. (currently)

Is it complaining because it returns no records when from and until are set to the same date? e.g. https://enkore.toolforge.org/oai_pmh/?verb=ListRecords&metadataPrefix=oai_dc&from=2022-03-23&until=2022-03-23

Maybe this is an issue with the validator as it also flags the same issue when running against the Zenodo OAI-PMH endpoint (https://zenodo.org/oai2d)