Bugzilla – Attachment 83032 Details for
Bug 21962
The `searching entire record` option in authority searches is currently failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21962: Fix authority search using 'all'
Bug-21962-Fix-authority-search-using-all.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2018-12-10 20:30:02 UTC
(
hide
)
Description:
Bug 21962: Fix authority search using 'all'
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-10 20:30:02 UTC
Size:
1.25 KB
patch
obsolete
>From 58bb9dbdf5fb416a0ba25ff5ba87c9dfc559e644 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 <pierre-marc.thibault@inLibro.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/AuthoritiesMarc.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 780380ece8..10c67fc9ff 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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21962
:
82905
|
82906
|
82999
|
83000
|
83031
| 83032