Owen Leonard
8b1fb387ac
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>
62 lines
2.9 KiB
HTML
62 lines
2.9 KiB
HTML
[% USE raw %]
|
|
[% USE Koha %]
|
|
[%- USE KohaPlugins -%]
|
|
[% USE Asset %]
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="shortcut icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
|
|
[% IF ( bidi ) %]
|
|
[% Asset.css("lib/bootstrap/css/bootstrap-rtl.min.css") | $raw %]
|
|
[% Asset.css("lib/jquery/jquery-ui-rtl-1.12.1.min.css") | $raw %]
|
|
[% Asset.css("css/right-to-left.css") | $raw %]
|
|
[% ELSE %]
|
|
[% Asset.css("lib/bootstrap/css/bootstrap.min.css") | $raw %]
|
|
[% Asset.css("lib/jquery/jquery-ui-1.12.1.min.css") | $raw %]
|
|
[% END %]
|
|
[% IF ( Koha.Preference('opaclayoutstylesheet') ) %]
|
|
[% SET opaclayoutstylesheet = Koha.Preference('opaclayoutstylesheet') %]
|
|
[% ELSE %]
|
|
[% SET opaclayoutstylesheet = 'opac.css' %]
|
|
[% END %]
|
|
[% IF (opaclayoutstylesheet.match('^https?:|^\/')) %]
|
|
<link rel="stylesheet" type="text/css" href="[% opaclayoutstylesheet | url %]" />
|
|
[% ELSE %]
|
|
[% Asset.css("css/" _ opaclayoutstylesheet) | $raw %]
|
|
[% END %]
|
|
[% IF ( Koha.Preference('OpacAdditionalStylesheet') ) %]
|
|
[% SET OpacAdditionalStylesheet = Koha.Preference('OpacAdditionalStylesheet') %]
|
|
[% IF (OpacAdditionalStylesheet.match('^https?:|^\/')) %]
|
|
<link rel="stylesheet" type="text/css" href="[% OpacAdditionalStylesheet | url %]" />
|
|
[% ELSE %]
|
|
<link rel="stylesheet" type="text/css" href="[% interface | url %]/[% theme | url %]/css/[% OpacAdditionalStylesheet | url %]" />
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( opac_css_override ) %]
|
|
<link rel="stylesheet" type="text/css" href="[% interface | url %]/[% theme | url %]/css/[% opac_css_override | url %]" />
|
|
[% END %]
|
|
[% Asset.css("css/print.css", { media = "print" }) | $raw %]
|
|
[% IF ( Koha.Preference('OPACUserCSS') ) %]
|
|
<style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>
|
|
[% END %]
|
|
[% IF SCO_login %]
|
|
[% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
|
|
[% IF SCOUserCSS %]
|
|
<style>[% SCOUserCSS | $raw %]</style>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( Koha.Preference('OPACBaseURL') ) %]
|
|
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/unapi" />
|
|
[% END %]
|
|
[% PROCESS cssinclude %]
|
|
<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
|
|
<!--[if lt IE 9]>
|
|
<script src="[% interface | html %]/[% theme | html %]/lib/respond.min.js"></script>
|
|
<![endif]-->
|
|
<script>
|
|
function _(s) { return s } // dummy function for gettext
|
|
</script>
|
|
[% Asset.js("lib/modernizr.min.js") | $raw %]
|
|
[% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %]
|
|
[% PROCESS 'html_helpers.inc' %]
|
|
[% KohaPlugins.get_plugins_opac_head | $raw %]
|