Bugzilla – Attachment 152906 Details for
Bug 29471
MARC21: 520 - Summary etc. doesn't display in staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29471: Add display of MARC 520 to staff interface detail page
Bug-29471-Add-display-of-MARC-520-to-staff-interfa.patch (text/plain), 4.58 KB, created by
Katrin Fischer
on 2023-06-30 14:24:40 UTC
(
hide
)
Description:
Bug 29471: Add display of MARC 520 to staff interface detail page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-06-30 14:24:40 UTC
Size:
4.58 KB
patch
obsolete
>From 75b5b3450e683a50d2554309f7fb8e98d7ae990f Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Fri, 30 Jun 2023 14:22:17 +0000 >Subject: [PATCH] Bug 29471: Add display of MARC 520 to staff interface detail > page > >At the moment 520 only displays in the OPAC. With this patch it >also displays in the staff interface detail page. > >To test: >* Find a record with 520 or add some 520 entries to a record > Note: different ind. 1 values will result in different labels >* View the record in the staff interface and the OPAC >* Verify only the OPAC shows the 520 entries >* Apply patch >* Verify now the staff interface displays them as well >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 18 ++++++++++++ > .../en/xslt/MARC21slim2OPACDetail.xsl | 29 ++++++++++--------- > 2 files changed, 33 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index c7ac227327..736dbd559d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1052,6 +1052,24 @@ > </span> > </xsl:if> > >+ <xsl:for-each select="marc:datafield[@tag=520]"> >+ <span class="results_summary summary"> >+ <span class="label"> >+ <xsl:choose> >+ <xsl:when test="@ind1=0"><xsl:text>Subject: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=1"><xsl:text>Review: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=2"><xsl:text>Scope and content: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=3"><xsl:text>Abstract: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=4"><xsl:text>Content advice: </xsl:text></xsl:when> >+ <xsl:otherwise><xsl:text>Summary: </xsl:text></xsl:otherwise> >+ </xsl:choose> >+ </span> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcu</xsl:with-param> >+ </xsl:call-template> >+ </span> >+ </xsl:for-each> >+ > <!-- Content Warning --> > <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/> > <xsl:if test="marc:datafield[@tag=$ContentWarningField]"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 6493efda20..59cbd0d595 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1275,20 +1275,21 @@ > </xsl:if> > > <xsl:for-each select="marc:datafield[@tag=520]"> >- <span class="results_summary summary"><span class="label"> >- <xsl:choose> >- <xsl:when test="@ind1=0"><xsl:text>Subject: </xsl:text></xsl:when> >- <xsl:when test="@ind1=1"><xsl:text>Review: </xsl:text></xsl:when> >- <xsl:when test="@ind1=2"><xsl:text>Scope and content: </xsl:text></xsl:when> >- <xsl:when test="@ind1=3"><xsl:text>Abstract: </xsl:text></xsl:when> >- <xsl:when test="@ind1=4"><xsl:text>Content advice: </xsl:text></xsl:when> >- <xsl:otherwise><xsl:text>Summary: </xsl:text></xsl:otherwise> >- </xsl:choose> >- </span> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">abcu</xsl:with-param> >- </xsl:call-template> >- </span> >+ <span class="results_summary summary"> >+ <span class="label"> >+ <xsl:choose> >+ <xsl:when test="@ind1=0"><xsl:text>Subject: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=1"><xsl:text>Review: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=2"><xsl:text>Scope and content: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=3"><xsl:text>Abstract: </xsl:text></xsl:when> >+ <xsl:when test="@ind1=4"><xsl:text>Content advice: </xsl:text></xsl:when> >+ <xsl:otherwise><xsl:text>Summary: </xsl:text></xsl:otherwise> >+ </xsl:choose> >+ </span> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcu</xsl:with-param> >+ </xsl:call-template> >+ </span> > </xsl:for-each> > > <!-- Content Warning --> >-- >2.30.2
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 29471
:
152906
|
152908
|
153474
|
153528