-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for FOLIO token expiration and add to search page load to s…
…ave to session
- Loading branch information
1 parent
3d937b1
commit d76aa8c
Showing
37 changed files
with
119 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/cancel-holds-bad-patron.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/cancel-holds-mixed-statuses.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
module/VuFind/tests/fixtures/folio/responses/check-invalid-token.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
module/VuFind/tests/fixtures/folio/responses/check-valid-token.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
module/VuFind/tests/fixtures/folio/responses/get-bound-with-records.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
[ | ||
{ | ||
"comment": "Initial request for token" | ||
}, | ||
{ | ||
"expectedPath": "/inventory/items/bc3fd525-4254-4075-845b-1428986d811b", | ||
"expectedParams": {}, | ||
"comment": "Item with six boundWithTitles", | ||
"status": 200, | ||
"body": "{\"id\" : \"bc3fd525-4254-4075-845b-1428986d811b\", \"_version\" : \"2\", \"status\" : { \"name\" : \"Available\", \"date\" : \"2020-08-15T16:15:40.000+00:00\" }, \"administrativeNotes\" : [ ], \"title\" : \"Ueber sclaverei, sclaven-emancipation und die einwanderung \\\"freier neger\\\" nach den colonieen; aufzeichnungen eines weitgereisten.\", \"callNumber\" : \"326.08 S632 \", \"hrid\" : \"1015758\", \"contributorNames\" : [ ], \"formerIds\" : [ \"OLE-id-1015758\" ], \"discoverySuppress\" : false, \"holdingsRecordId\" : \"7c12cb78-1249-4ec1-a221-9a426822d866\", \"barcode\" : \"39151008725588\", \"itemLevelCallNumber\" : \"326.08 S632 v.10\", \"itemLevelCallNumberPrefix\" : \"\", \"itemLevelCallNumberTypeId\" : \"03dd64d0-5626-4ecd-8ece-4531e0069f35\", \"notes\" : [ { \"itemNoteTypeId\" : \"8f26b475-d7e3-4577-8bd0-c3d3bf44f73b\", \"note\" : \"1\", \"staffOnly\" : true } ], \"circulationNotes\" : [ ], \"tags\" : { \"tagList\" : [ ] }, \"yearCaption\" : [ ], \"electronicAccess\" : [ ], \"statisticalCodeIds\" : [ \"ba16cd17-fb83-4a14-ab40-23c7ffa5ccb5\" ], \"purchaseOrderLineIdentifier\" : null, \"materialType\" : { \"id\" : \"1a54b431-2e4f-452d-9cae-9cee66c9a892\", \"name\" : \"book\" }, \"permanentLoanType\" : { \"id\" : \"2b94c631-fca9-4892-a730-03ee529ffe27\", \"name\" : \"Can circulate\" }, \"metadata\" : { \"createdDate\" : \"2020-08-15T16:15:40.000+00:00\", \"createdByUserId\" : \"82dd3b08-c440-4aa1-b924-839c3ec2627c\", \"updatedDate\" : \"2021-06-09T14:52:07.240+00:00\", \"updatedByUserId\" : \"163580ba-a91d-4974-ad65-e68becf69904\" }, \"effectiveCallNumberComponents\" : { \"callNumber\" : \"326.08 S632 v.10\", \"prefix\" : null, \"suffix\" : null, \"typeId\" : \"03dd64d0-5626-4ecd-8ece-4531e0069f35\" }, \"effectiveShelvingOrder\" : \"3326.08 S632 V 210\", \"isBoundWith\" : true, \"boundWithTitles\" : [ { \"briefHoldingsRecord\" : { \"id\" : \"76b8c622-361b-4f2e-802c-1df39d0f04e3\", \"hrid\" : \"ho00003535456\" }, \"briefInstance\" : { \"id\" : \"12cb5553-c1bb-48c8-b439-aebc5202970f\", \"title\" : \"Slavery as it once prevailed in Massachusetts : A lecture for the Massachusetts Historical Society ...\", \"hrid\" : \"1093117\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"7c12cb78-1249-4ec1-a221-9a426822d866\", \"hrid\" : \"1003416\" }, \"briefInstance\" : { \"id\" : \"f56d3ce3-b31f-4320-8e08-dfc2f9a96c4a\", \"title\" : \"Ueber sclaverei, sclaven-emancipation und die einwanderung \\\"freier neger\\\" nach den colonieen; aufzeichnungen eines weitgereisten.\", \"hrid\" : \"1093115\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"8d0b4586-848f-4235-8a97-1ab0e28cbff2\", \"hrid\" : \"ho00003535455\" }, \"briefInstance\" : { \"id\" : \"6abe72a5-f518-408a-8a67-fe1ec15627b8\", \"title\" : \"Concerning a full understanding of the southern attitude toward slavery, by John Douglass Van Horne.\", \"hrid\" : \"1093116\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"386ec94b-9387-4c38-b5b0-6bbebf75eeb3\", \"hrid\" : \"ho00003535457\" }, \"briefInstance\" : { \"id\" : \"1c4cda9b-3506-45e7-b444-0e901cc661e3\", \"title\" : \"American slavery : echoes and glimpses of prophecy / by Daniel S. Whitney.\", \"hrid\" : \"1093118\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"fdbcf4ae-2435-437f-8d69-a013ef9e7b89\", \"hrid\" : \"ho00003535458\" }, \"briefInstance\" : { \"id\" : \"03684060-3bc0-4a66-874c-854e50ed84fe\", \"title\" : \"The Tract society and slavery. Speeches of Chief Justice Williams, Judge Parsons, and ex-Governor Ellsworth: delivered in the Center Church, Hartford, Conn., at the anniversary of the Hartford branch of the American Tract Society, January 9th, 1859.\", \"hrid\" : \"1093119\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"4265ebf4-7fae-486f-9b7b-7a43ce9284ba\", \"hrid\" : \"ho00003535459\" }, \"briefInstance\" : { \"id\" : \"080e5167-7a50-4513-b0f3-0f5bf835df7b\", \"title\" : \"Case of Passmore Williamson : report of the proceedings on the writ of habeas corpus, issued by the Hon. John K. Kane, judge of the District Court of the United States for the Eastern District of Pennsylvania, in the case of the United States of America ex rel. John H. Wheeler vs. Passmore Williamson, including the several opinions delivered, and the arguments of counsel / reported by Arthur Cannon.\", \"hrid\" : \"1093120\" } } ], \"effectiveLocation\" : { \"id\" : \"2337edc1-d611-4024-be3c-0fe78e5d03ca\", \"name\" : \"LMC-B\" }}" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-limit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-multiple.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-paginate-estimate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-two.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.