From c6d3b9bbe212725e660c563ecf8198fb201827d4 Mon Sep 17 00:00:00 2001
From: Katrin Fischer
Date: Fri, 17 May 2013 21:12:05 +0200
Subject: [PATCH] Bug 9824: Make it possible to apply/cancel switch
Using another existing string 'Apply filter' we are now
able to cancel the filter... and apply it... and cancel it
again... and so on.
Signed-off-by: Owen Leonard
Signed-off-by: Jared Camins-Esakov
(cherry picked from commit 7acdcb7e2aedf2ff202c009ce053de6dff54e840)
Signed-off-by: Jared Camins-Esakov
(cherry picked from commit 6bfb91f9df69c887643d0f1ae925595c365da10e)
Signed-off-by: Bernardo Gonzalez Kriegel
(cherry picked from commit 6bfb91f9df69c887643d0f1ae925595c365da10e)
Signed-off-by: Chris Hall
(cherry picked from commit b3fe1c1b93bd8f825dfe59659fd83bfb23f904cf)
---
acqui/booksellers.pl | 1 +
.../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl
index a20935edee..ea75dbbda6 100755
--- a/acqui/booksellers.pl
+++ b/acqui/booksellers.pl
@@ -151,5 +151,6 @@ $template->param(
count => $supplier_count,
dateformat => C4::Context->preference('dateformat'),
);
+$template->{VARS}->{'allbaskets'} = $allbaskets;
output_html_with_http_headers $query, $cookie, $template->output;
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
index 679624bb80..d256c4a785 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
@@ -62,7 +62,13 @@ $(document).ready(function() {
[% END %]
- Cancel filter
+
+ [% IF ( allbaskets ) %]
+ Apply filter
+ [% ELSE %]
+ Cancel filter
+ [% END %]
+
[% FOREACH supplier IN loop_suppliers %]
--
2.39.5