Bug 12729 - Overdue items won't show as overdue in red in circulation
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 4 Sep 2014 13:16:57 +0000 (15:16 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 16 Sep 2014 18:17:53 +0000 (15:17 -0300)
commitb8fae8489f013d55fac6c660e80bbd7aed31deff
tree7d95970c3cad261b9b2ec4f6010731f0872d7638
parent09c4417216c32d6af74da193933e95374b0ee7df
Bug 12729 - Overdue items won't show as overdue in red in circulation

It seems that Firefox date parser doesn't like our dates which are
formatted in ISO format like "2014-08-06 00:00:00". This results in
missing red color in overdue dates.

So intead of munching different date formats and JavaScript (and having
to support different browers) this patch moves check for overdue dates
back to mysql and just transfers boolean value to JavaScript so it can
show correct class for date_due.

Test scenario:
1. find borrower with overdue checkouts
2. verify that all dates are black (and are in ISO format)
3. apply this patch
4. reload page and verify that overdue dates turned red

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested with different due dates (hourly and not) and different date formats.
Passes tests and QA script.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
svc/checkouts