From 12e3b29629fef5ae1e9b1fff44569665c1918cb2 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Wed, 29 Apr 2015 21:28:50 +0200 Subject: [PATCH] Bug 14025 - Fix 865u-links in the OPAC for NORMARC The display of links found in 856$u for NORMARC has not been keeping up with the one for MARC21, and several sysprefs have not been implemented. This patch tries to fix that. Affected sysprefs: - OPACURLOpenInNewWindow - URLLinkText - OPACDisplay856uAsImage - OPACTrackClicks To test: - Make sure you have a record with a URL in 856$u and marcflavor = NORMARC. (It does not have to be a full NORMARC setup or a NORMARC record, just make sure you are viewing the record through the NORMARC XSLT files.) - View the record both in a result list and in detail view - Check that the 4 involved sysprefs affect the display in the expected ways --- .../bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl | 52 ++++++++++++++++------ .../bootstrap/en/xslt/NORMARCslim2OPACResults.xsl | 50 +++++++++++++++++++++ 2 files changed, 89 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl index 01d56af..4d1785b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl @@ -34,10 +34,14 @@ - + + + + + @@ -476,23 +480,45 @@ + - Nettbasert ressurs: + Online resources: - - + + + + + /cgi-bin/koha/tracklinks.pl?uri=;biblionumber= + + + /cgi-bin/koha/tracklinks.pl?uri=;biblionumber= + + + + + + + _blank + + + + height:100px + - - y3z - + + y3z + - - Klikk her for tilgang - - - + + + + + Click here to access online + + + - + | diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl index 52597bb..163b3aa 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl @@ -23,6 +23,10 @@ + + + + @@ -781,6 +785,52 @@ + + + Online resources: + + + + + + /cgi-bin/koha/tracklinks.pl?uri=;biblionumber= + + + /cgi-bin/koha/tracklinks.pl?uri=;biblionumber= + + + + + + + _blank + + + + height:100px + + + + y3z + + + + + + + Click here to access online + + + + + + | + + + + + + Availability: -- 1.9.1