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 <bgkriegel@gmail.com>

Comment: Work as described. No errors.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Owen Leonard 2013-02-16 19:11:52 -05:00 committed by Jared Camins-Esakov
parent 45a7d554ea
commit a03c6ce587
2 changed files with 12 additions and 0 deletions

View file

@ -166,6 +166,8 @@ $(document).ready(function() {
</select>
[% END %]
[% END %]
[% IF ( letter ) %]
<table id="lettert">
<thead><tr>
<th>Library</th>
@ -218,6 +220,15 @@ $(document).ready(function() {
[% END %]
</tbody>
</table>
[% ELSE %]
<div class="dialog message">
[% IF ( branchcode ) %]
<p>There are no notices for this library.</p>
[% ELSE %]
<p>There are no notices.</p>
[% END %]
</div>
[% END %]
[% END %]

View file

@ -115,6 +115,7 @@ $template->param(
independant_branch => $my_branch,
script_name => $script_name,
searchfield => $searchfield,
branchcode => $branchcode,
action => $script_name
);