From 7fe5012bc9361f34fcd7fb0063db6ef5efaa027c Mon Sep 17 00:00:00 2001 From: klngwll Date: Tue, 12 Sep 2023 19:13:21 +0200 Subject: [PATCH] Add specs for auth 400 and 500 repeatability --- .../main/resources/ext/marcframe-auth.json | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/whelk-core/src/main/resources/ext/marcframe-auth.json b/whelk-core/src/main/resources/ext/marcframe-auth.json index 83d24bc452..cc323d8208 100644 --- a/whelk-core/src/main/resources/ext/marcframe-auth.json +++ b/whelk-core/src/main/resources/ext/marcframe-auth.json @@ -2147,6 +2147,33 @@ "$h": {"ignored": true}, "$6": {"property": "marc:fieldref"}, "_spec": [ + { + "name": "(R)epeatability", + "source": [ + {"400": {"ind1": "1", "ind2": " ", "subfields": [{"a": "B, A,"},{"d": "Date1"}]}}, + {"400": {"ind1": "1", "ind2": " ", "subfields": [{"a": "D, C,"},{"d": "Date2"}]}} + ], + + "result": { + "mainEntity": { + "@type": "Identity", + "hasVariant": [ + { + "@type": "Person", + "givenName": "A", + "familyName": "B", + "lifeSpan": "Date1" + }, + { + "@type": "Person", + "givenName": "C", + "familyName": "D", + "lifeSpan": "Date2" + } + ] + } + } + }, { "source": { "400": {"ind1": "1", "ind2": " ", "subfields": [ @@ -3271,6 +3298,35 @@ "subfieldOrder": "w i a b c q d j e 4 g t m n r p k l s f o v x y z 0", "$h": {"ignored": true}, "_spec": [ + { + "name": "FIXME: (R)epeatability", + "source": [ + {"500": {"ind1": "1", "ind2": " ", "subfields": [{"a": "B, A"},{"d": "Date1"}]}}, + {"500": {"ind1": "1", "ind2": " ", "subfields": [{"a": "D, C"},{"d": "Date2"}]}} + ], + "normalized": [ + {"500": {"ind1": "1", "ind2": " ", "subfields": [{"a": "B, A"},{"a": "D, C,"},{"d": "Date1,"},{"d": "Date2"}]}} + ], + "result": { + "mainEntity": { + "@type": "Identity", + "seeAlso": [ + { + "@type": "Person", + "givenName": "A", + "familyName": "B", + "lifeSpan": "Date1" + }, + { + "@type": "Person", + "givenName": "C", + "familyName": "D", + "lifeSpan": "Date2" + } + ] + } + } + }, { "source": { "500": {"ind1": "3", "ind2": " ", "subfields": [