[% USE raw %] [% USE Koha %] [% USE KohaPlugins %] [% USE Asset %] [% USE AdditionalContents %] [% IF Koha.Preference( 'CookieConsent' ) %] [% SET CookieConsentBar = AdditionalContents.get( location => "CookieConsentBar", lang => lang, library => branchcode || default_branch ) %] [% SET CookieConsentPopup = AdditionalContents.get( location => "CookieConsentPopup", lang => lang, library => branchcode || default_branch ) %] [% USE JSConsents %] [% END %] [% IF ( ( languages_loop ) && ( ! popup_window ) && ( Koha.Preference('StaffLangSelectorMode') == 'both' || Koha.Preference('StaffLangSelectorMode') == 'footer') ) %] [% UNLESS ( one_language_enabled ) %] [% END %] [% END %] [% IF ( footerjs ) %] [% INCLUDE js_includes.inc %] [% jsinclude | $raw # Parse the page template's JavaScript block if necessary %] [% END %] [% KohaPlugins.get_plugins_intranet_js | $raw %] [% IF Koha.Preference( 'CookieConsent' ) %] [% END %] [% IF Koha.Preference( 'CookieConsent' ) && JSConsents.all('staffConsent').size %] [% consents = JSConsents.all('staffConsent') %] [% FOREACH consent IN consents %] [% END %] [% END %] [% IF Koha.Preference( 'CookieConsent' ) %] [% Asset.js("js/cookieconsent.js") | $raw %] [% END %]