Owen Leonard
6596f76817
This patch refactors the code around JavaScript-driven responsive behavior in the OPAC. The use of Modernizr dropped and the dependency removed. This patch also adds a missing listing for Enquire.js licensing on the "About" page. To test, apply the patch and perform a catalog search in the OPAC. - Narrow your browser window until its width falls below 609 pixels (Using your browser's Responsive Design Mode is helpful for this, e.g. https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode) - The window should automatically scroll to the "main content" area, in this case the section headed by "Your search returned..." - Change your browser window's width until it falls below 768 pixels. - Scroll to the bottom of the search results where you should find the "Refine your search" facets box collapsed. - As you increase your browser width above 768 pixels the facets box should expand. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
75 lines
3.4 KiB
HTML
75 lines
3.4 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" />
|
|
[% IF ( Koha.Preference('OpacMetaDescription') ) %]
|
|
<meta name="description" content="[% Koha.Preference('OpacMetaDescription') | html %]" />
|
|
[% END %]
|
|
<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/jquery/jquery-ui-rtl-1.12.1.min.css") | $raw %]
|
|
[% ELSE %]
|
|
[% Asset.css("lib/jquery/jquery-ui-1.12.1.min.css") | $raw %]
|
|
[% END %]
|
|
[% IF ( Koha.Preference('opaclayoutstylesheet') && Koha.Preference('opaclayoutstylesheet') != "opac.css" ) %]
|
|
[% SET opaclayoutstylesheet = Koha.Preference('opaclayoutstylesheet') %]
|
|
[% ELSE %]
|
|
[% IF ( bidi ) %]
|
|
[% SET opaclayoutstylesheet = 'opac-rtl.css' %]
|
|
[% ELSE %]
|
|
[% SET opaclayoutstylesheet = 'opac.css' %]
|
|
[% END %]
|
|
[% 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 %]
|
|
[% IF ( bidi ) %]
|
|
[% Asset.css("css/print-rtl.css", { media = "print" }) | $raw %]
|
|
[% ELSE %]
|
|
[% Asset.css("css/print.css", { media = "print" }) | $raw %]
|
|
[% END %]
|
|
[% 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="search" type="application/opensearchdescription+xml" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-search.pl?format=opensearchdescription" title="Search [% LibraryNameTitle | html %]">
|
|
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/unapi" />
|
|
[% END %]
|
|
[% FILTER collapse %]
|
|
[% PROCESS cssinclude %]
|
|
[% END %]
|
|
<script>
|
|
var Koha = {};
|
|
function _(s) { return s } // dummy function for gettext
|
|
</script>
|
|
[% IF lang && lang != 'en' %]
|
|
[% Asset.js(lang _ '/js/locale_data.js') | $raw %]
|
|
[% END %]
|
|
[% Asset.js('js/Gettext.js') | $raw %]
|
|
[% Asset.js('js/i18n.js') | $raw %]
|
|
|
|
[% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %]
|
|
[% PROCESS 'html_helpers.inc' %]
|
|
[% KohaPlugins.get_plugins_opac_head | $raw %]
|