From 5e84b9d3abba4a3d0c19af281a2b1734b3248730 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 3 Oct 2011 08:59:18 -0400 Subject: [PATCH] Fix for Bug 6955, Toolbar on reading history broken Table sorter script causes error if there is no 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 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 Signed-off-by: Paul Poulain (cherry picked from commit 54226b60f3e31ba52d6be88eeebcaf534ada296f) Signed-off-by: Chris Nighswonger --- .../intranet-tmpl/prog/en/modules/members/readingrec.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 9296943df2..87e14a2c45 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -31,6 +31,7 @@
[% INCLUDE 'circ-toolbar.inc' %]

Circulation History

+[% IF ( loop_reading ) %]
@@ -94,7 +95,9 @@ [% END %] - +[% ELSE %] +
This patron has no circulation history.
+[% END %]
-- 2.39.5