Bug 14862: Upgrade jQuery from 1.7 to 3.4.1 in OPAC
authorOwen Leonard <oleonard@myacpl.org>
Fri, 16 Aug 2019 13:51:25 +0000 (13:51 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Oct 2019 15:22:04 +0000 (16:22 +0100)
commit8b1fb387acee35ba64f61d59fd332a79d5759e06
tree10ddebb4f5387d36c30fd402b78c8a972843232a
parent22aaf8f1f9ade2a37a14ef409388b012224041da
Bug 14862: Upgrade jQuery from 1.7 to 3.4.1 in OPAC

This patch upgrades jQuery to 3.4.1, jQuery-UI to 1.12.1, and adds the
jQuery-migrate plugin to ensure backwards-compatibility with existing
jQuery plugins and code. An updated of jquery-ui-rtl.css has been
created by converting the new version of jquery-ui.css.

All jQuery assets are now include the version number in the file name
just as we now do in the staff client.

Besides updating file names in the templates, there was only one change
made: opac-results.tt had a typo which has been corrected.

To test, apply the patch and test as many different pages in the OPAC as
possible, including self-checkout and self checkin. Keep the browser
console open and watch for JavaScript errors. All JavaScript-driven
behavior should work correctly. For instance:

 - Tabs
 - Datepickers
 - Select all/none operations
 - Cart and lists popups
 - Search result highlighting

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20 files changed:
koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-3.4.1.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-3.4.1.min.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-migrate-3.1.0.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-migrate-3.1.0.min.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-1.12.1.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-1.12.1.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-1.12.1.min.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-1.12.1.min.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-rtl-1.12.1.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-rtl-1.12.1.min.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui-rtl.css [deleted file]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui.css [deleted file]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery-ui.js [deleted file]
koha-tmpl/opac-tmpl/bootstrap/lib/jquery/jquery.js [deleted file]