From 4fcfaa9c2044ae179fa999114fa65c102bf72a9a Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 }]" --- .../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 @@ - Location(s): + + + + Location(s): + + + Collection(s): + + + -- 2.11.0