Koha/circ
Owen Leonard ec9fc2fce4 Bug 9887 [Revised] Use DataTables on circulation page
The circulation page, when the  UseTablesortForCirc preference is
enabled, uses the old tablesorter plugin. It should use DataTables
instead.

This patch removes references to the tablesorter plugin and makes these
changes to enable use of DataTables:

- Pass two new unformatted date variables to the template from
  circulation.pl so that sorting can be performed on this data.
- Add DataTables configurations for the table of checkouts and the
  table of relatives' checkouts.
- Add a new plugin to the main DataTables configuration script to allow
  sorting on data embedded in a <span>'s 'title' attribute.
- Add <span>s to each table with a title attribute containing the
  unformatted date data which DataTables needs to perform correct
  sorting.  This eliminates the need for a special sorting algorithm to
  accomodate various date and datetime formatting options.
- Set a template variable for checking whether circ exports are enabled.
  This reduces repetition. DataTables configuration changes based on how
  many columns are present.

To test, load the circulation page for patrons who match various
conditions:

- Having only checkouts from today
- Having checkouts from today and previous days
- Having checkouts only from previous days
- Having relatives who have checkouts (from today, from previous days,
  from both)

Test these situations with UseTablesortForCirc enabled and disabled.
Test these situations with circ exports enabled or disabled (with
ExportRemoveFields filled or empty, for instance).

Sorting should work correctly on all columns with the dateformat
preference set to any option.

All other circulation functions should work normally.

Revision adds missing include for table footer when there are previous
checkouts and removes &nbsp; from empty table header cells which were
messing up auto-detection of numeric data. The global CSS for table
borders has been tightened up to improve handling of alternating row
colors in DataTables-sorted tables.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Note: Don't forget it's the checkout tab and to turn on the
preference to allow sorting there.
Also, while checkouts sorts dates correctly, sorting on the
details tabs was not always correct in my tests.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-04-15 09:10:09 -04:00
..
add_message.pl Fix FSF address in directory circ/ 2010-03-16 20:17:50 -04:00
bookcount.pl Bug 9140: Followup removes the useless variable $message 2012-12-22 16:02:55 -05:00
branchoverdues.pl Bug 8077 - overdues with fines won't run 2012-05-21 18:29:26 +02:00
branchtransfers.pl Fix for Bug 7123 - barcode should be one word 2011-12-13 17:48:02 +01:00
circulation-home.pl Bug 8781: hiding of transfer page when it's useless 2012-12-02 09:27:20 -05:00
circulation.pl Bug 9887 [Revised] Use DataTables on circulation page 2013-04-15 09:10:09 -04:00
del_message.pl Fix FSF address in directory circ/ 2010-03-16 20:17:50 -04:00
hold-transfer-slip.pl bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
overdue.pl Bug 9604: filter overdues with homebranch and holdingbranch 2013-03-22 22:05:38 -04:00
pendingreserves.pl Bug 9320 Pending reserves report should not show waiting items 2013-02-08 09:02:53 -05:00
reserveratios.pl Bug 9108: Followup: send the dateformat value from C4::Auth 2013-01-17 21:59:30 -05:00
returns.pl Bug 7189 - preference to control if returning lost items gives refund 2012-11-30 08:01:41 -05:00
selectbranchprinter.pl Bug 6841 - A member with cataloging permissions cannot change branches (when independent branches is set on) 2011-09-14 21:44:03 +12:00
stats.pl Bug 2505 - Add commented use warnings where missing in the circ/ directory 2010-04-21 20:20:03 +12:00
transfer-slip.pl bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
transferstoreceive.pl Bug 9108: Followup: send the dateformat value from C4::Auth 2013-01-17 21:59:30 -05:00
view_holdsqueue.pl Bug 9591 : Set Library changes after viewing Holds Queue >> reserves item 2013-04-15 08:36:07 -04:00
waitingreserves.pl Bug 9108: Followup: send the dateformat value from C4::Auth 2013-01-17 21:59:30 -05:00
ypattrodue-attr-search-authvalue.pl Bug 7747 - Replace YUI autocomplete with jQueryUI 2012-05-31 18:07:55 +02:00
ysearch.pl Bug 7747 - Replace YUI autocomplete with jQueryUI 2012-05-31 18:07:55 +02:00