From 284326ddecfb2c86b1c09ee983337c18d11a0378 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Tue, 17 Feb 2026 15:14:15 +0000 Subject: [PATCH] Bug 41860: With Zebra, authority search plugin gives no result in some cases When using Zebra, authority search plugin gives no result when the search term was was auto completed and it contains subdivisions and the search is performed with 'Search all headings' or 'Search entire record'. This is because of the construction of Match and Any indexes in Zebra. The current behavior is incomprehensible and upsetting to librarians. Test plan: ========== 1. Have a KTD instance with a standard data set. Have SearchEngine set to Zebra. 2. When cataloging, go to field 650 and use the authority plugin. 3. In 'Search all headings:' or 'Search entire record:' start typing 'Computer software' and choose any hint (with subdivision). Note that the operator has changed to 'is exactly'. 4. Perform the search. You should get no results, despite of the existence of the record. You only get the results after changing the operator to 'contains'. 5. Clean the browser's cache. Apply the patch. 6. Repeat p. 2, 3 & 4. You should be now able to find the record easily, without having to manually change the search type. The proposed behavior (not setting the search type to 'exact' for 'Search all headings:' or 'Search entire record:') seems like a reasonable compromise. Sponsored-by: Ignatianum University in Cracow --- koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js b/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js index 029d7258ed..531e445245 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js +++ b/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js @@ -41,9 +41,6 @@ $(document).ready(function () { }, }); }, - select: function (event, ui) { - $("#marclistanywhere").val("exact"); - }, minLength: 3, }); // marclistheading @@ -75,9 +72,6 @@ $(document).ready(function () { }, }); }, - select: function (event, ui) { - $("#marclistheading").val("exact"); - }, minLength: 3, }); // mainentry -- 2.39.5