From 4ebf740a0610c26d3bb60eb1f8dfeb4d03072355 Mon Sep 17 00:00:00 2001 From: Kapil Verma Date: Fri, 29 Nov 2024 12:49:59 +0530 Subject: [PATCH] CIRCSTORE-539: added new request.item fields and db indexing --- ramls/examples/request.json | 7 ++- ramls/request.json | 16 +++++++ .../templates/db_scripts/schema.json | 48 +++++++++++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) diff --git a/ramls/examples/request.json b/ramls/examples/request.json index efeca2d28..ce1d9f2d8 100644 --- a/ramls/examples/request.json +++ b/ramls/examples/request.json @@ -28,7 +28,12 @@ "holdingsRecordId": "e63273e7-48f5-4c43-ab4e-1751ecacaa21", "itemId": "195efae1-588f-47bd-a181-13a2eb437701", "item": { - "barcode": "760932543816" + "barcode": "760932543816", + "itemEffectiveLocationId" : "758258bc-ecc1-41b8-abca-f7b610822ffd", + "itemEffectiveLocationName" : "XYZ Location", + "retrievalServicePointId" : "c4c90014-c8c9-4ade-8f24-b5e313319f4b", + "retrievalServicePointName" : "Circ Desk Test" + }, "position": 1, "fulfillmentPreference": "Hold Shelf", diff --git a/ramls/request.json b/ramls/request.json index 8c1f54231..9b3060b40 100644 --- a/ramls/request.json +++ b/ramls/request.json @@ -133,6 +133,22 @@ "barcode": { "description": "barcode of the item", "type": "string" + }, + "itemEffectiveLocationId": { + "description": "Item's effective location", + "type": "string" + }, + "itemEffectiveLocationName": { + "description": "Item's effective location name", + "type": "string" + }, + "retrievalServicePointId": { + "description": "Item's location primary service point", + "type": "string" + }, + "retrievalServicePointName": { + "description": "Item's location primary service point name", + "type": "string" } }, "additionalProperties": false diff --git a/src/main/resources/templates/db_scripts/schema.json b/src/main/resources/templates/db_scripts/schema.json index bc1b06ae2..066c0bf1f 100644 --- a/src/main/resources/templates/db_scripts/schema.json +++ b/src/main/resources/templates/db_scripts/schema.json @@ -235,6 +235,30 @@ "tOps": "ADD", "caseSensitive": false, "removeAccents": false + }, + { + "fieldName": "item.itemEffectiveLocationId", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "item.itemEffectiveLocationName", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "item.retrievalServicePointId", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "item.retrievalServicePointName", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false } ], "fullTextIndex": [ @@ -298,6 +322,30 @@ "tOps": "ADD", "caseSensitive": false, "removeAccents": false + }, + { + "fieldName": "item.itemEffectiveLocationId", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "item.itemEffectiveLocationName", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "item.retrievalServicePointId", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false + }, + { + "fieldName": "item.retrievalServicePointName", + "tOps": "ADD", + "caseSensitive": false, + "removeAccents": false } ], "customSnippetPath": "requestUpdateTrigger.sql"