Bugzilla – Attachment 186019 Details for
Bug 40618
The display of the field 255 (Cartographic Mathematical Data) is missing (both in intranet and OPAC)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40618: The display of the field 255 (Cartographic Mathematical Data) is missing (both in intranet and OPAC)
Bug-40618-The-display-of-the-field-255-Cartographi.patch (text/plain), 5.08 KB, created by
Roman Dolny
on 2025-09-01 17:41:31 UTC
(
hide
)
Description:
Bug 40618: The display of the field 255 (Cartographic Mathematical Data) is missing (both in intranet and OPAC)
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2025-09-01 17:41:31 UTC
Size:
5.08 KB
patch
obsolete
>From 95e314a0f1c9bb1b57163773e9b2b3b86744b94c Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 1 Sep 2025 09:56:10 +0000 >Subject: [PATCH] Bug 40618: The display of the field 255 (Cartographic > Mathematical Data) is missing (both in intranet and OPAC) > >For the maps, one of the key characteristics is the information about >the scale of the map (in MARC 21 - in the field 255: >https://www.loc.gov/marc/bibliographic/bd255.html). Currently, we do not >display it neither in intranet view, nor in OPAC. > >Test plan: >========== >1. Modify any bibliograhic record inserting a 255 field with example > content. (You may need to make the subfields visible in the editor by > modifying the MARC framework). >2. Verify in Normal view (intranet) and in OPAC that you are unable to > see the inserted data. >3. Apply the patch ; restart_all. >4. Verify in Normal view (intranet) and in OPAC that you are now able to > see the cartographical data from 255 field. > >Sponsored-by: Ignatianum University in Cracow >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 25 +++++++++++++++++ > .../en/xslt/MARC21slim2OPACDetail.xsl | 27 +++++++++++++++++++ > 2 files changed, 52 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 9167240766..933ecd4304 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -359,6 +359,31 @@ > </span> > </xsl:if> > >+ <!-- Cartographic data Statement: Alternate Graphic Representation (MARC 880) --> >+ <xsl:if test="$display880"> >+ <xsl:call-template name="m880Select"> >+ <xsl:with-param name="basetags">255</xsl:with-param> >+ <xsl:with-param name="codes">abcdefg</xsl:with-param> >+ <xsl:with-param name="class">results_summary cartographic_data</xsl:with-param> >+ <xsl:with-param name="label">Cartographic data: </xsl:with-param> >+ </xsl:call-template> >+ </xsl:if> >+ >+ <xsl:if test="marc:datafield[@tag=255]"> >+ <span class="results_summary cartographic_data"><span class="label">Cartographic data: </span> >+ <xsl:for-each select="marc:datafield[@tag=255]"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdefg</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <!-- Description: Alternate Graphic Representation (MARC 880) --> > <xsl:if test="$display880"> > <xsl:call-template name="m880Select"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index ea7c985ecc..ac57b1d717 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -412,6 +412,33 @@ > </span> > </xsl:if> > >+ <!-- Cartographic data Statement: Alternate Graphic Representation (MARC 880) --> >+ <xsl:if test="$display880"> >+ <xsl:call-template name="m880Select"> >+ <xsl:with-param name="basetags">255</xsl:with-param> >+ <xsl:with-param name="codes">abcdefg</xsl:with-param> >+ <xsl:with-param name="class">results_summary cartographic_data</xsl:with-param> >+ <xsl:with-param name="label">Cartographic data: </xsl:with-param> >+ </xsl:call-template> >+ </xsl:if> >+ >+ <xsl:if test="marc:datafield[@tag=255]"> >+ <span class="results_summary cartographic_data"><span class="label">Cartographic data: </span> >+ <xsl:for-each select="marc:datafield[@tag=255]"> >+ <span property="cartographicData"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdefg</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </span> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <!-- Description: Alternate Graphic Representation (MARC 880) --> > <xsl:if test="$display880"> > <xsl:call-template name="m880Select"> >-- >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 40618
:
186012
|
186019
|
186615