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

Retrieve records from inventory and SRS for ListRecords response - MARC format

    XMLWordPrintable

Details

    • Story
    • Status: Open (View Workflow)
    • P3
    • Resolution: Unresolved
    • None
    • None
    • Prokopovych - Sprint 134, Firebird - Sprint 156
    • 5
    • Firebird

    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

      See "Get records flow diagram" attached.

      Acceptance criteria:

      • Response honors the OAI-PMH settings and it returns relevant data:
        • OAI-PMH setting records_source is set to Inventory - then only records from inventory (source <> MARC) are returned
        • OAI-PMH setting records_source is set to Source record storage - then only records from SRS are returned
        • OAI-PMH setting records_source is set to Source record storage and Inventory - then all records are returned
      • 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
      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

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

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases