Bugzilla – Attachment 103158 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.87 KB, created by
ByWater Sandboxes
on 2020-04-17 13:18:23 UTC
(
hide
)
Description:
Bug 15727: Add MARC21 385 - Audience to detail pages
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-04-17 13:18:23 UTC
Size:
4.87 KB
patch
obsolete
>From dddb4036c69d70acf3ab40775673784256822d78 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 > >Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> >--- > .../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 84f1055e4c..401cb2c41a 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 5d79840678..7dc912458e 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