Bug 7444: Update circ/circulation.pl to use KohaDates TT Plugin
authorIan Walls <koha.sekjal@gmail.com>
Fri, 9 Mar 2012 18:55:38 +0000 (13:55 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 11 Jun 2012 16:02:26 +0000 (18:02 +0200)
commit186cfa5cb00a1c0ee7f0e4512a5f319299bb6412
tree4e6b5981c4f752beb1bed7ae48841c1e2082380d
parent44c0971bbf8d5892f46365be59d87e3cff8d3b30
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>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt