Change holdShelfExpirationDate to 2020-04-14 for requests where status = Awaiting pickup

Description

The task

Make sure no patrons have to pick up requested items until 2020-04-14.

Suggested method

From /circulation/requests, get all loans that have status "Open - Awaiting pickup".

{{okapi-url}}/circulation/requests?query=(status="Awaiting pickup")

For these records, change the value of the holdExpirationDate element to:

"holdShelfExpirationDate": "2020-04-14T22:59:59.000+0000",

PUT updated records to /circulation/requests.

Things to consider/find out

Decide on a good date.

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Lisa Sjögren March 20, 2020 at 12:43 PM

I do.

Theodor Tolstoy (One-Group.se) March 20, 2020 at 12:40 PM

do you want me so send out emails to these patrons, asCHAL-284 suggests? It makes sense doing that as part of this task.

Theodor Tolstoy (One-Group.se) March 20, 2020 at 12:38 PM

Good. No, it was just a precaution.

Lisa Sjögren March 20, 2020 at 10:00 AM
Edited

When you changes our dueDates the other day, you mentioned not including the metadata element in the PUT request body - as I understood, the reason for that was wanting to let FOLIO set the date/time. However, when I did the test above (and I think I've seen the same will loans and Inventory records as well?), it looks like FOLIO sets the date/time to the current time_ even if_ you include the metadata element (with obsolete timestamp).

Looks like that's what the UI does as well.

Are there advantages to not including the metadata element that are not visible at this level?

Lisa Sjögren March 20, 2020 at 9:49 AM
Edited

Performed a test on /circulation/requests/3ed476fd-91d1-4b98-8ede-76defba23c64

Changed nothing except for the holdShelfExpirationDate, PUT the below:

{ "id": "3ed476fd-91d1-4b98-8ede-76defba23c64", "requestType": "Recall", "requestDate": "2020-03-20T09:24:29.000+0000", "requesterId": "[anonymized]", "itemId": "151a994e-3dbc-4a30-9a85-b18d598d279a", "status": "Open - Awaiting pickup", "position": 1, "item": { "title": "Making Marie Curie : intellectual property and celebrity culture in an age of information", "barcode": "19999999999999999", "holdingsRecordId": "a9d8997f-bdb1-4002-ba60-5543b996d46d", "instanceId": "6bdd5266-c67a-4a30-a574-4c4d6971bfd8", "location": { "name": "Main Library Johanneberg Floor 0", "libraryName": "Main Library", "code": "H0" }, "contributorNames": [ { "name": "Hemmungs Wirtén, Eva, 1960-" } ], "status": "Awaiting pickup", "callNumber": "test", "callNumberComponents": { "callNumber": "test" }, "copyNumbers": [ null ] }, "requester": { "lastName": "[anonymized]", "firstName": "[anonymized]", "barcode": "0121409460", "patronGroup": { "id": "32bf8ce6-555d-47a7-ab40-de17b40edded", "group": "Library staff", "desc": "Library staff" }, "patronGroupId": "32bf8ce6-555d-47a7-ab40-de17b40edded" }, "fulfilmentPreference": "Hold Shelf", "holdShelfExpirationDate": "2020-04-15T21:59:59.955+0000", "pickupServicePointId": "bd353ac4-73f9-4431-b0cc-088e564691db", "metadata": { "createdDate": "2020-03-20T09:24:33.030+0000", "createdByUserId": "[anonymized]", "updatedDate": "2020-03-20T09:35:36.017+0000", "updatedByUserId": "[anonymized]" }, "pickupServicePoint": { "name": "Main Library HB", "code": "HB", "discoveryDisplayName": "Main Library Johanneberg", "description": null, "shelvingLagTime": null, "pickupLocation": true } }

Request status 204. Had a look at the request in the UI, everything seemed fine. Then checked out the item to the requester, and verified that the request now has status Closed - Filled.

Done

Details

Assignee

Reporter

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created March 18, 2020 at 9:16 AM
Updated April 27, 2020 at 8:33 AM
Resolved March 20, 2020 at 2:32 PM
TestRail: Cases
TestRail: Runs

Flag notifications