Bug 7337 - "Debarred Until" display in the opac tells patrons they are debarred until...
authorOwen Leonard <oleonard@myacpl.org>
Thu, 8 Dec 2011 15:22:07 +0000 (10:22 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 6 Jan 2012 14:08:30 +0000 (15:08 +0100)
commit32e1669731e437ac0e6efc8fee661dea2e52f1f7
treed27fb325e6efba055aadf7a4cd57cae52ed23d54
parent45cb5959ca87dfb6895cd1936c382201e730ed31
Bug 7337 - "Debarred Until" display in the opac tells patrons they are debarred until the year 9999

This patch copies the debarred handling method from circulation.pl for
use on opac-user.pl so that debarred dates and comments can be handled
properly.

I have slightly reworded the message in the OPAC and on circulation.pl
to make the display of the debarred comment a little clearer.

Revision adds missing handling of debarred status with regard to
renewal operations. Renew links and buttons were not being hidden
from debarred users.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Renewal buttons are gone, message looks good.

liz@koha-deb:~/kohaclone$ prove xt
xt/permissions.t .. ok
xt/tt_valid.t ..... ok
All tests successful.
Files=2, Tests=27,  9 wallclock secs ( 0.05 usr  0.01 sys +  8.28 cusr  0.08 csys =  8.42 CPU)
Result: PASS

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
opac/opac-user.pl