Bugzilla – Attachment 27464 Details for
Bug 8992
Add an interfacing with the idref webservice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8992: XSLT changes
Bug-8992-XSLT-changes.patch (text/plain), 2.54 KB, created by
Jonathan Druart
on 2014-04-23 11:40:29 UTC
(
hide
)
Description:
Bug 8992: XSLT changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-23 11:40:29 UTC
Size:
2.54 KB
patch
obsolete
>From 1c79496a2a8d9196e345bfc7ae70d2377afbc327 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 23 Apr 2014 13:34:45 +0200 >Subject: [PATCH] Bug 8992: XSLT changes > >This patch add the same behavior as previous patches for the xslt view. >--- > C4/XSLT.pm | 2 +- > .../opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl | 15 +++++++++++++++ > 2 files changed, 16 insertions(+), 1 deletion(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index d85b048..0f68179 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -207,7 +207,7 @@ sub XSLTParse4Display { > UseControlNumber IntranetBiblioDefaultView BiblioDefaultView > singleBranchMode OPACItemLocation DisplayIconsXSLT > AlternateHoldingsField AlternateHoldingsSeparator >- TrackClicks / ) >+ TrackClicks IdRef / ) > { > my $sp = C4::Context->preference( $syspref ); > next unless defined($sp); >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl >index fc4faa1..b4d307d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl >@@ -316,6 +316,7 @@ > <xsl:param name="tag" /> > <xsl:param name="label" /> > <xsl:param name="spanclass" /> >+ <xsl:variable name="IdRef" select="marc:sysprefs/marc:syspref[@name='IdRef']"/> > <xsl:if test="marc:datafield[@tag=$tag]"> > <span class="results_summary author {$spanclass}"> > <span class="label"> >@@ -354,6 +355,20 @@ > </xsl:if> > </xsl:for-each> > </a> >+ <xsl:if test="$IdRef"> >+ <xsl:if test="marc:subfield[@code=3]"> >+ <xsl:text> </xsl:text> >+ <a> >+ <xsl:attribute name="href"> >+ <xsl:text>/cgi-bin/koha/opac-idref.pl?unimarc3=</xsl:text> >+ <xsl:value-of select="marc:subfield[@code=3]"/> >+ </xsl:attribute> >+ <xsl:attribute name="title">IdRef</xsl:attribute> >+ <xsl:attribute name="rel">gb_page_center[600,500]</xsl:attribute> >+ <xsl:text>Idref</xsl:text> >+ </a> >+ </xsl:if> >+ </xsl:if> > <xsl:if test="not(position() = last())"> > <span style="padding: 3px;"> > <xsl:text>;</xsl:text> >-- >1.7.10.4
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 8992
:
13134
|
13142
|
21119
|
21182
|
21641
|
25358
|
25359
|
25365
|
25399
|
26998
|
26999
|
27000
|
27460
|
27462
|
27463
|
27464
|
29012
|
29165
|
29166
|
29167
|
29168
|
29169
|
30920
|
32123
|
35012
|
35013
|
35014
|
35015
|
35016
|
35017
|
35020
|
35022
|
35023
|
35024
|
35025
|
35026
|
35027
|
38639
|
39564
|
39565