From 2173a97b292a83dcf89a564b1ffe8adb73e7ae4d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 10 Oct 2013 18:50:13 +0000 Subject: [PATCH] Bug 10037: regression test for searching UNIMARC item index in DOM mode This patch adds a regression test that verifies that searching the UNIMARC 'item' index for a value that is indexed by virtue of being included in the fallback index definition for the 995 field works for both GRS-1 and DOM. The main patch will allow t/db_dependent/Search.t to pass. Signed-off-by: Galen Charlton --- t/db_dependent/Search.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index ed8ab5daa3..95e77965d7 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -12,7 +12,7 @@ use YAML; use C4::Debug; require C4::Context; -use Test::More tests => 172; +use Test::More tests => 174; use Test::MockModule; use MARC::Record; use File::Spec; @@ -700,6 +700,8 @@ sub run_unimarc_search_tests { is($total_hits, 4, 'UNIMARC target audience = k'); ( $error, $marcresults, $total_hits ) = SimpleSearch("ta=m", 0, 10); is($total_hits, 3, 'UNIMARC target audience = m'); + ( $error, $marcresults, $total_hits ) = SimpleSearch("item=EXCLU DU PRET", 0, 10); + is($total_hits, 1, 'UNIMARC generic item index (bug 10037)'); cleanup(); } -- 2.39.5