From c9b0ea6d13191f1a4448ec24f1d7e4946967fbff Mon Sep 17 00:00:00 2001 From: nielserik Date: Thu, 24 Apr 2025 16:53:47 +0200 Subject: [PATCH] MODINVSTOR-1390 add property instance.sourceUri --- descriptors/ModuleDescriptor-template.json | 2 +- ramls/instance.json | 4 ++++ src/main/resources/templates/db_scripts/schema.json | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 8e0158b0a..a8ef10aee 100755 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -171,7 +171,7 @@ }, { "id": "instance-storage", - "version": "11.1", + "version": "11.2", "handlers": [ { "methods": ["GET"], diff --git a/ramls/instance.json b/ramls/instance.json index fbeb18138..4b79e5a9c 100644 --- a/ramls/instance.json +++ b/ramls/instance.json @@ -20,6 +20,10 @@ "type": "string", "description" : "A unique instance identifier matching a client-side bibliographic record identification scheme, in particular for a scenario where multiple separate catalogs with no shared record identifiers contribute to the same Instance in Inventory. A match key is typically generated from select, normalized pieces of metadata in bibliographic records" }, + "sourceUri": { + "type": "string", + "description": "A remote URI uniquely identifying the source of the instance" + }, "source": { "type": "string", "description": "The metadata source and its format of the underlying record to the instance record. (e.g. FOLIO if it's a record created in Inventory; MARC if it's a MARC record created in MARCcat or EPKB if it's a record coming from eHoldings; CONSORTIUM-MARC or CONSORTIUM-FOLIO for sharing Instances)." diff --git a/src/main/resources/templates/db_scripts/schema.json b/src/main/resources/templates/db_scripts/schema.json index abc2e2e19..7708f3017 100644 --- a/src/main/resources/templates/db_scripts/schema.json +++ b/src/main/resources/templates/db_scripts/schema.json @@ -411,6 +411,10 @@ "caseSensitive": false, "removeAccents": true }, + { + "fieldName": "sourceUri", + "tOps": "ADD" + }, { "fieldName": "statisticalCodeIds", "tOps": "ADD",