Bugzilla – Attachment 159514 Details for
Bug 35410
856 label is inconsistent between detail page and search results in XSLTs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35410: Use "Online resources" label in search results
Bug-35410-Use-Online-resources-label-in-search-res.patch (text/plain), 2.76 KB, created by
David Nind
on 2023-12-04 04:18:26 UTC
(
hide
)
Description:
Bug 35410: Use "Online resources" label in search results
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-12-04 04:18:26 UTC
Size:
2.76 KB
patch
obsolete
>From 6fc8663b2b5e2f10a5f5eb0b9897b05f2244b467 Mon Sep 17 00:00:00 2001 >From: David Nind <david@davidnind.com> >Date: Mon, 4 Dec 2023 03:23:03 +0000 >Subject: [PATCH] Bug 35410: Use "Online resources" label in search results > >Update the staff interface and OPAC XSLT files to use >"Online resources" as the label in search results, instead of >"Online access". This matches the label used in the detail page >for a record. > >Test plan: >1. Search for perl in the staff interface and OPAC (or add to > an existing record a URL to 856$u with 4 for the first > indicator). >2. For any search result that displays the "Online access" label, > view the detail page for the record. >3. Note that the detail page uses the label "Online resources". >4. Apply the patch and restart_all. >5. Repeat steps 1 and 2. >6. Note that the search result pages now show "Online resources" for > the label, matching the detail page. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl | 4 ++-- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index ac1a7c54aa..16a423e421 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -978,8 +978,8 @@ > </xsl:call-template> > > <xsl:if test="marc:datafield[@tag=856]"> >- <span class="results_summary online_access"> >- <span class="label">Online access: </span> >+ <span class="results_summary online_resources"> >+ <span class="label">Online resources: </span> > <xsl:for-each select="marc:datafield[@tag=856]"> > <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> > <a> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 57d8547cc9..c2ebe9c7d9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1217,7 +1217,7 @@ > > <xsl:if test="marc:datafield[@tag=856]"> > <div class="results_summary online_resources"> >- <span class="label">Online access: </span> >+ <span class="label">Online resources: </span> > <ul class="resource_list"> > <xsl:for-each select="marc:datafield[@tag=856]"> > <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> >-- >2.30.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 35410
:
159513
|
159514
|
159562
|
159565