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

Define if record is deleted in SRS

    XMLWordPrintable

    Details

    • Template:
    • Development Team:
      Gulfstream

      Description

      To define if an SRS record is deleted, accept the leader in the MARC record "as is". MARC Leader 05 - Record status will identify what is marked for deletion (Record status equals "d", "s" or "x") and what is not. Also "deleted" field can be used for this purpose (see json example below).

      {
        "id": "1a03ec27-a5e0-4043-ac9f-c0bfd4ab3220",
        "snapshotId": "5143d9ff-ad38-45a9-80d6-c85561227b56",
        "matchedId": "1a03ec27-a5e0-4043-ac9f-c0bfd4ab3220",
        "generation": 0,
        "recordType": "MARC",
        "rawRecord": {
          "id": "7177455e-8348-4933-994a-f66e66ffb683",
          "content": ...MARC record...
        },
        "parsedRecord": {
          "id": "7ad906f2-23b7-4764-839f-08b3a3e702a9",
          "content": {
            "fields": [
             ...MARC fields in json format... 
            ],
            "leader": "03077dam a2200421 i 4500"
          }
        },
        "deleted": true,
        "order": 0,
        "externalIdsHolder": {
          "instanceId": "0e51a2a1-cb1f-4e3b-8a31-e9448e89275b"
        },
        "additionalInfo": {
          "suppressDiscovery": false
        },
        "metadata": {
          "createdDate": "2020-03-27T10:27:06.921+0000",
          "createdByUserId": "de892cf1-bce3-5fdf-b36e-7e825084d799",
          "updatedDate": "2020-03-27T10:27:07.493+0000",
          "updatedByUserId": "de892cf1-bce3-5fdf-b36e-7e825084d799"
        }
      }
      

      "updatedDate" field can be used to identify the date of deletion.
      Just instance records stored in SRS are in the scope of this story.

      Acceptance criteria:

      • Deleted records are defined by MARC Leader 05 in ("d", "s", "x") or json field "deleted"=true: if either of these checks is true, the record should be considered as deleted.
      • "updatedDate" field is returned as record deletion date.
      • Provide the result time of a request before the additional filter was applied and after

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                hkaplanian@ebsco.com Harry
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases