From 2306cfa8b892dcc06400d41ce9c631dfc7dc8122 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Mon, 19 Oct 2020 11:31:57 +0200 Subject: [PATCH] Add natureOfContent.label to word query See https://github.com/hbz/nwbib/issues/554 --- web/app/controllers/resources/Queries.java | 1 + web/test/tests/IndexIntegrationTest.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/controllers/resources/Queries.java b/web/app/controllers/resources/Queries.java index 1ecf185dc..33e9c9380 100644 --- a/web/app/controllers/resources/Queries.java +++ b/web/app/controllers/resources/Queries.java @@ -609,6 +609,7 @@ public List fields() { fields.add("subject.label"); fields.add("subject.componentList.label"); fields.add("subjectAltLabel"); + fields.add("natureOfContent.label"); return fields; } diff --git a/web/test/tests/IndexIntegrationTest.java b/web/test/tests/IndexIntegrationTest.java index ca6948334..288c51370 100644 --- a/web/test/tests/IndexIntegrationTest.java +++ b/web/test/tests/IndexIntegrationTest.java @@ -88,7 +88,8 @@ public static Collection data() { { "\"Zeitzeuge und Kleinod in Harsewinkel\"", /*->*/ 1}, { "(+Zeitzeuge +und +Kleinod +in +Harsewinkel)", /*->*/ 1}, { "\"Mülheim an der Ruhr\"", /*->*/ 1}, - { "(+Mülheim +an +der +Ruhr)", /*->*/ 1} + { "(+Mülheim +an +der +Ruhr)", /*->*/ 1}, + { "\"Amtliche Publikation\"", /*->*/ 3} }); } // @formatter:on