Bugzilla – Attachment 187496 Details for
Bug 40959
LOC classification display broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40959: Fix LOC classification display (staff interface)
Bug-40959-Fix-LOC-classification-display-staff-int.patch (text/plain), 1.89 KB, created by
Lucas Gass (lukeg)
on 2025-10-06 20:12:08 UTC
(
hide
)
Description:
Bug 40959: Fix LOC classification display (staff interface)
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-10-06 20:12:08 UTC
Size:
1.89 KB
patch
obsolete
>From f8d8cbe1e874b0b7ad62e6cee8721288a3b39a11 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= <tomascohen@theke.io> >Date: Mon, 6 Oct 2025 12:03:54 -0300 >Subject: [PATCH] Bug 40959: Fix LOC classification display (staff interface) > >This patch fixes the display logic for the LOC classification field >(050). > >The current issue is that the inner components (each subfield) gets >separated with the pipe symbol (|) instead of grouping the components >together and using the separator for the outer 050 occurences. > >To test: >1. Open a record to edit it >2. Add 050 like this: > >``` >050 4 $aE337.5 $b.O54 2025 >050 4 $aE415.7 $b.A44 2025 >``` > >3. Save >=> FAIL On the staff interface it displays: > >``` >LOC classification: E337.5 | .O54 2025 E415.7 | .A44 2025 >``` > >4. Apply this patch >5. Run: > $ ktd --shell > k$ restart_all >6. Reload the detail page >=> SUCCESS: Things display correctly! >7. Sign off :-D > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- > 1 file changed, 1 insertion(+), 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 70adb5ffbcd..be69a2094ae 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -908,8 +908,8 @@ > <xsl:for-each select="marc:datafield[@tag=050]"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">ab</xsl:with-param> >- <xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param> > </xsl:call-template> >+ <xsl:if test="not(position()=last())"><xsl:text> | </xsl:text></xsl:if> > </xsl:for-each> > </span> > </xsl:if> >-- >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 40959
:
187481
| 187496