scientist-softserv / palni-palci

Other
1 stars 0 forks source link

OAI feed: Add repository name (tenant) data in feed (if possible without adding a metadata field) #737

Closed jillpe closed 1 year ago

jillpe commented 1 year ago

Summary

Pals would like to be able to view the repository name data in the OAI feed. They are okay if this autofills, and they would like this stored in the repository element.

OAI generally relies on the solr document's indexed fields. If the tenant name is indexed, this is much easier.

Testing Instructions

To see the going OAI Feed, visit ...

Acceptance Criteria

ShanaLMoore commented 1 year ago

I'm not familiar enough with outgoing OAI but maybe this endpoint will suffice for testing?

https://demo.commons-archive.org/catalog/oai?verb=ListRecords&metadataPrefix=oai_hyku

ShanaLMoore commented 1 year ago

QA RESULTS: ⚠️ Needs Rework?

cc @laritakr I may have tested this wrong but I am not seeing repository in the following endpoint: https://dev.commons-archive.org/catalog/oai?verb=ListRecords&metadataPrefix=oai_hyku

image

An Individual Record - https://demo.commons-archive.org/catalog/oai?verb=GetRecord&identifier=ebc7c9e6-16e9-4a56-a9ea-a3d11cad6fc7&metadataPrefix=oai_hyku

image

ShanaLMoore commented 1 year ago

I have since discovered that the records I'm looking at doesn't have repository because it's not part of their solr index

https://demo.commons-archive.org/concern/generic_works/ebc7c9e6-16e9-4a56-a9ea-a3d11cad6fc7?locale=en

image

ShanaLMoore commented 1 year ago

QA RESULTS: Pass ✅

I have since found that record and re-indexed it. I see the repository value now

ref: https://demo.commons-archive.org/catalog/oai?verb=GetRecord&identifier=ebc7c9e6-16e9-4a56-a9ea-a3d11cad6fc7&metadataPrefix=oai_hyku

image

ndroark commented 1 year ago

Repository name should be in human readable format with the name of the repository as it shows up on theApplication Name on the Labels page, not just the URL.

ShanaLMoore commented 1 year ago

QA: Pass ✅

link: https://dev.commons-archive.org/catalog/oai?verb=ListRecords&metadataPrefix=oai_hyku

Image

Screenshot 2023-09-21 at 1 55 57 PM
ShanaLMoore commented 1 year ago

This may require re-indexing prod

laritakr commented 1 year ago

This ticket does not require reindexing as long as prod has filled in application name.

ShanaLMoore commented 1 year ago

Oh that's right, thanks for clarifying. I'll remove the blocked label

ShanaLMoore commented 1 year ago

For the sake of documentation:

image