Bugzilla – Attachment 182033 Details for
Bug 39852
Add other standard identifier (024$a) to OPAC/Staff interface detail pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39852: Add 024$a to MARC21 detail pages
Bug-39852-Add-024a-to-MARC21-detail-pages.patch (text/plain), 3.09 KB, created by
Lucas Gass (lukeg)
on 2025-05-07 15:39:17 UTC
(
hide
)
Description:
Bug 39852: Add 024$a to MARC21 detail pages
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-05-07 15:39:17 UTC
Size:
3.09 KB
patch
obsolete
>From f63ddc1c2689db0e00c5f50ce8dab9f977b3cb03 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 7 May 2025 15:36:19 +0000 >Subject: [PATCH] Bug 39852: Add 024$a to MARC21 detail pages > >To test: >1. APPLY PATCH and restart_all >2. Find or create a record with a single 024$a. >3. The filed shoud display as 'Other standard identifier' in the staff detail page. >4. Try the OPAC detail page, the display should be the same. >5. Add multiple 024$a to a single record. >6. The display should look right on both the OPAC and staff interface, with each 024$a being pip seperated. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 14 ++++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 14 ++++++++++++++ > 2 files changed, 28 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 9167240766c..e6905b7e1d2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -859,6 +859,20 @@ > </span> > </xsl:if> > >+ <xsl:if test="marc:datafield[@tag=024]/marc:subfield[@code='a']"> >+ <span class="results_summary other_standard_identifier"> >+ <span class="label">Other standard identifier: </span> >+ <xsl:for-each select="marc:datafield[@tag=024]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a</xsl:with-param> >+ </xsl:call-template> >+ <xsl:if test="position() != last()"> >+ <xsl:text> | </xsl:text> >+ </xsl:if> >+ </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/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index b4c0c2165ee..5991e97174e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -534,6 +534,20 @@ > </span> > </xsl:if> > >+ <xsl:if test="marc:datafield[@tag=024]/marc:subfield[@code='a']"> >+ <span class="results_summary other_standard_identifier"><span class="label">Other standard identifier: </span> >+ <ul class="resource_list"> >+ <xsl:for-each select="marc:datafield[@tag=024]/marc:subfield[@code='a']"> >+ <li> >+ <span property="other_standard_identifier"> >+ <xsl:value-of select="."/> >+ </span> >+ </li> >+ </xsl:for-each> >+ </ul> >+ </span> >+ </xsl:if> >+ > <!-- Build ISSN --> > <xsl:if test="marc:datafield[@tag=022]/marc:subfield[@code='a']"> > <span class="results_summary issn"><span class="label">ISSN: </span> >-- >2.39.5
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 39852
: 182033