Bugzilla – Attachment 41702 Details for
Bug 13734
RDA: Display 33xs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13734: RDA: Display 33xs
Bug-13734-RDA-Display-33xs.patch (text/plain), 7.02 KB, created by
Marcel de Rooy
on 2015-08-20 08:54:32 UTC
(
hide
)
Description:
Bug 13734: RDA: Display 33xs
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-08-20 08:54:32 UTC
Size:
7.02 KB
patch
obsolete
>From 83c685235c972ad6781023ab141cf06d79374962 Mon Sep 17 00:00:00 2001 >From: Winona Salesky <wsalesky@gmail.com> >Date: Tue, 28 Apr 2015 22:11:57 -0400 >Subject: [PATCH] Bug 13734: RDA: Display 33xs >Content-Type: text/plain; charset=utf-8 > > Test Plan: > 1) Apply this patch > 2) Ensure you are using the default XSLT setting for the staff and opac search results and record details > 3) Find or create a record with MARC tags 336,337,338 > 4) Perform an opac search that would show the record in the search results. > 5) Click title to review record. > 6) Adds fields 336, 337 and 338 to staff and opac details. Adds comma between multiple subfields and | with class='separator' between multiple datafields (e.g. two 336 fields) > 7) Repeat steps 4 - 6 for the staff interface > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Works, no errors > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 41 +++++++++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 43 ++++++++++++++++++++ > 2 files changed, 84 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 73a2126..5d33597 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -402,6 +402,47 @@ > </span> > </xsl:if> > >+ <!-- Content Type --> >+ <xsl:if test="marc:datafield[@tag=336] or marc:datafield[@tag=337] or marc:datafield[@tag=338]"> >+ <span class="results_summary" id="content_type"> >+ <xsl:if test="marc:datafield[@tag=336]"> >+ <span class="label">Content Type: </span> >+ <xsl:for-each select="marc:datafield[@tag=336]"> >+ <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:if test="position() != last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ <xsl:text> </xsl:text> >+ <!-- Media Type --> >+ <xsl:if test="marc:datafield[@tag=337]"> >+ <span class="label">Media Type: </span> >+ <xsl:for-each select="marc:datafield[@tag=337]"> >+ <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:if test="position() != last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ <xsl:text> </xsl:text> >+ <!-- Media Type --> >+ <xsl:if test="marc:datafield[@tag=338]"> >+ <span class="label">Carrier Type: </span> >+ <xsl:for-each select="marc:datafield[@tag=338]"> >+ <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:if test="position() != last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ </span> >+ </xsl:if> >+ >+ > <!-- Build ISBN --> > <xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']"> > <span class="results_summary isbn"><span class="label">ISBN: </span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 695c39f..5e90e8b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -436,6 +436,49 @@ > </span> > </xsl:if> > >+ >+ <!-- Content Type --> >+ <xsl:if test="marc:datafield[@tag=336] or marc:datafield[@tag=337] or marc:datafield[@tag=338]"> >+ <span class="results_summary" id="content_type"> >+ <xsl:if test="marc:datafield[@tag=336]"> >+ <span class="label">Content Type: </span> >+ <xsl:for-each select="marc:datafield[@tag=336]"> >+ <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:if test="position() != last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ <xsl:text> </xsl:text> >+ <!-- Media Type --> >+ <xsl:if test="marc:datafield[@tag=337]"> >+ <span class="label">Media Type: </span> >+ <xsl:for-each select="marc:datafield[@tag=337]"> >+ <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:if test="position() != last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ <xsl:text> </xsl:text> >+ <!-- Media Type --> >+ <xsl:if test="marc:datafield[@tag=338]"> >+ <span class="label">Carrier Type: </span> >+ <xsl:for-each select="marc:datafield[@tag=338]"> >+ <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:if test="position() != last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ </span> >+ </xsl:if> >+ >+ >+ > <xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']"> > <span class="results_summary isbn"><span class="label">ISBN: </span> > <xsl:for-each select="marc:datafield[@tag=020]/marc:subfield[@code='a']"> >-- >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 13734
:
36046
|
36825
|
36919
|
36920
|
37218
|
38620
|
38957
| 41702