[Koha-patches] [PATCH] Fix for Bug 6955, Toolbar on reading history broken

Owen Leonard oleonard at myacpl.org
Mon Oct 3 15:32:50 CEST 2011


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



More information about the Koha-patches mailing list