Skip to content

Commit

Permalink
Add specs for auth 400 and 500 repeatability
Browse files Browse the repository at this point in the history
  • Loading branch information
klngwll committed Sep 12, 2023
1 parent 4bf0026 commit 7fe5012
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions whelk-core/src/main/resources/ext/marcframe-auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down

0 comments on commit 7fe5012

Please sign in to comment.