From 7acb5394e1f62728c90a1d18e988c23a3e2862d2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 4 Apr 2019 18:27:28 +0000 Subject: [PATCH] Bug 13629: SingleBranchMode removes both library and availability search from advanced search This patch modifies the OPAC advanced search form so that it is possible to limit searches to available items even if there is only one library. To test, apply the patch and go to the advanced search page in the OPAC. - With only one library configured: There should be a section labeled "Availability" with just the "only available" checkbox. - With multiple libraries: The section should be labeled "Location and availability" and should have the library dropdown and the availability checkbox. Signed-off-by: Pierre-Marc Thibault Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../bootstrap/en/modules/opac-advsearch.tt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index 1d7aada994..bc395d95a4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -209,7 +209,20 @@ [%# Following on one line for translatability %] [% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('location').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('location').size > 0 and expanded_options ) ) %] - [% UNLESS ( singleBranchMode ) %] + [% IF ( singleBranchMode ) %] +
+ +
+
+ Availability: +
+ +
+
+
+ +
+ [% ELSE %]
@@ -243,7 +256,7 @@
- [% END # / UNLESS singleBranchMode %] + [% END # / IF singleBranchMode %] [% END %] [%# Following on one line for translatability %] -- 2.39.5