From f52084df0e395fdf89d80ca2fd77844273a8cf7c Mon Sep 17 00:00:00 2001 From: Winona Salesky Date: Thu, 29 Jan 2015 14:13:37 -0600 Subject: [PATCH] Bug 13650: Remove parens from links to fix searches This patch will resolve the issue of not being able to search with parens in a subject heading by editing the xslt To test: * Apply patch * Search Koha for a title with ( ) in the subject * Click the subject * Results should be returned * Repeat in OPAC and Staff client Signed-off-by: Nick Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2intranetDetail.xsl | 28 +++++++++++++++++-- .../en/xslt/MARC21slim2OPACDetail.xsl | 28 +++++++++++++++++-- 2 files changed, 52 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 913a285fdd..5735650c62 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -3,6 +3,7 @@ ]> + + /cgi-bin/koha/catalogue/search.pl?q=an: - /cgi-bin/koha/catalogue/search.pl?q= + /cgi-bin/koha/catalogue/search.pl?q= abcdfgklmnopqrstvxyz AND (su: @@ -546,8 +548,9 @@ + - /cgi-bin/koha/catalogue/search.pl?q=su: + /cgi-bin/koha/catalogue/search.pl?q=su: @@ -1063,4 +1066,25 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 1c0e766af9..00b28ae99e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1,5 +1,6 @@ + ]> /cgi-bin/koha/opac-search.pl?q=an: + - /cgi-bin/koha/opac-search.pl?q= + /cgi-bin/koha/opac-search.pl?q= abcdfgklmnopqrstvxyz AND (su: @@ -595,8 +597,9 @@ + - /cgi-bin/koha/opac-search.pl?q=su: + /cgi-bin/koha/opac-search.pl?q=su: @@ -1241,4 +1244,25 @@ + + + + + + + + + + + + + + + + + + + + + -- 2.39.5