From 2c76d01ecafd85392f5512b3e5d4f1abb9a4922e Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 22 Aug 2021 04:07:02 +0000 Subject: [PATCH] Bug 20277: Improve 773 link when $a is present At the moment $t (Title) and $a (Main heading - author) are both searched in ti,phr, which sometimes may work, as ti contains the full 245 field, including $c with author information. But often $c will not match what is in 100$a, so the search fails. This splits the search string so we search for $t in with ti,phr and for $a in au. To test: - Make sure UseControlnumber is deactivated - Search for a record with an author in 100 in your catalog Example from sample data: Programming Perl / Tom Christiansen, Brian D. Foy & Larry Wall. - Add a child record using New > Add child record - Verify that in 773 $a and $t are filled in - Complete mandatory fields and save the record . In OPAC and staff interface: - Verify the link in the detail page is doing a search with ti,phr - Verify the link works/doesn't work (more likely the latter) - Apply patch - Verify the link has changed and (now) works Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 5 +++-- .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 196d5857ee..df5ae25179 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1086,8 +1086,9 @@ - /cgi-bin/koha/catalogue/search.pl?q=ti,phr: - + + /cgi-bin/koha/catalogue/search.pl?q=ti,phr:+AND+au: + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 0110d22215..aa68210291 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1174,8 +1174,9 @@ - /cgi-bin/koha/opac-search.pl?q=ti,phr: - + + /cgi-bin/koha/opac-search.pl?q=ti,phr:+AND+au: + -- 2.39.5