Bugzilla – Attachment 34574 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]
[PASSED QA] Bug 12842: Add DDC classification numbers to MARC21 XSLT detail page
PASSED-QA-Bug-12842-Add-DDC-classification-numbers.patch (text/plain), 3.69 KB, created by
Kyle M Hall
on 2014-12-19 16:01:11 UTC
(
hide
)
Description:
[PASSED QA] Bug 12842: Add DDC classification numbers to MARC21 XSLT detail page
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2014-12-19 16:01:11 UTC
Size:
3.69 KB
patch
obsolete
>From 4dd7a8d7f3b5a75470a311d45112e8ee8cb76919 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] [PASSED QA] 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 > >Signed-off-by: Frederic Demians <f.demians@tamil.fr> > >Test plan ok. Repetions of $a subfield are separated by a space, which seems >correct. I'm not sure whether other subfield than $a should be displayed on >intranet. Whatever, this could be added later. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 16 ++++++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 17 +++++++++++++++++ > 2 files changed, 33 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index f96c0eb..349dbea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -565,6 +565,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 af9ac00..11624c4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -625,6 +625,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.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 12842
:
31249
|
33119
| 34574