Bugzilla – Attachment 31249 Details for
Bug 12842
Add classification to MARC21 XSLT detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12842: Add DDC classification numbers to MARC21 XSLT detail page
Bug-12842-Add-DDC-classification-numbers-to-MARC21.patch (text/plain), 3.37 KB, created by
Katrin Fischer
on 2014-08-28 13:25:45 UTC
(
hide
)
Description:
Bug 12842: Add DDC classification numbers to MARC21 XSLT detail page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-08-28 13:25:45 UTC
Size:
3.37 KB
patch
obsolete
>From 05b28434279c92263f84b78956863c590b05251e Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Thu, 28 Aug 2014 15:17:10 +0200 >Subject: [PATCH] Bug 12842: Add DDC classification numbers to MARC21 XSLT > detail page > >Patch will add DDC classifications, divided with | below the subjects >in the OPAC and staff detail pages. > >To test: >- catalogue a record with one or mulitple 082$a subfields >- verify the classifications are displayed in OPAC and staff detail page >- Add following CSS to OpacUserCSS or IntranetUserCSS: > >.results_summary.ddc { > display:none; >} > >- Verify the DDC classifications are now no longer displayed >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 16 ++++++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 17 +++++++++++++++++ > 2 files changed, 33 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 003f528..a74670e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -534,6 +534,22 @@ > </span> > </xsl:if> > >+<!-- DDC classification --> >+ <xsl:if test="marc:datafield[@tag=082]"> >+ <span class="results_summary ddc"> >+ <span class="label">DDC classification: </span> >+ <xsl:for-each select="marc:datafield[@tag=082]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a</xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose> >+ <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when> >+ <xsl:otherwise> | </xsl:otherwise> >+ </xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <xsl:if test="marc:datafield[@tag=856]"> > <span class="results_summary online_resources"><span class="label">Online resources: </span> > <xsl:for-each select="marc:datafield[@tag=856]"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 6e22599..883d768 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -590,6 +590,23 @@ > </span> > </xsl:if> > >+<!-- DDC classification --> >+ <xsl:if test="marc:datafield[@tag=082]"> >+ <span class="results_summary ddc"> >+ <span class="label">DDC classification: </span> >+ <xsl:for-each select="marc:datafield[@tag=082]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a</xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose> >+ <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when> >+ <xsl:otherwise> | </xsl:otherwise> >+ </xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ >+ > <!-- Image processing code added here, takes precedence over text links including y3z text --> > <xsl:if test="marc:datafield[@tag=856]"> > <span class="results_summary online_resources"><span class="label">Online resources: </span> >-- >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 12842
:
31249
|
33119
|
34574