Bugzilla – Attachment 186553 Details for
Bug 40832
Display MARC 382 (Medium of Performance) on result list and detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40832: Add MARC21 field 382 Medium of Performance to search results
Bug-40832-Add-MARC21-field-382-Medium-of-Performan.patch (text/plain), 5.00 KB, created by
Lari Taskula
on 2025-09-18 10:23:17 UTC
(
hide
)
Description:
Bug 40832: Add MARC21 field 382 Medium of Performance to search results
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2025-09-18 10:23:17 UTC
Size:
5.00 KB
patch
obsolete
>From f1faf8c47fb78f9f145236a6921547588d02aadb Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Thu, 18 Sep 2025 13:17:29 +0300 >Subject: [PATCH] Bug 40832: Add MARC21 field 382 Medium of Performance to > search results > >To test: >1. On both OPAC and the staff interface, search for the records imported in >previous patch >2. Observe Medium of performance is displayed accordingly >--- > .../en/xslt/MARC21slim2intranetResults.xsl | 36 +++++++++++++++++++ > .../en/xslt/MARC21slim2OPACResults.xsl | 36 +++++++++++++++++++ > 2 files changed, 72 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index b03a8c1f9dc..134853f0098 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -845,6 +845,42 @@ > </span> > </xsl:if> <!-- DisplayIconsXSLT --> > >+ <!-- 382 - Medium of Performance --> >+ <xsl:if test="marc:datafield[@tag=382]"> >+ <span class="results_summary medium_of_performance"> >+ <span class="label">Medium of performance: </span> >+ <xsl:for-each select="marc:datafield[@tag=382]"> >+ <xsl:for-each select="marc:subfield"> >+ <xsl:if test="@code='a' or @code='b'"> >+ <xsl:if test="preceding-sibling::marc:subfield[@code='a'] or preceding-sibling::marc:subfield[@code='b']"> >+ <xsl:text>, </xsl:text> >+ </xsl:if> >+ <xsl:value-of select="text()"/> >+ </xsl:if> >+ <xsl:if test="@code='p'"> >+ <xsl:text> or </xsl:text> >+ <xsl:value-of select="text()"/> >+ </xsl:if> >+ <xsl:if test="@code='d'"> >+ <xsl:text> doubling </xsl:text> >+ <xsl:value-of select="text()"/> >+ </xsl:if> >+ <xsl:if test="@code='n' or @code='e'"> >+ <xsl:text> (</xsl:text> >+ <xsl:value-of select="text()"/> >+ <xsl:text>)</xsl:text> >+ </xsl:if> >+ <xsl:if test="@code='v'"> >+ <xsl:text> [</xsl:text> >+ <xsl:value-of select="text()"/> >+ <xsl:text>]</xsl:text> >+ </xsl:if> >+ </xsl:for-each> >+ <xsl:if test="position()!=last()"><xsl:text>; </xsl:text></xsl:if> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <xsl:call-template name="show-lang-041"/> > > <!-- Publisher Statement: Alternate Graphic Representation (MARC 880) --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 96acfdced1a..32d40677340 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1056,6 +1056,42 @@ > </div> > </xsl:if> > >+ <!-- 382 - Medium of Performance --> >+ <xsl:if test="marc:datafield[@tag=382]"> >+ <span class="results_summary medium_of_performance"> >+ <span class="label">Medium of performance: </span> >+ <xsl:for-each select="marc:datafield[@tag=382]"> >+ <xsl:for-each select="marc:subfield"> >+ <xsl:if test="@code='a' or @code='b'"> >+ <xsl:if test="preceding-sibling::marc:subfield[@code='a'] or preceding-sibling::marc:subfield[@code='b']"> >+ <xsl:text>, </xsl:text> >+ </xsl:if> >+ <xsl:value-of select="text()"/> >+ </xsl:if> >+ <xsl:if test="@code='p'"> >+ <xsl:text> or </xsl:text> >+ <xsl:value-of select="text()"/> >+ </xsl:if> >+ <xsl:if test="@code='d'"> >+ <xsl:text> doubling </xsl:text> >+ <xsl:value-of select="text()"/> >+ </xsl:if> >+ <xsl:if test="@code='n' or @code='e'"> >+ <xsl:text> (</xsl:text> >+ <xsl:value-of select="text()"/> >+ <xsl:text>)</xsl:text> >+ </xsl:if> >+ <xsl:if test="@code='v'"> >+ <xsl:text> [</xsl:text> >+ <xsl:value-of select="text()"/> >+ <xsl:text>]</xsl:text> >+ </xsl:if> >+ </xsl:for-each> >+ <xsl:if test="position()!=last()"><xsl:text>; </xsl:text></xsl:if> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <xsl:call-template name="show-lang-041"/> > > <!-- Publisher Statement: Alternate Graphic Representation (MARC 880) --> >-- >2.34.1
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 40832
:
186552
|
186553
|
186556
|
186557