Skip to content

Commit

Permalink
MODSOURMAN-1085 MARC record with a 100 tag without a $a is being disc…
Browse files Browse the repository at this point in the history
…arded on import. (#832)

* mark a subfield as required in some rules

* fix tests

* update news

* order matters, move name to top in an array

* fix tests
  • Loading branch information
JavokhirAbdullayev authored Dec 7, 2023
1 parent 40b2b10 commit 241ac21
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 96 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 2023-xx-xx v3.8.0-SNAPSHOT
* [MODSOURMAN-1085](https://issues.folio.org/browse/MODSOURMAN-1085) MARC record with a 100 tag without a $a is being discarded on import.
* [MODSOURMAN-1030](https://issues.folio.org/browse/MODSOURMAN-1030) The number of updated records is not correct displayed in the 'SRS Marc' column in the 'Log summary' table
* [MODSOURMAN-976](https://issues.folio.org/browse/MODSOURMAN-976) Incorrect error counts
* [MODSOURMAN-1093](https://issues.folio.org/browse/MODSOURMAN-1093) EventHandlingUtil hangs forever on error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,37 @@
"100": [
{
"entity": [
{
"target": "contributors.name",
"description": "Personal Name",
"subfield": [
"a",
"b",
"c",
"d",
"f",
"g",
"j",
"k",
"l",
"n",
"p",
"q",
"t",
"u"
],
"requiredSubfield": ["a"],
"applyRulesOnConcatenatedData": true,
"rules": [
{
"conditions": [
{
"type": "trim_punctuation"
}
]
}
]
},
{
"target": "contributors.authorityId",
"description": "Authority ID that controlling the contributor",
Expand Down Expand Up @@ -1181,26 +1212,31 @@
"value": "true"
}
]
},
}
]
}
],
"110": [
{
"entity": [
{
"target": "contributors.name",
"description": "Personal Name",
"description": "Corporate Name",
"subfield": [
"a",
"b",
"c",
"d",
"f",
"g",
"j",
"k",
"l",
"n",
"p",
"q",
"t",
"u"
],
"requiredSubfield": ["a"],
"applyRulesOnConcatenatedData": true,
"rules": [
{
Expand All @@ -1211,13 +1247,7 @@
]
}
]
}
]
}
],
"110": [
{
"entity": [
},
{
"target": "contributors.authorityId",
"description": "Authority ID that controlling the contributor",
Expand Down Expand Up @@ -1286,10 +1316,16 @@
"value": "true"
}
]
},
}
]
}
],
"111": [
{
"entity": [
{
"target": "contributors.name",
"description": "Corporate Name",
"description": "Meeting Name",
"subfield": [
"a",
"b",
Expand All @@ -1304,6 +1340,7 @@
"t",
"u"
],
"requiredSubfield": ["a"],
"applyRulesOnConcatenatedData": true,
"rules": [
{
Expand All @@ -1314,13 +1351,7 @@
]
}
]
}
]
}
],
"111": [
{
"entity": [
},
{
"target": "contributors.authorityId",
"description": "Authority ID that controlling the contributor",
Expand Down Expand Up @@ -1389,34 +1420,6 @@
"value": "true"
}
]
},
{
"target": "contributors.name",
"description": "Meeting Name",
"subfield": [
"a",
"b",
"c",
"d",
"f",
"g",
"k",
"l",
"n",
"p",
"t",
"u"
],
"applyRulesOnConcatenatedData": true,
"rules": [
{
"conditions": [
{
"type": "trim_punctuation"
}
]
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,37 @@
"100": [
{
"entity": [
{
"target": "contributors.name",
"description": "Personal Name",
"subfield": [
"a",
"b",
"c",
"d",
"f",
"g",
"j",
"k",
"l",
"n",
"p",
"q",
"t",
"u"
],
"requiredSubfield": ["a"],
"applyRulesOnConcatenatedData": true,
"rules": [
{
"conditions": [
{
"type": "trim_punctuation"
}
]
}
]
},
{
"target": "contributors.authorityId",
"description": "Authority ID that controlling the contributor",
Expand Down Expand Up @@ -1181,26 +1212,31 @@
"value": "true"
}
]
},
}
]
}
],
"110": [
{
"entity": [
{
"target": "contributors.name",
"description": "Personal Name",
"description": "Corporate Name",
"subfield": [
"a",
"b",
"c",
"d",
"f",
"g",
"j",
"k",
"l",
"n",
"p",
"q",
"t",
"u"
],
"requiredSubfield": ["a"],
"applyRulesOnConcatenatedData": true,
"rules": [
{
Expand All @@ -1211,13 +1247,7 @@
]
}
]
}
]
}
],
"110": [
{
"entity": [
},
{
"target": "contributors.authorityId",
"description": "Authority ID that controlling the contributor",
Expand Down Expand Up @@ -1286,10 +1316,16 @@
"value": "true"
}
]
},
}
]
}
],
"111": [
{
"entity": [
{
"target": "contributors.name",
"description": "Corporate Name",
"description": "Meeting Name",
"subfield": [
"a",
"b",
Expand All @@ -1304,6 +1340,7 @@
"t",
"u"
],
"requiredSubfield": ["a"],
"applyRulesOnConcatenatedData": true,
"rules": [
{
Expand All @@ -1314,13 +1351,7 @@
]
}
]
}
]
}
],
"111": [
{
"entity": [
},
{
"target": "contributors.authorityId",
"description": "Authority ID that controlling the contributor",
Expand Down Expand Up @@ -1389,34 +1420,6 @@
"value": "true"
}
]
},
{
"target": "contributors.name",
"description": "Meeting Name",
"subfield": [
"a",
"b",
"c",
"d",
"f",
"g",
"k",
"l",
"n",
"p",
"t",
"u"
],
"applyRulesOnConcatenatedData": true,
"rules": [
{
"conditions": [
{
"type": "trim_punctuation"
}
]
}
]
}
]
}
Expand Down

0 comments on commit 241ac21

Please sign in to comment.