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

oai-pmh mods representation (attempt 2) #61

Merged
merged 5 commits into from
Mar 2, 2023

Conversation

Natkeeran
Copy link
Contributor

This PR provides a MODS representation. This is done by powering a twig powered OAI-PMH Record view powered by a Drupal view consisting of a given Repository Item metadata.

Composer Changes

  • places a MODS template (mods.html.twig) via post-update-cmd

Config Changes

  • rest_oai_pmh.settings - module config, sets up MODS
  • views.view.oai_pmh_item_data - provides the metadata that powers the twig
  • search_api.index.default_solr_index - some additional fields such as the ID needed for the above view
  • views.view.oai_pmh_item_links - sets up the block needed to show the link
  • context.context.display_oai_pmh_item_links - places the block

Note that, All Repository Content OAI-PMH set did not include collection items. I kept it that way. Thus, these links don't show for collection items.

@@ -0,0 +1,136 @@
<titleInfo>
<title lang="eng">{{ elements.title }}</title>
{% if elements.subtitle is not empty%}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to get a sense of how to talk about this - this template here includes many more fields ("elements") than we currently have the ability to populate with a view. Some will be available to us if we create (e.g) a publisher filter that only shows the publisher. Others might need fields present that are not yet in the metadata profile. But by making a thorough template, we can populate it with whatever data we have and can expand in the future - does that jive with how you envisioned this?

@rosiel
Copy link
Contributor

rosiel commented Mar 2, 2023

It's not working for me on the Playbook. The link for MODS uses an "identifier" of oai:http:localhost:8000:node-1, when it needs to be oai:localhost:node-1.

http://localhost:8000/oai/request?identifier=oai%3Ahttp:localhost:8000%3Anode-1&metadataPrefix=mods&verb=GetRecord' http://localhost:8000/oai/request?identifier=oai%3Alocalhost%3Anode-1&metadataPrefix=mods&verb=GetRecord`

I have a pull request coming to fix this.

Fix port from showing in identifier, and add descriptions.

Thank you.
@rosiel rosiel merged commit cfc0cdd into Islandora-Devops:main Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants