[MODOAIPMH-18] Define if record is deleted in SRS Created: 28/Sep/18  Updated: 12/Jun/20  Resolved: 28/Apr/20

Status: Closed
Project: mod-oai-pmh
Components: None
Affects versions: None
Fix versions: 3.0.0

Type: Story Priority: P3
Reporter: Hkaplanian Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: back-end-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Defines
defines UXPROD-2366 Support deleted instance records for ... Closed
Gantt Start to End
start is earliest end of MODSOURCE-16 Change Delete method implemetation Closed
Gantt Start to Start
has to be started together with MODOAIPMH-108 Make deleted instance records support... Closed
Relates
relates to MODINVSTOR-477 Store deleted instances,holdings and ... Closed
relates to MODOAIPMH-113 Populate the deletedDate field in /de... Closed
relates to MODOAIPMH-25 Spike: How will deleted records be ha... Closed
Sprint:
Development Team: Gulfstream
Tester Assignee: Craig McNally

 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


 Comments   
Comment by Anastasiia Zakharova [ 28/Apr/20 ]

This ticket is combined with MODOAIPMH-108 Closed in one user story.

Generated at Fri Feb 09 00:13:43 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.