Fix for Bug 6955, Toolbar on reading history broken

Table sorter script causes error if there is no <tbody> to sort.
JS errors cause the YUI toolbar js to abort, causing the problem
observed. When there are no results the whole table should be
omitted and a message displayed in its place.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
To test:
- check toolbar on top of patron reading history with no entries
- check toolbar on top of patron reading history after a few checkouts

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 54226b60f3)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Owen Leonard 2011-10-03 08:59:18 -04:00 committed by Chris Nighswonger
parent d866a10f09
commit 5e84b9d3ab
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@
<div class="yui-b">
[% INCLUDE 'circ-toolbar.inc' %]
<h1>Circulation History</h1>
[% IF ( loop_reading ) %]
<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
<span id="pagertable_readingrec" class="pager">
@ -94,7 +95,9 @@
</tr>
[% END %]
</table>
[% ELSE %]
<div class="dialog message">This patron has no circulation history.</div>
[% END %]
</div>
</div>