Uploaded image for project: 'mod-oai-pmh'
  1. mod-oai-pmh
  2. MODOAIPMH-224

Search/query inventory-storage instead of SRS for GetRecord response

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open (View Workflow)
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Template:
    • Sprint:
      Q4 scope
    • Story Points:
      8
    • Development Team:
      Gulfstream

      Description

      Overview:
      Once OAI-PMH will be able to convert Inventory records to MARC, it should switch from querying SRS to querying Inventory for instance records. From now on it should work the next way:

      • If instance exists in SRS (Metadata source = MARC), its MARC metadata is retrieved from SRS
      • If instance doesn't exist in SRS (Metadata source = FOLIO), its MARC metadata generates on the fly from Inventory record
      • Result MARC record converts to Dublin Core if request parameter metadataPrefix="oai_dc"

      See "Get records flow diagram" attached.

      Acceptance criteria:

      • GetRecord response returns Inventory record if it doesn’t exist in SRS
      • Instance records with underlying MARC are retrieved from SRS
      • For instance records without underlying SRS records, MARC should be generated on the fly
      • Support deleted records processing as configured
      • Unit and API tests have been updated

      Scenarios:

      1. Scenario – request FOLIO instance records in MARC format
      • Given instance record source=FOLIO
      • And instance record UUID matches the one requested
      • And record isn’t deleted
      • When OAI-PMH request verb=GetRecord
      • And metadataPrefix=marc21 or marc21_withholdings
      • Then MARC record is generated from the instance record
      • And this record is present in response
      2. Scenario – request deleted instance records
      • Given instance record source=FOLIO or MARC
      • And instance record UUID matches the one requested
      • And Deleted records support = "Persistent" or "Transient"
      • And record is deleted
      • When verb=GetRecord
      • Then the record’s identifier with status=deleted is present in response
      3. Scenario – request FOLIO instance records in Dublin Core format
      • Given instance record source=FOLIO
      • And instance record UUID matches the one requested
      • And record isn’t deleted
      • When OAI-PMH request verb=GetRecord
      • And metadataPrefix=oai_dc
      • Then Dublin Core record is generated from the instance record
      • And this record is present in response
      4. Scenario – request MARC records
      • Given instance record source=MARC
      • And instance record UUID matches the one requested
      • And record isn’t deleted
      • When OAI-PMH request verb=GetRecord
      • And metadataPrefix=marc21 or marc21_withholdings
      • Then MARC record is retrieved from SRS
      • And this record is present in response

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                Anastasiia Zakharova Anastasiia Zakharova (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases