Bugzilla – Attachment 35015 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.66 KB, created by
Marcel de Rooy
on 2015-01-07 14:50:55 UTC
(
hide
)
Description:
Bug 8992: XSLT changes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-01-07 14:50:55 UTC
Size:
2.66 KB
patch
obsolete
>From d145a136950441e55d041390cac6f4a30d646c11 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 >Content-Type: text/plain; charset=utf-8 > >This patch add the same behavior as previous patches for the xslt view. > >Signed-off-by: valerie bertrand <valerie.bertrand@univ-lyon3.fr> >--- > C4/XSLT.pm | 2 +- > .../bootstrap/en/xslt/UNIMARCslimUtils.xsl | 15 +++++++++++++++ > 2 files changed, 16 insertions(+), 1 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index a255b33..ea9c7f5 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -206,7 +206,7 @@ sub XSLTParse4Display { > UseControlNumber IntranetBiblioDefaultView BiblioDefaultView > singleBranchMode OPACItemLocation DisplayIconsXSLT > AlternateHoldingsField AlternateHoldingsSeparator >- TrackClicks opacthemes / ) >+ TrackClicks opacthemes 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 f48ff64..97206aa 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl >@@ -335,6 +335,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"> >@@ -373,6 +374,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.7.6
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