Bugzilla – Attachment 163876 Details for
Bug 36111
Online resource link should be based on the presence of 856$u (MARC21)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36111: removes display of fields 856 if not 856
Bug-36111-removes-display-of-fields-856-if-not-856.patch (text/plain), 4.84 KB, created by
Matthias Le Gac
on 2024-03-25 20:40:14 UTC
(
hide
)
Description:
Bug 36111: removes display of fields 856 if not 856
Filename:
MIME Type:
Creator:
Matthias Le Gac
Created:
2024-03-25 20:40:14 UTC
Size:
4.84 KB
patch
obsolete
>From 3bbdbf56fa82f49b45e69356894d111d67eb7240 Mon Sep 17 00:00:00 2001 >From: Matthias Le Gac <matthias.le-gac@inlibro.com> >Date: Mon, 25 Mar 2024 16:39:11 -0400 >Subject: [PATCH] Bug 36111: removes display of fields 856 if not 856 > >--- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 5 +---- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 3 --- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 5 +---- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 5 +---- > 4 files changed, 3 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index f90a9c37a6..306de4de64 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -922,11 +922,8 @@ > > <xsl:if test="marc:datafield[@tag=856]"> > <xsl:variable name="hasCodeU" select="marc:datafield[@tag=856]/marc:subfield[@code='u']"/> >- <xsl:variable name="hasCodeY" select="marc:datafield[@tag=856]/marc:subfield[@code='y']"/> >- <xsl:variable name="hasCode3" select="marc:datafield[@tag=856]/marc:subfield[@code='3']"/> >- <xsl:variable name="hasCodeZ" select="marc:datafield[@tag=856]/marc:subfield[@code='z']"/> > >- <xsl:if test="$hasCodeU or $hasCodeY or $hasCode3 or $hasCodeZ"> >+ <xsl:if test="$hasCodeU"> > <span class="results_summary online_resources"> > <span class="label">Online resources: </span> > <xsl:for-each select="marc:datafield[@tag=856]"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index 3869b0e9c2..399be176bd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -979,9 +979,6 @@ > > <xsl:if test="marc:datafield[@tag=856]"> > <xsl:variable name="hasCodeU" select="marc:datafield[@tag=856]/marc:subfield[@code='u']"/> >- <xsl:variable name="hasCodeY" select="marc:datafield[@tag=856]/marc:subfield[@code='y']"/> >- <xsl:variable name="hasCode3" select="marc:datafield[@tag=856]/marc:subfield[@code='3']"/> >- <xsl:variable name="hasCodeZ" select="marc:datafield[@tag=856]/marc:subfield[@code='z']"/> > > <xsl:if test="$hasCodeU or $hasCodeY or $hasCode3 or $hasCodeZ"> > <span class="results_summary online_resources"><span class="label">Online resources: </span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index c29f883572..48c9b402aa 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1039,11 +1039,8 @@ > <!-- Image processing code added here, takes precedence over text links including y3z text --> > <xsl:if test="marc:datafield[@tag=856]"> > <xsl:variable name="hasCodeU" select="marc:datafield[@tag=856]/marc:subfield[@code='u']"/> >- <xsl:variable name="hasCodeY" select="marc:datafield[@tag=856]/marc:subfield[@code='y']"/> >- <xsl:variable name="hasCode3" select="marc:datafield[@tag=856]/marc:subfield[@code='3']"/> >- <xsl:variable name="hasCodeZ" select="marc:datafield[@tag=856]/marc:subfield[@code='z']"/> > >- <xsl:if test="$hasCodeU or $hasCodeY or $hasCode3 or $hasCodeZ"> >+ <xsl:if test="$hasCodeU"> > <span class="results_summary online_resources"> > <span class="label">Online resources: </span> > <xsl:for-each select="marc:datafield[@tag=856]"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 532825938c..1eaf8442af 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1217,11 +1217,8 @@ > > <xsl:if test="marc:datafield[@tag=856]"> > <xsl:variable name="hasCodeU" select="marc:datafield[@tag=856]/marc:subfield[@code='u']"/> >- <xsl:variable name="hasCodeY" select="marc:datafield[@tag=856]/marc:subfield[@code='y']"/> >- <xsl:variable name="hasCode3" select="marc:datafield[@tag=856]/marc:subfield[@code='3']"/> >- <xsl:variable name="hasCodeZ" select="marc:datafield[@tag=856]/marc:subfield[@code='z']"/> > >- <xsl:if test="$hasCodeU or $hasCodeY or $hasCode3 or $hasCodeZ"> >+ <xsl:if test="$hasCodeU"> > <div class="results_summary online_resources"> > <span class="label">Online resources: </span> > <xsl:for-each select="marc:datafield[@tag=856]"> >-- >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 36111
:
162322
|
162405
|
162406
|
163876
|
164029
|
164151
|
164275
|
164276
|
164429
|
164430
|
164476
|
165236
|
165335
|
165346
|
165347
|
165355
|
165356
|
165688
|
165709
|
165710
|
165711
|
170437
|
170471
|
170474
|
170576