Skip to content

Commit

Permalink
CIRCSTORE-539: added new request.item fields and db indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
kapil-epam committed Nov 29, 2024
1 parent 79b2b41 commit 4ebf740
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ramls/examples/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 16 additions & 0 deletions ramls/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
48 changes: 48 additions & 0 deletions src/main/resources/templates/db_scripts/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4ebf740

Please sign in to comment.