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

Retrieve records from inventory and SRS for GetRecord 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:
      Depending on OAI-PMH settings the records should be retrieved from:

      1. Inventory only (OAI-PMH setting records_source is set to Inventory) - then only Inventory records with source set to other than MARC value are harvested and all records are generated on the fly

      2. Source record storage (OAI-PMH setting records_source is set to Source record storage) - then only records with source set to MARC are harvested and the harvested records are coming from SRS are harvested (this is the currently existing functionality)

      3. Source record storage and Inventory (OAI-PMH setting records_source is set to Source record storage and Inventory) - then

      • If instance exists in SRS (Metadata source = MARC), its MARC metadata is retrieved from SRS
      • If instance doesn't exist in SRS (Metadata source <> MARC), its MARC metadata generates on the fly from Inventory record

      Acceptance criteria:

      • Response honors the OAI-PMH settings and it returns relevant data
      • 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
      • Support suppressed records processing as configured
      • Unit and Karate tests have been updated

      Scenarios:

      – request FOLIO instance records in MARC format

      1. Scenario * Given instance record source <> MARC 

      • And instance record UUID matches the one requested
      • And Record source is set to Source record storage and Inventory or Inventory
      • 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
      – request deleted instance records - NO CHANGE IN EXISTING FUNCTIONALITY

      2. Scenario * Given instance * record source = *MARC

      • And instance record UUID matches the one requested
      • And Deleted records support = "Persistent" or "Transient"
      • And record is deleted
      • When verb=GetRecord
      • And metadataPrefix=marc21 or marc21_withholdings
      • Then the record’s identifier with status=deleted is present in response
        Note: at the moment that this story is being developed, the deletion of the instance records is not supported
      – request suppressed from discovery instance records -Transfer suppressed records with discovery flag

      3. Scenario * Given instance any record source

      • And instance record UUID matches the one requested
      • And Suppressed records support = "Transfer suppressed records with discovery flag value"
      • And record is suppressed
      • When verb=GetRecord
      • And metadataPrefix=marc21 or marc21_withholdings
      • Then the record’s 999 *field contains *t subfield set to 1
      – request suppressed from discovery instance records -Transfer suppressed records with discovery flag

      4. Scenario * Given instance any record source

      • And instance record UUID matches the one requested
      • And Suppressed records support = "Transfer suppressed records with discovery flag value"
      • And record is not suppressed
      • When verb=GetRecord
      • And metadataPrefix=marc21 or marc21_withholdings
      • Then the record’s 999 field contains t subfield is set to 0
      – request suppressed from discovery instance records - Skip suppressed from discovery records

      5. Scenario * Given instance any record source

      • And instance record UUID matches the one requested
      • And Suppressed records support = "Skip suppressed from discovery records"
      • And record is suppressed
      • When verb=GetRecord
      • Then the record is not included in response
      – request MARC records

      6. Scenario * Given instance record source=MARC

      • And instance record UUID matches the one requested
      • And record is not 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

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

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases