From b143a3a500632c8659f31f9c76bcda30d90c7bdc Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 10 Jan 2020 14:10:23 +0000 Subject: [PATCH] Bug 24352: OpacItemLocation is buggy This patch modifies the OPAC's MARC21 search results XSLT so that the OpacItemLocation preference correctly controls what information displays. Previously the code for distinguishing between the 'location' and 'collection' settings was combined. To test, apply the patch and set the OPACXSLTResultsDisplay system preference to 'default.' Set the OpacItemLocation preference to 'call number only.' - On the OPAC search results page, each result with items should show information in this format: - "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 --- .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 132 +++++++++++++++------ 1 file changed, 97 insertions(+), 35 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 14f8b17144..f42359194d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1384,41 +1384,103 @@ ). - - - - Location(s): - - - - - - - - - - - . , - - - - - - - - - - - - - . , - - - - - - - + + + + + Location(s): + + + + + + + + [] + + + + . + + + , + + + + + + + + + + + + [] + + + + . + + + , + + + + + + + + + + + + + + Collection(s): + + + + + + + + [] + + + + . + + + , + + + + + + + + + + + + [] + + + + . + + + , + + + + + + + + + + -- 2.11.0