From c9d030f75f338fea183895010e8787ae1fe48c67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 11 Nov 2015 18:59:35 +0100 Subject: [PATCH] Bug 15175: Respect IntranetBiblioDefaultView syspref MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 0fe08231f427bdc65b1ff1219ad7507c284f1dbd) Signed-off-by: Frédéric Demians --- .../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 4b1c94b887..36a21378b1 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 %] + @@ -447,16 +457,16 @@ var holdForPatron = function () { [% IF ( AmazonCoverImages || LocalCoverImages ) %] [% IF ( LocalCoverImages) %] - + [% END %] [% IF ( AmazonCoverImages ) %] [% IF ( SEARCH_RESULT.normalized_isbn ) %] - + [% ELSIF ( !LocalCoverImages ) %] - + [% END %] -- 2.39.5