From 3d2f082ff27baaa0821cd4a67c819edeef586304 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 6 Dec 2018 12:42:45 +0000 Subject: [PATCH] Bug 21962: Fix authority search using 'all' To test: 1 - Set search engine to Zebra 2 - Have some authorities and indexes up to date 3 - Search authorities with option 'search entire record' 4 - No results 5 - Apply patch 6 - Run unit tests, they pass! 7 - Repeat search 8 - Results! Signed-off-by: Pierre-Marc Thibault --- C4/AuthoritiesMarc.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 780380e..10c67fc 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -163,6 +163,9 @@ sub SearchAuthorities { elsif ( @$tags[$i] eq "thesaurus" ) { $attr = " \@attr 1=Subject-heading-thesaurus "; } + elsif ( @$tags[$i] eq "all" ) { + $attr = " \@attr 1=Any "; + } else { # Use the index passed in params $attr = " \@attr 1=" . @$tags[$i] . " "; } -- 2.7.4