From 7d550c59814a0131ba0d559a84a98a5f2d6dbd84 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 Signed-off-by: Chris Cormack --- .../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 c156e01835..b574dbec08 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -162,6 +162,8 @@ $(document).ready(function() { [% END %] [% END %] + +[% IF ( letter ) %] @@ -214,6 +216,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