Bug 5184 [REVISED] Upgrade jQuery to the latest version (OPAC)

Upgrade jQuery in the OPAC.

To test: Try any JavaScript-dependent interaction
you can think of in the OPAC and watch for errors.

Revision updates the one syntax I've found so far in testing
which requires an update. Where we used to do this to
uncheck a checkbox:

$(foo).attr("checked","");

We should now use:

$(foo).removeAttr("checked");

As far as I can tell the old way will not generate an error
but neither will it work.

Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu>
Bug 5184 - Upgrade jQuery to the latest version (staff client)

Upgrade jQuery in the staff client. Besides the change
to the jQuery file syntax has been changed wherever this
syntax was written:

$(foo).attr("checked","");

The new correct way to un-check a checkbox:

$(foo).removeAttr("checked");

I also removed some JavaScript altogether from
branch-transfer-limits.tt which used the old syntax but
which wasn't used on the page at all anymore.

Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu>
Upgrading DataTables library to 1.9.1

Previous versions of the DataTables library did not support listeners
for custom DataTabels events. These listeners are necessary to the
"add quote" feature of the QOD editor.
Beginning work on Quote-of-the-day (QOD) Feature for OPAC

This feature will add the option of displaying a select quote
for the day on the OPAC homepage. It will include the addition
of a QOD editor in the tools section of the staff interface
which will allow the addition, editing, and deletion of quotes.
A single system preference will enable/disable the display of
the QOD on the OPAC homepage. A new granular permission will
also be added to conrol user access to the QOD editor tool.

Possible extentions to this would be code to allow alternate
quote selection algorithms to be added to vary how the currently
displayed quote is selected from the table of quotes.
Adding quotes table to kohastructure.sql and updatedatabase.pl

Note: This patch is intended for a MySQL based installation only.
That means that it includes backticks because that is what is required
at this point in history to install Koha correctly on a MySQL based
installation.

Feel free to port this over to the Pg stuff in the data/Pg directory.
Adding edit_quotes user permissions

Squash with other db related patches in this series
Adding quotes editor pages to tools
Adding QOD editor link to tools homepage
Integration of DataTables into QOD Editor

This includes only the table generation; jEditable to be added
next to allow quote adding and editing directly in the table.
Updating datatables.css to reflect changes from v1.8.1 to v1.9.1
Adding jEditable minified version

jEditable is necessary to create DataTables with editable fields
Impleminting jEditable into the quote editor
Adding delete and add option to editor
Adding system preference to control display of QOD on OPAC main page
Adding sample quote data

These quotes are taken from various US presidents. I'm not sure these
are applicable to the rest of the world, so I'm leaving it to translators
and others to add sample quote data for other languages.
Fixing OPAC display so the QOD div does not show if no quote is returned

Also removing useless code from tools/quotes.pl
Adding spans around QOD foo in opac-main.tt

Also fixing quote selection logic to accomodate the possibility of
a single quote in the db a litte better.
Changing timestamp column header to a more user-friendly 'Last Displayed'
Adding DateTime::Format::MySQL as a core dependency
Fixing bug in quote selection logic

This bug caused a situation where when the table had only a single
quote with an id greater than 1 in it, no quote would be selected.