Bugzilla – Attachment 192815 Details for
Bug 38096
Field 857 is not considered for display on XSLT files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38096: OPAC: Display 857 on detail and results pages
Bug-38096-OPAC-Display-857-on-detail-and-results-p.patch (text/plain), 4.26 KB, created by
Pedro Amorim
on 2026-02-09 16:03:49 UTC
(
hide
)
Description:
Bug 38096: OPAC: Display 857 on detail and results pages
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2026-02-09 16:03:49 UTC
Size:
4.26 KB
patch
obsolete
>From cda13b586fc7ba24ec8196bbb6cc27735fff8a57 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 7 Oct 2024 12:03:55 +0000 >Subject: [PATCH] Bug 38096: OPAC: Display 857 on detail and results pages > >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >--- > .../en/xslt/MARC21slim2OPACDetail.xsl | 23 ++++++++++++++++--- > .../en/xslt/MARC21slim2OPACResults.xsl | 17 ++++++++++++++ > 2 files changed, 37 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 4ca9e0b97ca..ff227b3bd34 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1063,10 +1063,10 @@ > </xsl:if> > > >- <!-- Image processing code added here, takes precedence over text links including y3z text --> >+ <!-- 856 --> > <xsl:if test="marc:datafield[@tag=856]"> > <xsl:if test="normalize-space(marc:datafield[@tag=856]/marc:subfield[@code='u'])"> >- <span class="results_summary online_resources"> >+ <div class="results_summary online_resources"> > <span class="label">Online resources: </span> > <ul class="resource_list"> > <xsl:call-template name="renderMARCOnlineResourceField"> >@@ -1077,7 +1077,24 @@ > <xsl:with-param name="screen" select="detail"></xsl:with-param> > </xsl:call-template> > </ul> >- </span> >+ </div> >+ </xsl:if> >+ </xsl:if> >+ >+ <!-- 857 --> >+ <xsl:if test="marc:datafield[@tag=857]"> >+ <xsl:if test="marc:datafield[@tag=857]/marc:subfield[@code='u']"> >+ <div class="results_summary online_resources"> >+ <span class="label">Online archive resources: </span> >+ <ul class="resource_list"> >+ <xsl:call-template name="renderMARCOnlineResourceField"> >+ <xsl:with-param name="MARCOnlineResourceField">857</xsl:with-param> >+ <xsl:with-param name="OPACTrackClicks" select="$OPACTrackClicks"></xsl:with-param> >+ <xsl:with-param name="OPACURLOpenInNewWindow" select="$OPACURLOpenInNewWindow"></xsl:with-param> >+ <xsl:with-param name="screen" select="detail"></xsl:with-param> >+ </xsl:call-template> >+ </ul> >+ </div> > </xsl:if> > </xsl:if> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 4572e62be07..df44fa7af28 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1186,6 +1186,7 @@ > <xsl:with-param name="tag" select="$ContentWarningField" /> > </xsl:call-template> > >+ <!-- 856 --> > <xsl:if test="marc:datafield[@tag=856]"> > <xsl:if test="normalize-space(marc:datafield[@tag=856]/marc:subfield[@code='u'])"> > <div class="results_summary online_resources"> >@@ -1203,6 +1204,22 @@ > </xsl:if> > </xsl:if> > >+ <!-- 857 --> >+ <xsl:if test="marc:datafield[@tag=857]"> >+ <xsl:if test="marc:datafield[@tag=857]/marc:subfield[@code='u']"> >+ <div class="results_summary online_resources"> >+ <span class="label">Online archive resources: </span> >+ <ul class="resource_list"> >+ <xsl:call-template name="renderMARCOnlineResourceField"> >+ <xsl:with-param name="MARCOnlineResourceField">857</xsl:with-param> >+ <xsl:with-param name="OPACTrackClicks" select="$OPACTrackClicks"></xsl:with-param> >+ <xsl:with-param name="OPACURLOpenInNewWindow" select="$OPACURLOpenInNewWindow"></xsl:with-param> >+ </xsl:call-template> >+ </ul> >+ </div> >+ </xsl:if> >+ </xsl:if> >+ > <!-- Availability line --> > <div class="results_summary availability"> > >-- >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 38096
:
172466
|
172467
|
172468
|
172469
|
172470
|
172471
|
172532
|
172533
|
172534
|
172535
|
172536
|
192376
|
192377
|
192378
|
192379
|
192380
|
192381
|
192589
|
192590
|
192591
|
192592
|
192593
|
192594
|
192813
|
192814
|
192815
|
192816
|
192817
|
192818
|
192819
|
192906
|
192907
|
192908
|
192909
|
192910
|
192911
|
192919
|
192920
|
192921
|
192922
|
192966
|
193000