From e48e72920b0b6c6838fe0645ea31a4c6b7a0982f Mon Sep 17 00:00:00 2001 From: Aleisha Date: Wed, 2 Mar 2016 00:36:49 +0000 Subject: [PATCH] Bug 13238: Improve heading on vendor search when searching for all vendors To test: 1) Go to Acquisitions and do an empty vendor search 2) Should now read "Vendor search: X results found" 3) Enter a search term and search for vendor 4) Should now read "Vendor search: Y results found for 'search term'" Sponsored-by: Catalyst IT NOTE: two nested if/else/end's could make it result/results, as suggested in comment #3. However, this meets my understanding of the problem as defined in comment #0. Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Brendan A Gallagher --- .../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 edb26d9820..20e505bdb2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt @@ -52,7 +52,11 @@ $(document).ready(function() { [% INCLUDE 'acquisitions-toolbar.inc' %] [% UNLESS ( count == 1 ) %] -

You searched on vendor [% supplier %], [% count %] results found

+ [% IF ( supplier.length < 1 ) %] +

Vendor search: [% count %] results found

+ [% ELSE %] +

Vendor search: [% count %] results found for '[% supplier %]'

+ [% END %] [% END %] [% IF ( loop_suppliers.size ) %] [% UNLESS (count == 1) %] -- 2.39.5