From 75940713bb1cba4bb83ce624d67549706c7a61f0 Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Thu, 20 Dec 2012 15:45:33 +1300 Subject: [PATCH] Bug 9309 - Make OPACurlOpenInNewWindow be respected for 856$u If a biblio record contained a URL, and the OPAC was using the "normal" (non-XSLT) display for records, then these links would never open a new window. With this patch, they will. Test plan: 1) have a biblio containing an 856$u link 2) set OPACurlOpenInNewWindow to "true" 3) do not use XSLT for displaying the detail pages in the OPAC 4) view the record, click the link, and note that it opens in the current window. 5) apply the patch 6) reload the detail page, click the link, and note that it opens a new window. Sponsored-By: National Institute of Water and Atmospheric Research Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 8856d3f6ac..e18ff083da 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -424,7 +424,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
[% END %] - [% IF ( MARCurl.OPACurlOpenInNewWindow ) %][% ELSE %][% END %] + [% IF ( OPACURLOpenInNewWindow ) %][% ELSE %][% END %] [% MARCurl.linktext %] [% IF ( MARCurl.notes ) %]
    [% FOREACH note IN MARCurl.notes %]
  • [% note.note %]
  • [% END %]
[% END %] -- 2.39.5