Bugzilla – Attachment 36920 Details for
Bug 13734
RDA: Display 33xs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updates 336, 337 and 338 to the full displays in the staff and OPAC
0003-Updated-336-337-and-338-to-display.patch (text/plain), 8.38 KB, created by
Winona Salesky
on 2015-03-16 01:47:38 UTC
(
hide
)
Description:
Updates 336, 337 and 338 to the full displays in the staff and OPAC
Filename:
MIME Type:
Creator:
Winona Salesky
Created:
2015-03-16 01:47:38 UTC
Size:
8.38 KB
patch
obsolete
>From ff1709813896f6f50be12e3ae778e159f3e1ce6f Mon Sep 17 00:00:00 2001 >From: Winona Salesky <wsalesky@gmail.com> >Date: Sun, 15 Mar 2015 21:45:40 -0400 >Subject: [PATCH 3/3] Updated 336, 337 and 338 to display > >This patch fields 336, 337 and 338 to the full displays in the staff and OPAC views. Display has id=content_type so it can be easily suppressed. > >To test: >* Search the opac for records with 336, 337 and or 338 >* Click the title >* Make sure the fields display properly >* Repeat for a few more titles >* Repeat in the Staff Client > > >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 57 +++++++++++---------- > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 59 +++++++++++----------- > 2 files changed, 60 insertions(+), 56 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 9655875..00715a4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -391,37 +391,40 @@ > </xsl:if> > > <!-- Content Type --> >- <xsl:if test="marc:datafield[@tag=336]"> >- <span class="results_summary" id="content_type"><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:call-template> >- </xsl:for-each> >+ <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:call-template> >+ </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:call-template> >+ </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:call-template> >+ </xsl:for-each> >+ </xsl:if> > </span> > </xsl:if> > >- <!-- Media Type --> >- <xsl:if test="marc:datafield[@tag=337]"> >- <span class="results_summary" id="media_type"><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:call-template> >- </xsl:for-each> >- </span> >- </xsl:if> > >- <!-- Media Type --> >- <xsl:if test="marc:datafield[@tag=338]"> >- <span class="results_summary" id="carrier_type"><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:call-template> >- </xsl:for-each> >- </span> >- </xsl:if> > > <!-- Build ISBN --> > <xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 281146d..6ce30d2 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -430,35 +430,36 @@ > </xsl:if> > > <!-- Content Type --> >- <xsl:if test="marc:datafield[@tag=336]"> >- <span class="results_summary" id="content_type"><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:call-template> >- </xsl:for-each> >- </span> >- </xsl:if> >- >- <!-- Media Type --> >- <xsl:if test="marc:datafield[@tag=337]"> >- <span class="results_summary" id="media_type"><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:call-template> >- </xsl:for-each> >- </span> >- </xsl:if> >- >- <!-- Media Type --> >- <xsl:if test="marc:datafield[@tag=338]"> >- <span class="results_summary" id="carrier_type"><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:call-template> >- </xsl:for-each> >+ <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:call-template> >+ </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:call-template> >+ </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:call-template> >+ </xsl:for-each> >+ </xsl:if> > </span> > </xsl:if> > >-- >1.9.5 (Apple Git-50.3) >
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