Bug 32114: Add missing html_helpers.inc
authorOwen Leonard <oleonard@myacpl.org>
Sat, 5 Nov 2022 16:02:55 +0000 (16:02 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 21 Dec 2022 16:53:55 +0000 (16:53 +0000)
This patch makes a minor modification to the OPAC
search results RSS template so that an error isn't
triggered. The html_helpers include was missing.

To test, apply the patch and perform a catalog
search in the OPAC which will return results.

At the end of the "Your search results" heading
you should see an orange RSS icon. Clicking on it
should take you to an RSS feed instead of an
error page.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2621f28376b0c82205f3faf5e06c1f788e6c9b2a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt

index 798c724..1d45fb5 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='utf-8' ?>
 [%- USE raw -%]
 [%- USE Koha -%]
-
+[%- PROCESS 'html_helpers.inc' -%]
 [% IF ( opensearchdescription ) %]
     <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
         <ShortName>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Library catalog[% END %]</ShortName>