Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up Simple OAI-PMH server on ToolForge #53

Open
bootsa opened this issue Mar 16, 2022 · 4 comments
Open

Set up Simple OAI-PMH server on ToolForge #53

bootsa opened this issue Mar 16, 2022 · 4 comments
Assignees
Labels
oai-pmh things related to the OAI-PMH protocol

Comments

@bootsa
Copy link

bootsa commented Mar 16, 2022

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

@bootsa bootsa added the oai-pmh things related to the OAI-PMH protocol label Mar 16, 2022
@bootsa bootsa self-assigned this Mar 16, 2022
@bootsa
Copy link
Author

bootsa commented Mar 16, 2022

Outstanding issues

  • Resolve Blocked loading mixed active content of XSLT formatter (minor) - app seems to serve XSLT via http which conflicts with toolforge's https

Notes

  • No need to set up robots.txt as toolforge defaults to "fails closed"
  • Activate terminal colours and completion after becoming the tool account by running source ~/.bashrc

@bootsa
Copy link
Author

bootsa commented Mar 16, 2022

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
Copy link
Author

bootsa commented Mar 22, 2022

image

Successfully got minimum DC entries recognised on our dataset 🎉

@bootsa
Copy link
Author

bootsa commented Mar 24, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oai-pmh things related to the OAI-PMH protocol
Projects
None yet
Development

No branches or pull requests

2 participants