From a03c6ce58753c66d58f4173414e3aff2e294ddb3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 16 Feb 2013 19:11:52 -0500 Subject: [PATCH] Bug 9650 - Show message if there are no notices When there are no notices for the selected library, the interface displays a table header with an empty table. This patch adds a message which appears when there are no notices for the selected library, or if no library selected and there are no notices at all. To test, visit the notices and slips page and select a library for which there are no notices. A message should be displayed, "There are no notices for this library." Signed-off-by: Bernardo Gonzalez Kriegel Comment: Work as described. No errors. Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- .../intranet-tmpl/prog/en/modules/tools/letter.tt | 11 +++++++++++ tools/letter.pl | 1 + 2 files changed, 12 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index e095bdc8c9..c6150bb7fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -166,6 +166,8 @@ $(document).ready(function() { [% END %] [% END %] + +[% IF ( letter ) %] @@ -218,6 +220,15 @@ $(document).ready(function() { [% END %]
Library
+[% ELSE %] +
+ [% IF ( branchcode ) %] +

There are no notices for this library.

+ [% ELSE %] +

There are no notices.

+ [% END %] +
+[% END %] [% END %] diff --git a/tools/letter.pl b/tools/letter.pl index 317ea837b2..a462aba897 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -115,6 +115,7 @@ $template->param( independant_branch => $my_branch, script_name => $script_name, searchfield => $searchfield, + branchcode => $branchcode, action => $script_name ); -- 2.39.5