From f6f5de147af71d7ff6f8eb505c58c272d26173ee 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 Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens (cherry picked from commit 3adf7708d544338250703165fe7e87f2690d8639) Signed-off-by: Martin Renvoize (cherry picked from commit a110125338202f30cec0bc061141d82c80652f30) --- C4/AuthoritiesMarc.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 98d73f7892..4301a3adb4 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.39.5