Bugzilla – Attachment 102797 Details for
Bug 15727
Add 385$a - Audience to MARC21 detail pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15727: Add MARC21 385 - Audience to detail pages
Bug-15727-Add-MARC21-385---Audience-to-detail-page.patch (text/plain), 4.82 KB, created by
Katrin Fischer
on 2020-04-13 03:40:24 UTC
(
hide
)
Description:
Bug 15727: Add MARC21 385 - Audience to detail pages
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-13 03:40:24 UTC
Size:
4.82 KB
patch
obsolete
>From 4677556982755c484f179f3c1c20effbb8ef038c Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sat, 11 Apr 2020 14:09:27 +0000 >Subject: [PATCH] Bug 15727: Add MARC21 385 - Audience to detail pages > >This add 385$m$a to the staff and intranet detail pages. > >To test: >- Catalog different variations of 385 and verify the > display in the OPAC and staff client is ok > >Examples can be found in the LOC MARC21 documentation: >http://www.loc.gov/marc/bibliographic/bd385.html >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 27 +++++++++++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 28 +++++++++++++++++++++- > 2 files changed, 54 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 23944c557a..66c258b5f3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -515,6 +515,33 @@ > </span> > </xsl:if> > >+ <!-- 385 - Audience --> >+ <xsl:if test="marc:datafield[@tag=385]"> >+ <span class="results_summary audience"> >+ <span class="label">Audience: </span> >+ <xsl:for-each select="marc:datafield[@tag=385]"> >+ <xsl:if test="marc:subfield[@code='m']"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">m</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:text>: </xsl:text> >+ </xsl:if> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a</xsl:with-param> >+ <xsl:with-param name="delimeter">, </xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> | </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> > > <xsl:call-template name="showISBNISSN"/> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index ca5ee81dd7..781b6a1aa1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -546,7 +546,33 @@ > </span> > </xsl:if> > >- >+ <!-- 385 - Audience --> >+ <xsl:if test="marc:datafield[@tag=385]"> >+ <span class="results_summary audience"> >+ <span class="label">Audience: </span> >+ <xsl:for-each select="marc:datafield[@tag=385]"> >+ <xsl:if test="marc:subfield[@code='m']"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">m</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:text>: </xsl:text> >+ </xsl:if> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a</xsl:with-param> >+ <xsl:with-param name="delimeter">, </xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> | </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> > > <xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']"> > <span class="results_summary isbn"><span class="label">ISBN: </span> >-- >2.11.0
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 15727
:
102797
|
103158
|
104278