Bug 7444: Update circ/circulation.pl to use KohaDates TT Plugin
commit958b65d0045949b406b16a370ad06a239184828d
authorIan Walls <koha.sekjal@gmail.com>
Fri, 9 Mar 2012 18:55:38 +0000 (9 13:55 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 14 Jun 2012 07:24:22 +0000 (14 19:24 +1200)
treeef0a6a42f4da22e96bb09741bd1d16c1317d1541
parentce66409fae4dc20f496b84e0151867f9063a061d
Bug 7444: Update circ/circulation.pl to use KohaDates TT Plugin

Removes all date formatting done in circ/circulation, and sets any/all date
outputs to iso format.  The formatting of dates is now handled in the template
using the KohaDates plugin.

This allows use to remove a dependency on C4/Dates.pm from the script.

This patch also removes the usage of C4/Overdues/CheckBorrowerDebarred.  Since
borrowers.debarred is returned by GetMemberDetails, it doesn't make sense to
include another module to run another MySQL query just to fetch the date again.

To Test:

1. View the checkout page for a patron with materials checked out today and in days past, as
well as items on reserve.
2. View a patron who is nearing their expiry date
3. Renew a patron
4. Renew a material from the checkout page using the renewal date selector
5. Attempt to checkout a book to a patron that is on hold for someone else
6. Attempt to checkout a book that is currently checked out
7. View a debarred patron

In all cases, any dates displayed should be in syspref format

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt