From 484aae44186eb9c410e363648f2b99da63d66901 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 10 Jul 2013 11:06:39 +0200 Subject: [PATCH] Bug 10564 - use OPACURLOpenInNewWindow in UNIMARCslim2OPACResults.xsl When using UNIMARC XSLT for OPAC detail page, if record has an 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 Comment: Work as described, no koha-qa errors Tested following plan after applying patch Signed-off-by: Katrin Fischer XSLT change only, works as described. To test: Catalog 856$u and $a, 2nd indicator = 0. Signed-off-by: Galen Charlton (cherry picked from commit bc240a908d0fbc50b099df04e61da9fbb55fab52) Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 815a7cb6b94455d4e0a0ea88f7cd0bcb8621cd6e) Signed-off-by: Kyle M Hall (cherry picked from commit 9c4475ae343c31475512a28ffa834fbd5009de1f) --- koha-tmpl/opac-tmpl/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 a086d31f0e..6a9022dfec 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 @@ + @@ -106,6 +107,9 @@ + + _blank + -- 2.39.5