Skip to content

Commit

Permalink
lddbToTrig: add workaround for records with broken encodingLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
andersju committed Oct 16, 2023
1 parent 7b3f844 commit 3092792
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class ImporterMain {
private static void filterProblematicData(id, data) {
if (data instanceof Map) {
data.removeAll { entry ->
return entry.key.startsWith("generic") || entry.key.equals("marc:hasGovernmentDocumentClassificationNumber")
return entry.key.startsWith("generic") || entry.key.equals("marc:hasGovernmentDocumentClassificationNumber") || (entry.key.equals("encodingLevel") && entry.value.contains(" "))
}
data.keySet().each { property ->
filterProblematicData(id, data[property])
Expand Down

0 comments on commit 3092792

Please sign in to comment.