From e261343aac9fab0b737962fe740c9f30b0d8d41b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 14 Jul 2014 12:49:27 -0400 Subject: [PATCH] Bug 12574 - BiblioDefaultView doesn't affect XSLT results view The OPAC's XSLT results view does not respect the choice set in the BiblioDefaultView system preference. This patch adds a check of the preference to the OPAC's results view for MARC21. To test you must have the OPAC configured to use the XSLT view for search results. Perform any search and test the link to a title's detail page. Switching the values of the BiblioDefaultView should be correctly reflected in the search results links. Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer Works as described for XSLT view in OPAC. Notes: - maybe we should change the pref text from 'simple form' to 'normal view'. - the patch doesn't include changes to the title link generated from an 880 field - so those links will still lead to the wrong view. Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2OPACResults.xsl | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 362cddbc6a..f40e917af6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -30,6 +30,7 @@ + @@ -402,7 +403,22 @@ - /cgi-bin/koha/opac-detail.pl?biblionumber=title + + + + /cgi-bin/koha/opac-detail.pl?biblionumber= + + + /cgi-bin/koha/opac-ISBDdetail.pl?biblionumber= + + + /cgi-bin/koha/opac-MARCdetail.pl?biblionumber= + + + /cgi-bin/koha/opac-detail.pl?biblionumber= + + + title -- 2.39.5