Bugzilla – Attachment 7433 Details for
Bug 7489
Implement DisplayOPACiconsXSLT for NORMARC XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7489 - Implement DisplayOPACiconsXSLT for NORMARC XSLT
Bug-7489---Implement-DisplayOPACiconsXSLT-for-NORM.patch (text/plain), 3.50 KB, created by
Magnus Enger
on 2012-02-03 08:57:59 UTC
(
hide
)
Description:
Bug 7489 - Implement DisplayOPACiconsXSLT for NORMARC XSLT
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2012-02-03 08:57:59 UTC
Size:
3.50 KB
patch
obsolete
>From 98999216d0763d28af75c9d90e9acf360fdf3177 Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@enger.priv.no> >Date: Fri, 3 Feb 2012 09:57:32 +0100 >Subject: [PATCH] Bug 7489 - Implement DisplayOPACiconsXSLT for NORMARC XSLT >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit >Content-Type: text/plain; charset="utf-8" > >This patch actually hides the whole line that contains the icon in the result >list, including "literary form" and "audience", but this is how the syspref >works for MARC21 too, so I'm sticking with that. > >To test: >- Set marcflavour = NORMARC >- Set OPACXSLTResultsDisplay = on >- Set DisplayOPACiconsXSLT = show >- Check that icons and information about "Type", "Litterær form" and > "Målgruppe" are displayed in results, "Type" and the icon in detail >- Set DisplayOPACiconsXSLT = don't show >- Check that icons and information is not displayed in result or detail >--- > .../prog/en/xslt/NORMARCslim2OPACDetail.xsl | 5 ++++- > .../prog/en/xslt/NORMARCslim2OPACResults.xsl | 4 ++++ > 2 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >index 1a4e042..369a255 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >@@ -15,6 +15,8 @@ > </xsl:template> > > <xsl:template match="marc:record"> >+ >+ <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/> > > <xsl:variable name="leader" select="marc:leader"/> > <xsl:variable name="leader6" select="substring($leader,7,1)"/> >@@ -144,13 +146,14 @@ > <span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber={marc:datafield[@tag=999]/marc:subfield[@code='c']}">Kortvisning (ISBD)</a></span> > </div> > >- >+ <xsl:if test="$DisplayOPACiconsXSLT!='0'"> > <xsl:if test="$materialTypeCode!=''"> > <span class="results_summary"><span class="label">Materialtype: </span> > <xsl:element name="img"><xsl:attribute name="src">/opac-tmpl/prog/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element> > <xsl:value-of select="$materialTypeLabel"/> > </span> > </xsl:if> >+ </xsl:if> > > <!--Series --> > <xsl:if test="marc:datafield[@tag=440 or @tag=490]"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >index 9d5323c..bcf6eab 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >@@ -17,6 +17,8 @@ > <xsl:apply-templates/> > </xsl:template> > <xsl:template match="marc:record"> >+ >+ <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/> > > <xsl:variable name="leader" select="marc:leader"/> > <xsl:variable name="leader6" select="substring($leader,7,1)"/> >@@ -369,6 +371,7 @@ > </span> > </xsl:if> > >+<xsl:if test="$DisplayOPACiconsXSLT!='0'"> > <span class="results_summary"> > <xsl:if test="$typeOf008!=''"> > <span class="label">Type: </span> >@@ -673,6 +676,7 @@ > </xsl:choose> > </xsl:if> > </span> >+</xsl:if> > > <!-- Utgivelse, distribusjon osv --> > <xsl:if test="marc:datafield[@tag=260]"> >-- >1.7.2.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 7489
:
7432
|
7433
|
7597