From 569d639f0e1619f1b62d055825906e1cb956725a Mon Sep 17 00:00:00 2001 From: nielserik Date: Fri, 9 May 2025 21:48:11 +0200 Subject: [PATCH 1/3] new use-at-location properties - in loan policy - in loan --- ramls/loan-policy.json | 9 +++++++++ ramls/loan.json | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/ramls/loan-policy.json b/ramls/loan-policy.json index 6599c50e..ffea1b9d 100644 --- a/ramls/loan-policy.json +++ b/ramls/loan-policy.json @@ -55,6 +55,15 @@ "description": "Number of items allowed", "minimum": 1, "maximum": 9999 + }, + "forUseAtLocation": { + "type": "boolean", + "description": "Must items be used in the library" + }, + "holdShelfExpiryPeriodForUseAtLocation" :{ + "type": "object", + "$ref": "time-period.json", + "description": "expiration period for items on the hold shelf for use at the location" } } }, diff --git a/ramls/loan.json b/ramls/loan.json index 136137f8..5d419de3 100644 --- a/ramls/loan.json +++ b/ramls/loan.json @@ -37,6 +37,26 @@ }, "additionalProperties": false }, + "forUseAtLocation": { + "description": "Status of loan/item that is to be used in the library", + "type": "object", + "properties": { + "status": { + "description": "Indicates if the item is currently used by or being held for the patron", + "type": "string", + "enum": [ + "In use", + "Held", + "Returned" + ] + }, + "statusDate": { + "description": "Date and time the status was registered", + "type": "string", + "format": "date-time" + } + } + }, "loanDate": { "description": "Date time when the loan began (typically represented according to rfc3339 section-5.6. Has not had the date-time format validation applied as was not supported at point of introduction and would now be a breaking change)", "type": "string" From 439dfb6a704d7499ce653ef4bfeaef505c98afbb Mon Sep 17 00:00:00 2001 From: nielserik Date: Fri, 16 May 2025 18:50:04 +0200 Subject: [PATCH 2/3] CIRCSTORE-578, tweak schema descriptions --- ramls/loan-policy.json | 2 +- ramls/loan.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ramls/loan-policy.json b/ramls/loan-policy.json index ffea1b9d..f3a15cb9 100644 --- a/ramls/loan-policy.json +++ b/ramls/loan-policy.json @@ -58,7 +58,7 @@ }, "forUseAtLocation": { "type": "boolean", - "description": "Must items be used in the library" + "description": "Indicates that loaned items be used in the library, i.e. in reading room" }, "holdShelfExpiryPeriodForUseAtLocation" :{ "type": "object", diff --git a/ramls/loan.json b/ramls/loan.json index 5d419de3..c7685b5f 100644 --- a/ramls/loan.json +++ b/ramls/loan.json @@ -38,7 +38,7 @@ "additionalProperties": false }, "forUseAtLocation": { - "description": "Status of loan/item that is to be used in the library", + "description": "Status of loan/item that is to be used in the library, i.e. in a reading room", "type": "object", "properties": { "status": { From 3b46a06dcf6649dcef2391b84fd82d0a9b6dff83 Mon Sep 17 00:00:00 2001 From: nielserik Date: Fri, 16 May 2025 18:54:30 +0200 Subject: [PATCH 3/3] CIRCSTORE-578, description typo --- ramls/loan-policy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ramls/loan-policy.json b/ramls/loan-policy.json index f3a15cb9..c727b87c 100644 --- a/ramls/loan-policy.json +++ b/ramls/loan-policy.json @@ -58,7 +58,7 @@ }, "forUseAtLocation": { "type": "boolean", - "description": "Indicates that loaned items be used in the library, i.e. in reading room" + "description": "Indicates that loaned items must be used in the library, i.e. in a reading room" }, "holdShelfExpiryPeriodForUseAtLocation" :{ "type": "object",