Koha/koha-tmpl/opac-tmpl/prog/en/css
Owen Leonard ba470954fd Bug 9916 - Use DataTables in the OPAC
The OPAC still uses the old tablesorter plugin which isn't being
actively maintained. We use DataTables in the staff client and should in
the OPAC too. The plugin was added a while ago but never implemented on
any pages. This patch upgrades the plugin to the latest version and
places it in opac-tmpl/lib for cross-theme access. The patch implements
DataTables on all pages which previously used the tablesorter plugin.

The old tablesorter plugin is removed.

The customized DataTable configuration script, datatables.js, has been
trimmed-down from the staff client version in order to limit it to only
that functionality required in the OPAC.

Sorting based on date is done based on the data's enclosing <span> title
attribute as it is in the staff client:

<span title=" [% iso date %]">[% date | $KohaDates %]</span>

Slight modifications to Serials.pm and opac-search-history.pl have been
made to accommodate this change.

To test, view each page in the OPAC which uses JS-based table sorting:

- The bibliographic detail page
- The cart
- The search history page
- The suggestions page
- The tags page (logged in as a user who has entered tags)
- The "most popular" page (opac-topissues.pl)
- The logged in user summary page (opac-user.pl)
- The subscription "full history" page (opac-serial-issues.pl?selectview=full)
- The self-checkout main page (with existing checkouts)

Table sorting should work correctly on all pages in both the prog and
ccsr themes. Sorting should work for dates whatever your dateformat
system preference setting. Tables listing titles should exclude articles
("a," "an," and "the" in English) when sorting.

Also test the serial collection page in the staff client, which is
affected by the change to Serials.pm. Confirm that dates are displayed
and sorted correctly.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl, works as advertised!

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works really nicely on all pages.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-08-19 14:19:02 +00:00
..
babeltheque.css Bug 9068: Baebeltheque - add podcast 2013-03-22 22:08:03 -04:00
colors.css Beginning redesign of the OPAC. At this stage it's a move to make it more like the dev_week design, but this is only a starting point. This commit makes most OPAC page layouts very broken. 2007-11-13 21:35:45 -06:00
datatables.css Bug 6836: followup CSS work 2012-01-27 11:33:12 +01:00
hierarchy.css synch'ing librarian & opac hierarchy css 2007-12-18 04:47:11 -06:00
jquery.rating.css Bug 7500 [FOLLOW-UP][Star ratings] Use CSS Sprites for faster page loading 2012-09-13 17:52:05 +02:00
opac.css Bug 9916 - Use DataTables in the OPAC 2013-08-19 14:19:02 +00:00
persona-buttons.css Bug 9587 : Mozilla Persona login 2013-02-24 10:15:35 -05:00
print.css Bug 8095 - Printed lists in the OPAC not easy to read 2012-05-28 14:30:43 +02:00
right-to-left.css Bug 8061: Follow Up (Opac-Prog) - enhancement to D Ruth's patch 2013-04-07 12:51:54 -04:00
sco.css Bug 9916 - Use DataTables in the OPAC 2013-08-19 14:19:02 +00:00