Bugzilla – Attachment 20882 Details for
Bug 10564
use OPACURLOpenInNewWindow in UNIMARCslim2OPACResults.xsl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 10564 - use OPACURLOpenInNewWindow in UNIMARCslim2OPACResults.xsl
PASSED-QA-Bug-10564---use-OPACURLOpenInNewWindow-i.patch (text/plain), 2.81 KB, created by
Katrin Fischer
on 2013-09-08 16:44:34 UTC
(
hide
)
Description:
[PASSED QA] Bug 10564 - use OPACURLOpenInNewWindow in UNIMARCslim2OPACResults.xsl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-09-08 16:44:34 UTC
Size:
2.81 KB
patch
obsolete
>From c2cc65da2df5977fa4d329e56c854defb6255d45 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 10 Jul 2013 11:06:39 +0200 >Subject: [PATCH] [PASSED QA] Bug 10564 - use OPACURLOpenInNewWindow in > UNIMARCslim2OPACResults.xsl > >When using UNIMARC XSLT for OPAC detail page, if record has a 856$u its content is displayed as a link. The syspref OPACURLOpenInNewWindow adds the option of opening in a new window (attribute target="_blank"). >856$u is also used in UNIMARC results XSLT but the use of OPACURLOpenInNewWindow syspref is missing. >It exists for MARC21. > >This patch adds the use of OPACURLOpenInNewWindow in UNIMARCslim2OPACResults.xsl. > >Test plan : >- In a UNIMARC catalog, enable XSLT for OPAC results page >- Create a record with a link in 856$u and set second indicator to 0 >- Set OPACURLOpenInNewWindow syspref on >- At OPAC, perform a search that contains the record >=> You should see the link : "Click here to access online" >- click on it >=> You shoud get to a new window (or tab depending on your browser configuration) >- Set OPACURLOpenInNewWindow syspref off >- re-perform the search >- click on the link >=> You shoud stay in same window > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Comment: Work as described, no koha-qa errors >Tested following plan after applying patch > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >XSLT change only, works as described. >To test: Catalog 856$u and $a, 2nd indicator = 0. >--- > .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >index a086d31..6a9022d 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -28,6 +28,7 @@ > > <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/> > <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> >+ <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> > > <xsl:if test="marc:datafield[@tag=200]"> > <xsl:for-each select="marc:datafield[@tag=200]"> >@@ -106,6 +107,9 @@ > <xsl:attribute name="href"> > <xsl:value-of select="marc:subfield[@code='u']"/> > </xsl:attribute> >+ <xsl:if test="$OPACURLOpenInNewWindow='1'"> >+ <xsl:attribute name="target">_blank</xsl:attribute> >+ </xsl:if> > <xsl:choose> > <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> > <xsl:call-template name="subfieldSelect"> >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10564
:
19514
|
20753
| 20882