OAI-PMH Support (UXPROD-993)

[MODOAIPMH-16] OAI-PMH: Implement verb "ListMetadataFormats" Created: 28/Sep/18  Updated: 14/Nov/18  Resolved: 30/Oct/18

Status: Closed
Project: mod-oai-pmh
Components: None
Affects versions: None
Fix versions: 1.0.0
Parent: OAI-PMH Support

Type: Story Priority: P3
Reporter: Hkaplanian Assignee: Hkaplanian
Resolution: Done Votes: 0
Labels: epam-thunderjet
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to UXPROD-350 OAI-PMH Support Closed
Sprint: oai-pmh - sprint 49, oai-pmh - sprint 50
Story Points: 3
Development Team: Thunderjet
Epic Link: OAI-PMH Support

 Description   

Official specification: https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats

1. Implementation
2. Error conditions

Should always return dublin code and marc21 xml if identifier is not provided.

If identifier is provided, should check if that record exists, if not 404. if it exists, return dublin core and marc21 xml.

Error conditions:

  • badArgument - The request includes illegal arguments or is missing required arguments.
  • idDoesNotExist - The value of the identifier argument is unknown or illegal in this repository.
    • if the specified record does not exist.
  • noMetadataFormats - There are no metadata formats available for the specified item.
    • should never happen

for now the mod-inventory-storage API should be used to determine if the record exists (https://s3.amazonaws.com/foliodocs/api/mod-inventory-storage/instance-storage.html#instance_storage_instances__instanceid__source_record_marc_json_get)



 Comments   
Comment by Viachaslau Khandramai (Inactive) [ 30/Oct/18 ]

Hi Craig McNally and Hkaplanian,

timeout exception in ListMetadataFormats requests to edge-oai-pmh happened because of redundant X-Okapi-Url header in Postman testing scenario. The issue can't be reproduced after this header was disabled in the Postman project and wasn't used in requests to edge-oai-pmh. This issue can't happen in real cases. So this story can be considered closed.

Best regards,
Slava

Generated at Fri Feb 09 00:13:39 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.