Bugzilla – Attachment 165710 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: fixed extra space
Bug-36111-fixed-extra-space.patch (text/plain), 5.19 KB, created by
David Nind
on 2024-04-28 19:17:42 UTC
(
hide
)
Description:
Bug 36111: fixed extra space
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-04-28 19:17:42 UTC
Size:
5.19 KB
patch
obsolete
>From 741e182b2c2d974a7f2adb924fcdf696e0a44fe0 Mon Sep 17 00:00:00 2001 >From: Matthias Le Gac <matthias.le-gac@inlibro.com> >Date: Mon, 22 Apr 2024 13:10:50 -0400 >Subject: [PATCH] Bug 36111: fixed extra space > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 4 ++-- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl | 4 ++-- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 4 ++-- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 4 ++-- > 4 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 85272e7b49..9b60144d9f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -921,10 +921,9 @@ > </xsl:if> > > <xsl:if test="marc:datafield[@tag=856]"> >- <span class="results_summary online_resources"> > <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> >+ <span class="results_summary online_resources"> > <span class="label">Online resources: </span> >- </xsl:if> > <xsl:for-each select="marc:datafield[@tag=856]"> > <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> > <a> >@@ -966,6 +965,7 @@ > </xsl:choose> > </xsl:for-each> > </span> >+ </xsl:if> > </xsl:if> > > <!-- 505 - Formatted contents note --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index b3820bd0c6..fa8878f915 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -978,10 +978,9 @@ > </xsl:call-template> > > <xsl:if test="marc:datafield[@tag=856]"> >+ <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> > <span class="results_summary online_resources"> >- <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> > <span class="label">Online resources: </span> >- </xsl:if> > <xsl:for-each select="marc:datafield[@tag=856]"> > <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> > <a> >@@ -1023,6 +1022,7 @@ > </xsl:choose> > </xsl:for-each> > </span> >+ </xsl:if> > </xsl:if> > > <!-- Content Warning --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 5be7369e35..64d224ed9c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1038,10 +1038,9 @@ > > <!-- Image processing code added here, takes precedence over text links including y3z text --> > <xsl:if test="marc:datafield[@tag=856]"> >+ <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> > <span class="results_summary online_resources"> >- <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> > <span class="label">Online resources: </span> >- </xsl:if> > <xsl:for-each select="marc:datafield[@tag=856]"> > <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> > <a property="url"> >@@ -1096,6 +1095,7 @@ > </xsl:choose> > </xsl:for-each> > </span> >+ </xsl:if> > </xsl:if> > > <!-- 787 Other Relationship Entry --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 2bf0aeb6a4..4e738c109a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1216,10 +1216,9 @@ > </xsl:if> > > <xsl:if test="marc:datafield[@tag=856]"> >+ <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> > <div class="results_summary online_resources"> >- <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']"> > <span class="label">Online resources: </span> >- </xsl:if> > <xsl:for-each select="marc:datafield[@tag=856]"> > <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> > <xsl:if test="$OPACURLOpenInNewWindow='0'"> >@@ -1312,6 +1311,7 @@ > </xsl:for-each> > </div> > </xsl:if> >+ </xsl:if> > > <!-- Availability line --> > <div class="results_summary availability"> >-- >2.39.2
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