Bugzilla – Attachment 153528 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), 6.25 KB, created by
Marcel de Rooy
on 2023-07-17 08:56:22 UTC
(
hide
)
Description:
Bug 29471: Add display of MARC 520 to staff interface detail page
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-07-17 08:56:22 UTC
Size:
6.25 KB
patch
obsolete
>From be3a9f4b8e719cc42f3a527aee785766530ee1e9 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 >Content-Type: text/plain; charset=utf-8 > >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 > >Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >Updated patch for displaying $u as link. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Restored signoff line from Phil. Change only for $u. >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 30 +++++++++++++- > .../en/xslt/MARC21slim2OPACDetail.xsl | 39 ++++++++++++------- > 2 files changed, 54 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 1a4a6547d0..3aade69a51 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1069,11 +1069,39 @@ > </a> > </xsl:for-each> > </xsl:if> >- <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> >+ <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if> > </xsl:for-each> > </span> > </xsl:if> > >+ <!-- 520 - Summary, etc. --> >+ <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">abc</xsl:with-param> >+ </xsl:call-template> >+ <xsl:if test="marc:subfield[@code='u']"> >+ <xsl:for-each select="marc:subfield[@code='u']"> >+ <xsl:text> </xsl:text> >+ <a> >+ <xsl:attribute name="href"><xsl:value-of select="text()"/></xsl:attribute> >+ <xsl:value-of select="text()"/> >+ </a> >+ </xsl:for-each> >+ </xsl:if> >+ </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 d391050126..a27c8b9830 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1283,21 +1283,32 @@ > </span> > </xsl:if> > >+ <!-- 520 - Summary, etc. --> > <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">abc</xsl:with-param> >+ </xsl:call-template> >+ <xsl:if test="marc:subfield[@code='u']"> >+ <xsl:for-each select="marc:subfield[@code='u']"> >+ <xsl:text> </xsl:text> >+ <a> >+ <xsl:attribute name="href"><xsl:value-of select="text()"/></xsl:attribute> >+ <xsl:value-of select="text()"/> >+ </a> >+ </xsl:for-each> >+ </xsl:if> >+ </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