diff --git a/src/main/resources/alma/fix/mediumAndType.fix b/src/main/resources/alma/fix/mediumAndType.fix index 74ca0a85a..0ed34b072 100644 --- a/src/main/resources/alma/fix/mediumAndType.fix +++ b/src/main/resources/alma/fix/mediumAndType.fix @@ -529,15 +529,18 @@ unless any_match("@300a_mainExtend", ".*(CD|Schallpl).*") end end -# type: "Newspaper" +# type: "Newspaper" are always Periodicals too if any_match("@leaderTyp+008", "(Continuing Resources)(.{21})n.*") # Pos21 add_field("type[].$append","Newspaper") + add_field("type[].$append","Periodical") elsif any_match("006", "^s(.{3})n.*") # Pos00+04 add_field("type[].$append","Newspaper") + add_field("type[].$append","Periodical") elsif any_match("natureOfContent[].*.label", ".*Zeitung.*") add_field("type[].$append", "Newspaper") + add_field("type[].$append","Periodical") end # type: "Standard" diff --git a/src/test/resources/alma-fix/990054089950206441.json b/src/test/resources/alma-fix/990054089950206441.json index bdce507ee..09ead9b52 100644 --- a/src/test/resources/alma-fix/990054089950206441.json +++ b/src/test/resources/alma-fix/990054089950206441.json @@ -1,7 +1,7 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "id" : "http://lobid.org/resources/990054089950206441#!", - "type" : [ "BibliographicResource", "Newspaper" ], + "type" : [ "BibliographicResource", "Newspaper", "Periodical" ], "medium" : [ { "label" : "Print", "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" diff --git a/src/test/resources/alma-fix/990103770440206441.json b/src/test/resources/alma-fix/990103770440206441.json index 8ffc257be..4d8af4ec1 100644 --- a/src/test/resources/alma-fix/990103770440206441.json +++ b/src/test/resources/alma-fix/990103770440206441.json @@ -1,7 +1,7 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "id" : "http://lobid.org/resources/990103770440206441#!", - "type" : [ "BibliographicResource", "Newspaper" ], + "type" : [ "BibliographicResource", "Newspaper", "Periodical" ], "medium" : [ { "label" : "Print", "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" diff --git a/src/test/resources/alma-fix/990108740950206441.json b/src/test/resources/alma-fix/990108740950206441.json index f6b6da725..45b892af3 100644 --- a/src/test/resources/alma-fix/990108740950206441.json +++ b/src/test/resources/alma-fix/990108740950206441.json @@ -1,7 +1,7 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "id" : "http://lobid.org/resources/990108740950206441#!", - "type" : [ "BibliographicResource", "Newspaper" ], + "type" : [ "BibliographicResource", "Newspaper", "Periodical" ], "medium" : [ { "label" : "Print", "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" diff --git a/src/test/resources/alma-fix/990136041660206441.json b/src/test/resources/alma-fix/990136041660206441.json index 330074250..9eed50fbb 100644 --- a/src/test/resources/alma-fix/990136041660206441.json +++ b/src/test/resources/alma-fix/990136041660206441.json @@ -1,7 +1,7 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "id" : "http://lobid.org/resources/990136041660206441#!", - "type" : [ "BibliographicResource", "Newspaper" ], + "type" : [ "BibliographicResource", "Newspaper", "Periodical" ], "medium" : [ { "label" : "Print", "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" diff --git a/src/test/resources/alma-fix/990196925330206441.json b/src/test/resources/alma-fix/990196925330206441.json index d181bf2aa..2d1d825a2 100644 --- a/src/test/resources/alma-fix/990196925330206441.json +++ b/src/test/resources/alma-fix/990196925330206441.json @@ -1,7 +1,7 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "id" : "http://lobid.org/resources/990196925330206441#!", - "type" : [ "BibliographicResource", "Newspaper" ], + "type" : [ "BibliographicResource", "Newspaper", "Periodical" ], "medium" : [ { "label" : "Print", "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" diff --git a/src/test/resources/alma-fix/990197023370206441.json b/src/test/resources/alma-fix/990197023370206441.json index d5888e913..379ae0499 100644 --- a/src/test/resources/alma-fix/990197023370206441.json +++ b/src/test/resources/alma-fix/990197023370206441.json @@ -1,7 +1,7 @@ { "@context" : "http://lobid.org/resources/context.jsonld", "id" : "http://lobid.org/resources/990197023370206441#!", - "type" : [ "BibliographicResource", "Newspaper" ], + "type" : [ "BibliographicResource", "Newspaper", "Periodical" ], "medium" : [ { "label" : "Datenträger", "id" : "http://rdaregistry.info/termList/RDAMediaType/1003"