From f2ad26a34a122a052318b009ddf85949acdb7302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 11 Nov 2015 18:59:35 +0100 Subject: [PATCH] [PASSED QA] Bug 15175 Respect IntranetBiblioDefaultView syspref Respect IntranetBiblioDefaultView on intra search result page, on cover image link, when XSLTResultsDisplay is empty. TO TEST: 1. Empty XSLTResultsDisplay 2. Activate intranet local and Amazon cover images 3. Play changing IntranetBiblioDefault, and observe the links respectively on biblio record title and cover image. Title's link is OK, cover image link goes to detail.pl page independently of IntranetBiblioDefault. 4. Apply the patch. 5. Repeat 3. Signed-off-by: Hector Castro Link to right display according with IntranetBiblioDefaultView is fixed. Signed-off-by: Katrin Fischer http://bugs.koha-community.org/show_bug.cgi?id=14175 --- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 8f369ba..e011d1b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -3,6 +3,16 @@ Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'browser-strings.inc' %] +[% IF BiblioDefaultViewmarc %] + [% SET DetailPage="MARCdetail.pl" %] +[% ELSIF BiblioDefaultViewlabeled_marc %] + [% SET DetailPage="labeledMARCdetail.pl" %] +[% ELSIF BiblioDefaultViewisbd %] + [% SET DetailPage="ISBDdetail.pl" %] +[% ELSE %] + [% SET DetailPage="detail.pl" %] +[% END %] + @@ -468,16 +478,16 @@ var holdForPatron = function () { [% IF ( AmazonCoverImages || LocalCoverImages ) %] [% IF ( LocalCoverImages) %] - + [% END %] [% IF ( AmazonCoverImages ) %] [% IF ( SEARCH_RESULT.normalized_isbn ) %] - + [% ELSIF ( !LocalCoverImages ) %] - + [% END %] -- 1.9.1