@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 11 +++++++++++ tools/letter.pl | 1 + 2 files changed, 12 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ a/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 %] --- a/tools/letter.pl +++ a/tools/letter.pl @@ -115,6 +115,7 @@ $template->param( independant_branch => $my_branch, script_name => $script_name, searchfield => $searchfield, + branchcode => $branchcode, action => $script_name ); --