From 6fe0b7002052b9cd8ad7328248f0ae0e88aa34a5 Mon Sep 17 00:00:00 2001 From: Andreas Roussos Date: Mon, 4 May 2026 17:08:47 +0000 Subject: [PATCH] Bug 41795: (follow-up) add a phrase Zebra index for 'authtype' As per https://software.indexdata.com/zebra/doc/querymodel-rpn.html#querymodel-bib1-completeness: "[...] Complete field (3) triggers search and scan in index type="p"." The UNIMARC Zebra index definitions for authorities *do* include a 'p' (short for 'phrase') type index for authtype -- however, the MARC21 Zebra index definitions don't and this is causing these two tests to fail: t/db_dependent/Biblio.t t/db_dependent/FrameworkPlugin.t This patch fixes that. Test plan for KTD: 1) Apply the patch, then: k$ sudo cp etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml /etc/koha/zebradb/marc_defs/marc21/authorities/ k$ sudo cp etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/authorities/ k$ koha-rebuild-zebra --authorities --full --force --verbose kohadev 2) Run these tests -- they should both complete without warnings/errors: k$ prove -v t/db_dependent/Biblio.t k$ prove -v t/db_dependent/FrameworkPlugin.t Signed-off-by: Lucas Gass --- .../marc_defs/marc21/authorities/authority-koha-indexdefs.xml | 1 + .../marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml index 49f1c9f6f2..723643e0cf 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml @@ -643,5 +643,6 @@ authority-zebra-indexdefs.xsl` authtype:w + authtype:p diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl index b38e0f0cd0..5046a4bc49 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl @@ -176,7 +176,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - +