Bugzilla – Attachment 105948 Details for
Bug 24352
Wrong labels displaying in result list with OpacItemLocation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24352: Correct location and collection labels in OPAC search results
Bug-24352-Correct-location-and-collection-labels-i.patch (text/plain), 2.58 KB, created by
David Nind
on 2020-06-17 11:50:31 UTC
(
hide
)
Description:
Bug 24352: Correct location and collection labels in OPAC search results
Filename:
MIME Type:
Creator:
David Nind
Created:
2020-06-17 11:50:31 UTC
Size:
2.58 KB
patch
obsolete
>From 87a101de157366c4a8f89f9c392f5309c094d42b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 16 Jun 2020 19:48:48 +0000 >Subject: [PATCH] Bug 24352: Correct location and collection labels in OPAC > search results > >This patch modifies the OPAC's MARC21 search results XSLT so that >OPAC search result information is correctly labeled >based on the OpacItemLocation preference. > >Previously, search results showed the label "Location(s)" whether the >setting was "collection code" or "location." > >To test, apply the patch and set the OPACXSLTResultsDisplay system >preference to 'default.' > >On the OPAC search results page, each result with items should show >information in this format: > > With the OpacItemLocation preference set to 'call number only,' > - "Availability: Items available for loan: {library} [Call number: > {call number} ] > > With the OpacItemLocation preference set to 'collection code,' > - "Availability: Items available for loan: {library} > Collection(s): {collection description} [{ call number }]" > > With the OpacItemLocation preference set to 'location,' > - "Availability: Items available for loan: {library} > Location(s): {shelving location} [{ call number }]" > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 339f058b70..c3a5d7c592 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1429,7 +1429,16 @@ > <xsl:choose> > <xsl:when test="($OPACItemLocation='location' or $OPACItemLocation='ccode') and (count(key('item-by-status', 'available'))!=0 or count(key('item-by-status', 'reference'))!=0)"> > <span class="results_summary location"> >- <span class="label">Location(s): </span> >+ >+ <xsl:choose> >+ <xsl:when test="$OPACItemLocation='location'"> >+ <span class="label">Location(s): </span> >+ </xsl:when> >+ <xsl:when test="$OPACItemLocation='ccode'"> >+ <span class="label">Collection(s): </span> >+ </xsl:when> >+ </xsl:choose> >+ > <xsl:choose> > <xsl:when test="count(key('item-by-status', 'available'))>0"> > <span class="available"> >-- >2.11.0
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 24352
:
97221
|
97225
|
97257
|
105931
|
105948
|
106171