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

Search/query inventory-storage instead of SRS for ListRecords 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:

      • All instance records from Inventory which comply the request parameters are added to ListRecords response
      • No duplicate records
      • Instance records with underlying MARC are retrieved from SRS
      • For instance records without underlying SRS records, MARC should be generated on the fly
      • Support suppressed records processing as configured
      • 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 fits OAI-PMH request parameters
      • And instance record can be exposed according to suppressed records support rules
      • And record isn’t deleted
      • When OAI-PMH request verb=ListRecords
      • 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 fits OAI-PMH request parameters
      • And instance record can be exposed according to suppressed and deleted records support rules
      • And record is deleted
      • When verb=ListIdentifiers or ListRecords
      • 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 fits OAI-PMH request parameters
      • And instance record can be exposed according to suppressed records support rules
      • And record isn’t deleted
      • When OAI-PMH request verb=ListRecords
      • 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 record fits OAI-PMH request parameters
      • And record can be exposed according to suppressed records support rules
      • And record isn’t deleted
      • When OAI-PMH request verb=ListRecords
      • 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