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.
---
.../prog/en/modules/members/readingrec.tt | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
index c61006b..ac5ee68 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
@@ -30,6 +30,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">
@@ -93,7 +94,9 @@
</tr>
[% END %]
</table>
-
+[% ELSE %]
+<div class="dialog message">This patron has no circulation history.</div>
+[% END %]
</div>
</div>
--
1.7.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/