Bugzilla – Attachment 115492 Details for
Bug 27022
Add publisher number (MARC21 028) to OPAC and staff detail pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27022: Publisher number 028 does not display according to framework settings
Bug-27022-Publisher-number-028-does-not-display-ac.patch (text/plain), 5.38 KB, created by
Catherine
on 2021-01-21 02:43:12 UTC
(
hide
)
Description:
Bug 27022: Publisher number 028 does not display according to framework settings
Filename:
MIME Type:
Creator:
Catherine
Created:
2021-01-21 02:43:12 UTC
Size:
5.38 KB
patch
obsolete
>From 2d496aef360421a3a1d506ec0a827fe27eb32472 Mon Sep 17 00:00:00 2001 >From: Catherine Ma <catherinem2003@gmail.com> >Date: Thu, 21 Jan 2021 02:23:22 +0000 >Subject: [PATCH] Bug 27022: Publisher number 028 does not display according to > framework settings > >Test plan: >1. search the catalogue for an item >2. check if you can see the publisher number below the item title (you shouldn't) >3. click on the item and check if you can see the publisher number on >this page (you shouldn't) >4. in a new browser, repeat steps 1-3 on the OPAC >5. apply patch >6. repeat steps 1-4, however this time the publisher number SHOULD >display under the item titles > >Sponsored by Catalyst IT >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 13 +++++++++++++ > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 13 +++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 16 +++++++++++++++- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 13 +++++++++++++ > 4 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 ea90b2b90c..c54537799d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -843,6 +843,19 @@ > </xsl:for-each> > </xsl:if> > >+<!-- Publisher or Distributor Number --> >+ <xsl:if test="marc:datafield[@tag=028]"> >+ <span class="results_summary publisher_number "> >+ <span class="label">Publisher number: </span> >+ <xsl:for-each select="marc:datafield[@tag=028]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abq</xsl:with-param> >+ <xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param> >+ </xsl:call-template> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <!-- DDC classification --> > <xsl:if test="marc:datafield[@tag=082]"> > <span class="results_summary ddc"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index c906d3a1f6..34ada72afe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -879,6 +879,19 @@ > </xsl:when> > </xsl:choose> > >+ <!-- Publisher or Distributor Number --> >+ <xsl:if test="marc:datafield[@tag=028]"> >+ <span class="results_summary publisher_number "> >+ <span class="label">Publisher number: </span> >+ <xsl:for-each select="marc:datafield[@tag=028]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abq</xsl:with-param> >+ <xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param> >+ </xsl:call-template> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <!-- Dissertation note --> > <xsl:if test="marc:datafield[@tag=502]"> > <span class="results_summary diss_note"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 685f4b1196..0004bbd846 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -197,7 +197,21 @@ > <xsl:value-of select="$materialTypeLabel"/> > </span> > </xsl:if> >- </xsl:if> >+ </xsl:if> >+ >+ >+ <!-- Publisher or Distributor Number --> >+ <xsl:if test="marc:datafield[@tag=028]"> >+ <span class="results_summary publisher_number "> >+ <span class="label">Publisher number: </span> >+ <xsl:for-each select="marc:datafield[@tag=028]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abq</xsl:with-param> >+ <xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param> >+ </xsl:call-template> >+ </xsl:for-each> >+ </span> >+ </xsl:if> > > <xsl:call-template name="show-lang-041"/> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 04110e0c47..f8d73f57dc 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1045,6 +1045,19 @@ > </xsl:call-template> > </xsl:if> > >+ <!-- Publisher or Distributor Number --> >+ <xsl:if test="marc:datafield[@tag=028]"> >+ <span class="results_summary publisher_number "> >+ <span class="label">Publisher number: </span> >+ <xsl:for-each select="marc:datafield[@tag=028]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abq</xsl:with-param> >+ <xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param> >+ </xsl:call-template> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <!-- Publisher info and RDA related info from tags 260, 264 --> > <xsl:choose> > <xsl:when test="marc:datafield[@tag=264]"> >-- >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 27022
:
115491
|
115492
|
115617
|
115669