From 057478b424d84cba22048e539398f77d52deb4e8 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 --- koha-tmpl/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 e095bdc..c6150bb 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 317ea83..a462aba 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 ); -- 1.7.10.4