View | Details | Raw Unified | Return to bug 38365
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_biblio_record_modification.inc (-1 / +1 lines)
Lines 50-56 Link Here
50
[% END %]
50
[% END %]
51
51
52
[% BLOCK js %]
52
[% BLOCK js %]
53
    <script>
53
    <script nonce="[% Koha.CSPNonce | $raw %]">
54
        $("#add_bibs_to_list").change(function(){
54
        $("#add_bibs_to_list").change(function(){
55
            var selected = $("#add_bibs_to_list").find("option:selected");
55
            var selected = $("#add_bibs_to_list").find("option:selected");
56
            if ( selected.attr("class") == "shelf" ){
56
            if ( selected.attr("class") == "shelf" ){
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/erm_sushi_harvester.inc (-1 / +1 lines)
Lines 108-114 Link Here
108
[% BLOCK js %]
108
[% BLOCK js %]
109
    [% INCLUDE 'str/job_progress.inc' job_id=job.id %]
109
    [% INCLUDE 'str/job_progress.inc' job_id=job.id %]
110
    [% INCLUDE 'str/erm_sushi_harvester.inc' %]
110
    [% INCLUDE 'str/erm_sushi_harvester.inc' %]
111
    <script>
111
    <script nonce="[% Koha.CSPNonce | $raw %]">
112
        $(document).ready(function(){
112
        $(document).ready(function(){
113
            let job_id = [% job.id | $raw %];
113
            let job_id = [% job.id | $raw %];
114
            updateProgress(job_id, {
114
            updateProgress(job_id, {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/import_from_kbart_file.inc (-1 / +1 lines)
Lines 71-77 Link Here
71
[% BLOCK js %]
71
[% BLOCK js %]
72
    [% INCLUDE 'str/job_progress.inc' job_id=job.id %]
72
    [% INCLUDE 'str/job_progress.inc' job_id=job.id %]
73
    [% INCLUDE 'str/import_from_kbart_file.inc' %]
73
    [% INCLUDE 'str/import_from_kbart_file.inc' %]
74
    <script>
74
    <script nonce="[% Koha.CSPNonce | $raw %]">
75
        $(document).ready(function(){
75
        $(document).ready(function(){
76
            let job_id = [% job.id | html %];
76
            let job_id = [% job.id | html %];
77
            updateProgress(job_id, {
77
            updateProgress(job_id, {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-2 / +2 lines)
Lines 3-9 Link Here
3
[% USE raw %]
3
[% USE raw %]
4
<!-- calendar.inc -->
4
<!-- calendar.inc -->
5
[% FILTER collapse %]
5
[% FILTER collapse %]
6
    <script>
6
    <script nonce="[% Koha.CSPNonce | $raw %]">
7
        var debug    = "[% debug | html %]";
7
        var debug    = "[% debug | html %]";
8
        var dateformat_pref = "[% Koha.Preference('dateformat') | html %]";
8
        var dateformat_pref = "[% Koha.Preference('dateformat') | html %]";
9
        var flatpickr_dateformat_string = "";
9
        var flatpickr_dateformat_string = "";
Lines 42-48 Link Here
42
    [% Asset.js("lib/flatpickr/shortcut-buttons-flatpickr.min.js") | $raw %]
42
    [% Asset.js("lib/flatpickr/shortcut-buttons-flatpickr.min.js") | $raw %]
43
    [% Asset.js("lib/maskito/maskito.core.js") | $raw %]
43
    [% Asset.js("lib/maskito/maskito.core.js") | $raw %]
44
    [% Asset.js("lib/maskito/maskito.kit.js") | $raw %]
44
    [% Asset.js("lib/maskito/maskito.kit.js") | $raw %]
45
    <script>
45
    <script nonce="[% Koha.CSPNonce | $raw %]">
46
        flatpickr.l10ns.default.weekdays       = flatpickr_weekdays;
46
        flatpickr.l10ns.default.weekdays       = flatpickr_weekdays;
47
        flatpickr.l10ns.default.months         = flatpickr_months;
47
        flatpickr.l10ns.default.months         = flatpickr_months;
48
        flatpickr.l10ns.default.rangeSeparator = flatpickr_rangeSeparator;
48
        flatpickr.l10ns.default.rangeSeparator = flatpickr_rangeSeparator;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- catalog-strings.inc -->
1
<!-- catalog-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    /* Some required variables from the template */
3
    /* Some required variables from the template */
4
    var biblionumber = "[% biblionumber | html %]";
4
    var biblionumber = "[% biblionumber | html %]";
5
    var count = [% count || 0 | html %];
5
    var count = [% count || 0 | html %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-3 / +3 lines)
Lines 9-15 Link Here
9
[% Asset.js("lib/koha/cateditor/marc-mode.js") | $raw %]
9
[% Asset.js("lib/koha/cateditor/marc-mode.js") | $raw %]
10
[% Asset.js("lib/require.js") | $raw %]
10
[% Asset.js("lib/require.js") | $raw %]
11
<!-- cateditor-ui.inc -->
11
<!-- cateditor-ui.inc -->
12
<script>
12
<script nonce="[% Koha.CSPNonce | $raw %]">
13
    [% FOREACH shortcut IN shortcuts -%]
13
    [% FOREACH shortcut IN shortcuts -%]
14
        var [% shortcut.shortcut_name | html %] = "[% shortcut.shortcut_keys | html %]";
14
        var [% shortcut.shortcut_name | html %] = "[% shortcut.shortcut_keys | html %]";
15
    [% END %]
15
    [% END %]
Lines 35-45 Link Here
35
[% IF marcflavour == 'MARC21' %]
35
[% IF marcflavour == 'MARC21' %]
36
    [% PROCESS 'cateditor-widgets-marc21.inc' %]
36
    [% PROCESS 'cateditor-widgets-marc21.inc' %]
37
[% ELSE %]
37
[% ELSE %]
38
    <script>
38
    <script nonce="[% Koha.CSPNonce | $raw %]">
39
        var editorWidgets = {};
39
        var editorWidgets = {};
40
    </script>
40
    </script>
41
[% END %]
41
[% END %]
42
<script>
42
<script nonce="[% Koha.CSPNonce | $raw %]">
43
    require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'preferences', 'resources', 'text-marc', 'widget' ], function( KohaBackend, Search, Macros, MARCEditor, MARC, Preferences, Resources, TextMARC, Widget ) {
43
    require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'preferences', 'resources', 'text-marc', 'widget' ], function( KohaBackend, Search, Macros, MARCEditor, MARC, Preferences, Resources, TextMARC, Widget ) {
44
        var z3950Servers = [
44
        var z3950Servers = [
45
            {
45
            {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc (-1 / +1 lines)
Lines 76-82 Link Here
76
    </div>
76
    </div>
77
</div>
77
</div>
78
<!-- cateditor-widgets-marc21.inc -->
78
<!-- cateditor-widgets-marc21.inc -->
79
<script>
79
<script nonce="[% Koha.CSPNonce | $raw %]">
80
    /**
80
    /**
81
     * Each widget should provide one to three methods:
81
     * Each widget should provide one to three methods:
82
     *   init( text ): Returns the DOM node for this widget.
82
     *   init( text ): Returns the DOM node for this widget.
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-4 / +4 lines)
Lines 10-16 Link Here
10
[% IF logged_in_user %]<meta name="generator" content="Koha [% Koha.Version.maintenance | html %]" />[% END %]
10
[% IF logged_in_user %]<meta name="generator" content="Koha [% Koha.Version.maintenance | html %]" />[% END %]
11
[%# Prevent XFS attacks -%]
11
[%# Prevent XFS attacks -%]
12
[% UNLESS popup %]
12
[% UNLESS popup %]
13
    <style id="antiClickjack">
13
    <style nonce="[% Koha.CSPNonce | $raw %]" id="antiClickjack">
14
        body {
14
        body {
15
            display: none !important;
15
            display: none !important;
16
        }
16
        }
Lines 30-40 Link Here
30
[% Asset.css("lib/datatables/datatables.min.css") | $raw %]
30
[% Asset.css("lib/datatables/datatables.min.css") | $raw %]
31
[% Asset.css("css/print.css", { media = "print" }) | $raw %]
31
[% Asset.css("css/print.css", { media = "print" }) | $raw %]
32
[% INCLUDE intranetstylesheet.inc %]
32
[% INCLUDE intranetstylesheet.inc %]
33
<script type="module">
33
<script nonce="[% Koha.CSPNonce | $raw %]" type="module">
34
    import { APIClient } from "/intranet-tmpl/prog/js/fetch/api-client.js";
34
    import { APIClient } from "/intranet-tmpl/prog/js/fetch/api-client.js";
35
    window.APIClient = APIClient;
35
    window.APIClient = APIClient;
36
</script>
36
</script>
37
<script>
37
<script nonce="[% Koha.CSPNonce | $raw %]">
38
    var Koha = {};
38
    var Koha = {};
39
    [% IF CAN_user_parameters_manage_column_config %]
39
    [% IF CAN_user_parameters_manage_column_config %]
40
        var CAN_user_parameters_manage_column_config = 1;
40
        var CAN_user_parameters_manage_column_config = 1;
Lines 54-60 Link Here
54
54
55
[% IF ( IntranetUserCSS ) %]
55
[% IF ( IntranetUserCSS ) %]
56
    <!-- prettier-ignore-start -->
56
    <!-- prettier-ignore-start -->
57
    <style>[% IntranetUserCSS | $raw %]</style>
57
    <style nonce="[% Koha.CSPNonce | $raw %]">[% IntranetUserCSS | $raw %]</style>
58
    <!-- prettier-ignore-end -->
58
    <!-- prettier-ignore-end -->
59
[% END %]
59
[% END %]
60
60
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc (-1 / +1 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<!-- format-price.inc -->
2
<!-- format-price.inc -->
3
<script>
3
<script nonce="[% Koha.CSPNonce | $raw %]">
4
    [%# This should use the Format template plugin, but not pushed yet %]
4
    [%# This should use the Format template plugin, but not pushed yet %]
5
    [% IF Koha.Preference("CurrencyFormat") == 'FR' %]
5
    [% IF Koha.Preference("CurrencyFormat") == 'FR' %]
6
        var default_value = {
6
        var default_value = {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-1 / +1 lines)
Lines 93-99 Link Here
93
[% END %][%# end of block items_table %]
93
[% END %][%# end of block items_table %]
94
94
95
[% BLOCK build_items_table_js %]
95
[% BLOCK build_items_table_js %]
96
    <script>
96
    <script nonce="[% Koha.CSPNonce | $raw %]">
97
        let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %];
97
        let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %];
98
98
99
        let items_selection = {};
99
        let items_selection = {};
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-batch-modal-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- ill-batch-table-strings.inc -->
1
<!-- ill-batch-table-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var ill_batch_add = _("Add new batch");
3
    var ill_batch_add = _("Add new batch");
4
    var ill_batch_update = _("Update batch");
4
    var ill_batch_update = _("Update batch");
5
    var ill_batch_none = _("None");
5
    var ill_batch_none = _("None");
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-batch-table-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- ill-batch-table-strings.inc -->
1
<!-- ill-batch-table-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var ill_batch_borrower_details = _("View borrower details");
3
    var ill_batch_borrower_details = _("View borrower details");
4
    var ill_batch_edit = _("Edit");
4
    var ill_batch_edit = _("Edit");
5
    var ill_batch_delete = _("Delete");
5
    var ill_batch_delete = _("Delete");
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- ill-list-table-strings.inc -->
1
<!-- ill-list-table-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var ill_borrower_details = _("View patron details");
3
    var ill_borrower_details = _("View patron details");
4
    var ill_manage = _("Manage request");
4
    var ill_manage = _("Manage request");
5
    var ill_manage_select_backend_first = _("Select a backend first");
5
    var ill_manage_select_backend_first = _("Select a backend first");
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill/backends/Standard/create.inc (-1 / +1 lines)
Lines 115-121 Link Here
115
        <input type="hidden" name="op" value="cud-create" />
115
        <input type="hidden" name="op" value="cud-create" />
116
    </form>
116
    </form>
117
    [% BLOCK backend_jsinclude %]
117
    [% BLOCK backend_jsinclude %]
118
        <script>
118
        <script nonce="[% Koha.CSPNonce | $raw %]">
119
            // <![CDATA[]
119
            // <![CDATA[]
120
            var core = [ [% whole.core | $raw %] ];
120
            var core = [ [% whole.core | $raw %] ];
121
            [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
121
            [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill/backends/Standard/edititem.inc (-1 / +1 lines)
Lines 83-89 Link Here
83
        <input type="hidden" name="backend" value="Standard" />
83
        <input type="hidden" name="backend" value="Standard" />
84
    </form>
84
    </form>
85
    [% BLOCK backend_jsinclude %]
85
    [% BLOCK backend_jsinclude %]
86
        <script>
86
        <script nonce="[% Koha.CSPNonce | $raw %]">
87
            var core = [ [% whole.core | $raw %] ];
87
            var core = [ [% whole.core | $raw %] ];
88
            // <![CDATA[]
88
            // <![CDATA[]
89
            [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
89
            [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill/backends/Standard/migrate.inc (-1 / +1 lines)
Lines 108-114 Link Here
108
        <input type="hidden" name="op" value="cud-migrate" />
108
        <input type="hidden" name="op" value="cud-migrate" />
109
    </form>
109
    </form>
110
    [% BLOCK backend_jsinclude %]
110
    [% BLOCK backend_jsinclude %]
111
        <script>
111
        <script nonce="[% Koha.CSPNonce | $raw %]">
112
            var core = [ [% whole.core | $raw %] ];
112
            var core = [ [% whole.core | $raw %] ];
113
            // <![CDATA[]
113
            // <![CDATA[]
114
            [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
114
            [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill/backends/Standard/shared/custom_fields.inc (-1 / +1 lines)
Lines 25-31 Link Here
25
    </button>
25
    </button>
26
</fieldset>
26
</fieldset>
27
27
28
<style>
28
<style nonce="[% Koha.CSPNonce | $raw %]">
29
    .custom-field-input {
29
    .custom-field-input {
30
        width: 25%;
30
        width: 25%;
31
        display: inline-block;
31
        display: inline-block;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/installer-doc-head-close.inc (-2 / +2 lines)
Lines 10-16 Link Here
10
[% ELSE %]
10
[% ELSE %]
11
    [% Asset.css("css/installer.css") | $raw %]
11
    [% Asset.css("css/installer.css") | $raw %]
12
[% END %]
12
[% END %]
13
<script>
13
<script nonce="[% Koha.CSPNonce | $raw %]">
14
    var Koha = {};
14
    var Koha = {};
15
</script>
15
</script>
16
[% IF lang && lang != 'en' %]
16
[% IF lang && lang != 'en' %]
Lines 18-24 Link Here
18
[% END %]
18
[% END %]
19
[% Asset.js('js/Gettext.js') | $raw %]
19
[% Asset.js('js/Gettext.js') | $raw %]
20
[% Asset.js('js/i18n.js') | $raw %]
20
[% Asset.js('js/i18n.js') | $raw %]
21
<style id="antiClickjack">
21
<style nonce="[% Koha.CSPNonce | $raw %]" id="antiClickjack">
22
    body {
22
    body {
23
        display: none !important;
23
        display: none !important;
24
    }
24
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/installer-intranet-bottom.inc (-1 / +1 lines)
Lines 6-12 Link Here
6
[% Asset.js("lib/bootstrap/bootstrap.bundle.min.js") | $raw %]
6
[% Asset.js("lib/bootstrap/bootstrap.bundle.min.js") | $raw %]
7
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
7
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
8
<!-- installer-intranet-bottom.inc -->
8
<!-- installer-intranet-bottom.inc -->
9
<script>
9
<script nonce="[% Koha.CSPNonce | $raw %]">
10
    function _(s) { return s } // dummy function for gettext
10
    function _(s) { return s } // dummy function for gettext
11
    [%# Prevent XFS attacks -%]
11
    [%# Prevent XFS attacks -%]
12
    $(document).ready(function() {
12
    $(document).ready(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/installer-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- installer-strings.inc -->
1
<!-- installer-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var MSG_LETTERS_ONLY = _("Please only enter letters.");
3
    var MSG_LETTERS_ONLY = _("Please only enter letters.");
4
    var MSG_PASSWORD_MISMATCH = _("The entered passwords do not match");
4
    var MSG_PASSWORD_MISMATCH = _("The entered passwords do not match");
5
    var MSG_ONE_ENROLLMENTPERIOD = _("Please choose an enrollment period in months OR by date.");
5
    var MSG_ONE_ENROLLMENTPERIOD = _("Please choose an enrollment period in months OR by date.");
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc (-1 / +1 lines)
Lines 187-193 Link Here
187
[% END %]
187
[% END %]
188
188
189
[% IF Koha.debug_flag %]
189
[% IF Koha.debug_flag %]
190
    <script>
190
    <script nonce="[% Koha.CSPNonce | $raw %]">
191
        (function () {
191
        (function () {
192
            function getURLParams() {
192
            function getURLParams() {
193
                const params = new URLSearchParams(window.location.search);
193
                const params = new URLSearchParams(window.location.search);
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc (-2 / +1 lines)
Lines 1-5 Link Here
1
1
<script nonce="[% Koha.CSPNonce | $raw %]">
2
<script>
3
    (function () {
2
    (function () {
4
        /**
3
        /**
5
         * Format the biblio response from a Koha RESTful API request.
4
         * Format the biblio response from a Koha RESTful API request.
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc (-2 / +2 lines)
Lines 6-18 Link Here
6
[% Asset.js("lib/dayjs/plugin/utc.js") | $raw %]
6
[% Asset.js("lib/dayjs/plugin/utc.js") | $raw %]
7
[% Asset.js("lib/dayjs/plugin/timezone.js") | $raw %]
7
[% Asset.js("lib/dayjs/plugin/timezone.js") | $raw %]
8
[% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %]
8
[% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %]
9
<script>
9
<script nonce="[% Koha.CSPNonce | $raw %]">
10
    dayjs.extend(window.dayjs_plugin_utc);
10
    dayjs.extend(window.dayjs_plugin_utc);
11
    dayjs.extend(window.dayjs_plugin_timezone);
11
    dayjs.extend(window.dayjs_plugin_timezone);
12
    dayjs.extend(window.dayjs_plugin_customParseFormat);
12
    dayjs.extend(window.dayjs_plugin_customParseFormat);
13
</script>
13
</script>
14
<!-- js-date-format.inc -->
14
<!-- js-date-format.inc -->
15
<script>
15
<script nonce="[% Koha.CSPNonce | $raw %]">
16
    (function() {
16
    (function() {
17
        var def_date_format = '[% Koha.Preference('dateformat') | html %]';
17
        var def_date_format = '[% Koha.Preference('dateformat') | html %]';
18
        var def_time_format = '[% Koha.Preference('TimeFormat') | html %]';
18
        var def_time_format = '[% Koha.Preference('TimeFormat') | html %]';
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc (-1 / +1 lines)
Lines 2-8 Link Here
2
[% USE raw %]
2
[% USE raw %]
3
[% USE To %]
3
[% USE To %]
4
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
5
<script>
5
<script nonce="[% Koha.CSPNonce | $raw %]">
6
    (function() {
6
    (function() {
7
7
8
        const roadtypes = [% To.json(AuthorisedValues.Get('ROADTYPE')) | $raw %];
8
        const roadtypes = [% To.json(AuthorisedValues.Get('ROADTYPE')) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-get-age.inc (-1 / +1 lines)
Lines 1-6 Link Here
1
<!-- js-patron-get-age.inc -->
1
<!-- js-patron-get-age.inc -->
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
<script>
3
<script nonce="[% Koha.CSPNonce | $raw %]">
4
    (function() {
4
    (function() {
5
5
6
        const tz = '[% KohaDates.tz | html %]';
6
        const tz = '[% KohaDates.tz | html %]';
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-5 / +5 lines)
Lines 6-12 Link Here
6
[% USE Koha %]
6
[% USE Koha %]
7
[%# Prevent XFS attacks -%]
7
[%# Prevent XFS attacks -%]
8
[% UNLESS popup %]
8
[% UNLESS popup %]
9
    <script>
9
    <script nonce="[% Koha.CSPNonce | $raw %]">
10
        if (self === top) {
10
        if (self === top) {
11
            var antiClickjack = document.getElementById("antiClickjack");
11
            var antiClickjack = document.getElementById("antiClickjack");
12
            antiClickjack.parentNode.removeChild(antiClickjack);
12
            antiClickjack.parentNode.removeChild(antiClickjack);
Lines 35-41 Link Here
35
[% INCLUDE 'validator-strings.inc' %]
35
[% INCLUDE 'validator-strings.inc' %]
36
[% IF ( IntranetUserJS ) %]
36
[% IF ( IntranetUserJS ) %]
37
    <!-- js_includes.inc: IntranetUserJS -->
37
    <!-- js_includes.inc: IntranetUserJS -->
38
    <script>
38
    <script nonce="[% Koha.CSPNonce | $raw %]">
39
        [% IntranetUserJS | $raw %]
39
        [% IntranetUserJS | $raw %]
40
    </script>
40
    </script>
41
    <!-- / js_includes.inc: IntranetUserJS -->
41
    <!-- / js_includes.inc: IntranetUserJS -->
Lines 51-57 Link Here
51
[% END %]
51
[% END %]
52
52
53
[% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
53
[% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
54
    <script>
54
    <script nonce="[% Koha.CSPNonce | $raw %]">
55
        // AudioAlerts
55
        // AudioAlerts
56
        var AUDIO_ALERT_PATH = '[% interface | html %]/[% theme | html %]/sound/';
56
        var AUDIO_ALERT_PATH = '[% interface | html %]/[% theme | html %]/sound/';
57
        var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" );
57
        var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" );
Lines 69-75 Link Here
69
        });
69
        });
70
    </script>
70
    </script>
71
[% END %]
71
[% END %]
72
<script>
72
<script nonce="[% Koha.CSPNonce | $raw %]">
73
    var defaultPatronSearchFields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname|preferred_name|middle_name|surname|othernames|cardnumber|userid' | html %]";
73
    var defaultPatronSearchFields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname|preferred_name|middle_name|surname|othernames|cardnumber|userid' | html %]";
74
    var defaultPatronSearchMethod = "[% Koha.Preference('DefaultPatronSearchMethod') || 'contains' | html %]";
74
    var defaultPatronSearchMethod = "[% Koha.Preference('DefaultPatronSearchMethod') || 'contains' | html %]";
75
    var extendedPatronAttributes = "[% Koha.Preference('ExtendedPatronAttributes') | html %]";
75
    var extendedPatronAttributes = "[% Koha.Preference('ExtendedPatronAttributes') | html %]";
Lines 78-84 Link Here
78
    var showPatronFirstnameIfDifferentThanPreferredname = [% Koha.Preference('ShowPatronFirstnameIfDifferentThanPreferredname') ? 1 : 0 | html %];
78
    var showPatronFirstnameIfDifferentThanPreferredname = [% Koha.Preference('ShowPatronFirstnameIfDifferentThanPreferredname') ? 1 : 0 | html %];
79
</script>
79
</script>
80
[% IF ( PatronAutoComplete ) %]
80
[% IF ( PatronAutoComplete ) %]
81
    <script>
81
    <script nonce="[% Koha.CSPNonce | $raw %]">
82
        // PatronAutoComplete
82
        // PatronAutoComplete
83
        var loggedInClass = "";
83
        var loggedInClass = "";
84
        $(document).ready(function(){
84
        $(document).ready(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/last-borrower.inc (-2 / +1 lines)
Lines 1-5 Link Here
1
1
<script nonce="[% Koha.CSPNonce | $raw %]">
2
<script>
3
    var showLastPatronCount = "[% Koha.Preference('showLastPatronCount') | html %]";
2
    var showLastPatronCount = "[% Koha.Preference('showLastPatronCount') | html %]";
4
</script>
3
</script>
5
<div id="lastborrower-window">
4
<div id="lastborrower-window">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/main-container.inc (-1 / +1 lines)
Lines 85-91 Link Here
85
</div>
85
</div>
86
[% SET islands = Asset.js("js/vue/dist/islands.esm.js").match('(src="([^"]+)")').1 %] <script src="[% islands | $raw %]" type="module">
86
[% SET islands = Asset.js("js/vue/dist/islands.esm.js").match('(src="([^"]+)")').1 %] <script src="[% islands | $raw %]" type="module">
87
</script>
87
</script>
88
<script type="module">
88
<script nonce="[% Koha.CSPNonce | $raw %]" type="module">
89
    import { hydrate } from "[% islands | $raw %]";
89
    import { hydrate } from "[% islands | $raw %]";
90
    hydrate();
90
    hydrate();
91
</script>
91
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc (-1 / +1 lines)
Lines 337-343 Link Here
337
        [% END %]
337
        [% END %]
338
    </tbody>
338
    </tbody>
339
</table>
339
</table>
340
<script>
340
<script nonce="[% Koha.CSPNonce | $raw %]">
341
    document.addEventListener("DOMContentLoaded", function () {
341
    document.addEventListener("DOMContentLoaded", function () {
342
        const selectElement = document.querySelector('select[name="2-DAYS"]');
342
        const selectElement = document.querySelector('select[name="2-DAYS"]');
343
343
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/modal-claims.inc (-1 / +1 lines)
Lines 46-52 Link Here
46
[% END %]
46
[% END %]
47
47
48
[% BLOCK 'modal-claims-js' %]
48
[% BLOCK 'modal-claims-js' %]
49
    <script>
49
    <script nonce="[% Koha.CSPNonce | $raw %]">
50
        // Verify if the syspref is defined
50
        // Verify if the syspref is defined
51
        var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
51
        var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
52
52
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc (-1 / +1 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<!-- password_check.inc -->
2
<!-- password_check.inc -->
3
<script>
3
<script nonce="[% Koha.CSPNonce | $raw %]">
4
    var pwd_title = "";
4
    var pwd_title = "";
5
    var pattern_title = "";
5
    var pattern_title = "";
6
    var new_password_node_name = "[% new_password | html %]";
6
    var new_password_node_name = "[% new_password | html %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-4 / +4 lines)
Lines 231-241 Link Here
231
[% BLOCK patron_search_js %]
231
[% BLOCK patron_search_js %]
232
232
233
    [% IF redirect_if_one_result && !redirect_url %]
233
    [% IF redirect_if_one_result && !redirect_url %]
234
        <script>
234
        <script nonce="[% Koha.CSPNonce | $raw %]">
235
            console.log("Wrong call of patron_search_js - missing redirect_url");
235
            console.log("Wrong call of patron_search_js - missing redirect_url");
236
        </script>
236
        </script>
237
    [% END %]
237
    [% END %]
238
    <script>
238
    <script nonce="[% Koha.CSPNonce | $raw %]">
239
        var categories = [% To.json(Categories.all.unblessed) | $raw %].map(e => {
239
        var categories = [% To.json(Categories.all.unblessed) | $raw %].map(e => {
240
            e['_id'] = e.categorycode.toLowerCase();
240
            e['_id'] = e.categorycode.toLowerCase();
241
            e['_str'] = e.description;
241
            e['_str'] = e.description;
Lines 302-308 Link Here
302
    [% INCLUDE 'datatables.inc' %]
302
    [% INCLUDE 'datatables.inc' %]
303
    [% INCLUDE 'js-patron-get-age.inc' %]
303
    [% INCLUDE 'js-patron-get-age.inc' %]
304
    [% INCLUDE 'js-patron-format-address.inc' %]
304
    [% INCLUDE 'js-patron-format-address.inc' %]
305
    <script>
305
    <script nonce="[% Koha.CSPNonce | $raw %]">
306
        {
306
        {
307
307
308
            function get_patron_search_form(){
308
            function get_patron_search_form(){
Lines 1036-1042 Link Here
1036
        </div>
1036
        </div>
1037
    </div>
1037
    </div>
1038
    <div id="patron_preview_modal" class="basicModal"></div>
1038
    <div id="patron_preview_modal" class="basicModal"></div>
1039
    <script>
1039
    <script nonce="[% Koha.CSPNonce | $raw %]">
1040
        $(document).ready(function() {
1040
        $(document).ready(function() {
1041
            let parent_block = $("#[% search_results_block_id | html %]");
1041
            let parent_block = $("#[% search_results_block_id | html %]");
1042
            parent_block.find(".select_all").on("click",function(e){
1042
            parent_block.find(".select_all").on("click",function(e){
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc (-1 / +1 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
<!-- slip-print.inc -->
2
<!-- slip-print.inc -->
3
<script>
3
<script nonce="[% Koha.CSPNonce | $raw %]">
4
    [% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
4
    [% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
5
        let autoprint = false;
5
        let autoprint = false;
6
        [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
6
        [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/cataloging_additem.inc (-1 / +1 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
<!-- str/cataloging_additem.inc -->
2
<!-- str/cataloging_additem.inc -->
3
<script>
3
<script nonce="[% Koha.CSPNonce | $raw %]">
4
    var searchid = '[% searchid | html %]';
4
    var searchid = '[% searchid | html %]';
5
    var biblionumber = '[% biblionumber | html %]';
5
    var biblionumber = '[% biblionumber | html %]';
6
    var frameworkcode = '[% frameworkcode | html %]';
6
    var frameworkcode = '[% frameworkcode | html %]';
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/erm_sushi_harvester.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- str/job_progress.inc -->
1
<!-- str/job_progress.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var REQUESTING_SUSHI = _("Requesting SUSHI service");
3
    var REQUESTING_SUSHI = _("Requesting SUSHI service");
4
    var CREATING_COUNTER = _("Creating COUNTER file and processing data");
4
    var CREATING_COUNTER = _("Creating COUNTER file and processing data");
5
</script>
5
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/import_from_kbart_file.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- str/job_progress.inc -->
1
<!-- str/job_progress.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var READING_FILE = _("Reading file");
3
    var READING_FILE = _("Reading file");
4
    var PROCESSING_FILE = _("Processing file and importing titles");
4
    var PROCESSING_FILE = _("Processing file and importing titles");
5
</script>
5
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/job_progress.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- str/job_progress.inc -->
1
<!-- str/job_progress.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var JOB_PROGRESS_NOT_STARTED = _("Not started");
3
    var JOB_PROGRESS_NOT_STARTED = _("Not started");
4
    var JOB_PROGRESS_STARTED = _("Started");
4
    var JOB_PROGRESS_STARTED = _("Started");
5
    var JOB_PROGRESS_FINISHED = _("Finished");
5
    var JOB_PROGRESS_FINISHED = _("Finished");
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc (-1 / +1 lines)
Lines 6-12 Link Here
6
[% IF ( Koha.Preference('patronimages') ) %]
6
[% IF ( Koha.Preference('patronimages') ) %]
7
    [% Asset.js("js/patron-webcam.js") | $raw %]
7
    [% Asset.js("js/patron-webcam.js") | $raw %]
8
[% END %]
8
[% END %]
9
<script>
9
<script nonce="[% Koha.CSPNonce | $raw %]">
10
    var advsearch = "[% advsearch | html %]";
10
    var advsearch = "[% advsearch | html %]";
11
    var destination = "[% destination | html %]";
11
    var destination = "[% destination | html %]";
12
12
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/tinymce_i18n.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- str/tinymce_i18n.inc -->
1
<!-- str/tinymce_i18n.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    /* tinymce considers 'en' to be the default translation.
3
    /* tinymce considers 'en' to be the default translation.
4
       Translating this file will allow us to load the correct language
4
       Translating this file will allow us to load the correct language
5
       along with the template */
5
       along with the template */
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/validator-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- validator-strings.inc -->
1
<!-- validator-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    $(document).ready(function () {
3
    $(document).ready(function () {
4
        jQuery.extend(jQuery.validator.messages, {
4
        jQuery.extend(jQuery.validator.messages, {
5
            required: _("This field is required."),
5
            required: _("This field is required."),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc (-1 / +1 lines)
Lines 4-10 Link Here
4
[% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
4
[% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
5
[% INCLUDE 'str/tinymce_i18n.inc' %]
5
[% INCLUDE 'str/tinymce_i18n.inc' %]
6
<!-- wysiwyg-systempreferences.inc -->
6
<!-- wysiwyg-systempreferences.inc -->
7
<script>
7
<script nonce="[% Koha.CSPNonce | $raw %]">
8
    // Save TinyMCE content and trigger an event on the original element
8
    // Save TinyMCE content and trigger an event on the original element
9
    function wysiwyg_change (ed){
9
    function wysiwyg_change (ed){
10
        ed.save();
10
        ed.save();
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950_search.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- z3950_search.inc -->
1
<!-- z3950_search.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var interface = "[% interface | html %]";
3
    var interface = "[% interface | html %]";
4
    var theme = "[% theme | html %]";
4
    var theme = "[% theme | html %]";
5
    var total_pages = new Number("[% total_pages | html %]");
5
    var total_pages = new Number("[% total_pages | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
    [% END %]</title
13
    [% END %]</title
14
>
14
>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    .version-ellipsis {
17
    .version-ellipsis {
18
        text-decoration: underline;
18
        text-decoration: underline;
19
    }
19
    }
Lines 93-99 Link Here
93
93
94
[% MACRO jsinclude BLOCK %]
94
[% MACRO jsinclude BLOCK %]
95
    [% INCLUDE 'datatables.inc' %]
95
    [% INCLUDE 'datatables.inc' %]
96
    <script>
96
    <script nonce="[% Koha.CSPNonce | $raw %]">
97
        $(document).ready(function () {
97
        $(document).ready(function () {
98
            let perl_table = $("#perl_table").kohaTable({
98
            let perl_table = $("#perl_table").kohaTable({
99
                autoWidth: false,
99
                autoWidth: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-1 / +1 lines)
Lines 207-213 Link Here
207
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
207
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
208
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
208
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
209
    [% IF loop_budget %]
209
    [% IF loop_budget %]
210
        <script>
210
        <script nonce="[% Koha.CSPNonce | $raw %]">
211
            dt_overwrite_html_sorting_localeCompare();
211
            dt_overwrite_html_sorting_localeCompare();
212
212
213
            $(document).ready(function() {
213
            $(document).ready(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-2 / +2 lines)
Lines 17-23 Link Here
17
    [% END %]</title
17
    [% END %]</title
18
>
18
>
19
[% FILTER collapse %]
19
[% FILTER collapse %]
20
    <style>
20
    <style nonce="[% Koha.CSPNonce | $raw %]">
21
        .biblio {
21
        .biblio {
22
            padding: 0 0.5em;
22
            padding: 0 0.5em;
23
            margin: 0;
23
            margin: 0;
Lines 45-51 Link Here
45
[% INCLUDE 'doc-head-close.inc' %]
45
[% INCLUDE 'doc-head-close.inc' %]
46
[% Asset.css("css/addbiblio.css") | $raw %]
46
[% Asset.css("css/addbiblio.css") | $raw %]
47
[%# As long as cataloging plugins rely on 'script' tags added inline, JS must be in the header %]
47
[%# As long as cataloging plugins rely on 'script' tags added inline, JS must be in the header %]
48
<script>
48
<script nonce="[% Koha.CSPNonce | $raw %]">
49
    const template_path = "[% interface | html %]/[% theme | html %]";
49
    const template_path = "[% interface | html %]/[% theme | html %]";
50
</script>
50
</script>
51
[% Asset.js("js/acquisitions-menu.js") | $raw %]
51
[% Asset.js("js/acquisitions-menu.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-5 / +5 lines)
Lines 33-39 Link Here
33
    [% END %]</title
33
    [% END %]</title
34
>
34
>
35
[% INCLUDE 'doc-head-close.inc' %]
35
[% INCLUDE 'doc-head-close.inc' %]
36
<style>
36
<style nonce="[% Koha.CSPNonce | $raw %]">
37
    .sortmsg {
37
    .sortmsg {
38
        font-size: 80%;
38
        font-size: 80%;
39
    }
39
    }
Lines 1276-1282 Link Here
1276
    [% INCLUDE 'datatables.inc' %]
1276
    [% INCLUDE 'datatables.inc' %]
1277
    [% Asset.js("js/acq.js") | $raw %]
1277
    [% Asset.js("js/acq.js") | $raw %]
1278
    [% INCLUDE 'calendar.inc' %]
1278
    [% INCLUDE 'calendar.inc' %]
1279
    <script>
1279
    <script nonce="[% Koha.CSPNonce | $raw %]">
1280
        function updateColumnsVisibility(visible) {
1280
        function updateColumnsVisibility(visible) {
1281
            if ( visible ) {
1281
            if ( visible ) {
1282
                $("table .tax_excluded, .tax_included").show();
1282
                $("table .tax_excluded, .tax_included").show();
Lines 1364-1370 Link Here
1364
        });
1364
        });
1365
    </script>
1365
    </script>
1366
    [% UNLESS ( closedate ) %]
1366
    [% UNLESS ( closedate ) %]
1367
        <script>
1367
        <script nonce="[% Koha.CSPNonce | $raw %]">
1368
            function transfer_order_popup(ordernumber) {
1368
            function transfer_order_popup(ordernumber) {
1369
                var url = "/cgi-bin/koha/acqui/transferorder.pl?"
1369
                var url = "/cgi-bin/koha/acqui/transferorder.pl?"
1370
                    + "ordernumber=" + ordernumber
1370
                    + "ordernumber=" + ordernumber
Lines 1393-1399 Link Here
1393
            });
1393
            });
1394
        </script>
1394
        </script>
1395
    [% ELSE %]
1395
    [% ELSE %]
1396
        <script>
1396
        <script nonce="[% Koha.CSPNonce | $raw %]">
1397
            $(document).ready(function(){
1397
            $(document).ready(function(){
1398
                $("#basketgroupid").change(function(){
1398
                $("#basketgroupid").change(function(){
1399
                    if($(this).val() == "new"){
1399
                    if($(this).val() == "new"){
Lines 1405-1411 Link Here
1405
            });
1405
            });
1406
        </script>
1406
        </script>
1407
    [% END # /UNLESS (closedate) %]
1407
    [% END # /UNLESS (closedate) %]
1408
    <script>
1408
    <script nonce="[% Koha.CSPNonce | $raw %]">
1409
        $(document).ready(function() {
1409
        $(document).ready(function() {
1410
            var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'basket', 'orders', 'json' ) | $raw %];
1410
            var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'basket', 'orders', 'json' ) | $raw %];
1411
1411
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt (-1 / +1 lines)
Lines 396-402 Link Here
396
396
397
[% MACRO jsinclude BLOCK %]
397
[% MACRO jsinclude BLOCK %]
398
    [% INCLUDE 'datatables.inc' %]
398
    [% INCLUDE 'datatables.inc' %]
399
    <script>
399
    <script nonce="[% Koha.CSPNonce | $raw %]">
400
        function submitForm(form) {
400
        function submitForm(form) {
401
            if (form.closedbg.checked == true) {
401
            if (form.closedbg.checked == true) {
402
                var input = document.createElement("input");
402
                var input = document.createElement("input");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt (-1 / +1 lines)
Lines 174-180 Link Here
174
    [% Asset.js("js/acq.js") | $raw %]
174
    [% Asset.js("js/acq.js") | $raw %]
175
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
175
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
176
    [% INCLUDE 'select2.inc' %]
176
    [% INCLUDE 'select2.inc' %]
177
    <script>
177
    <script nonce="[% Koha.CSPNonce | $raw %]">
178
        $(document).ready(function () {
178
        $(document).ready(function () {
179
            function display_vendor(vendor) {
179
            function display_vendor(vendor) {
180
                var $text;
180
                var $text;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt (-2 / +2 lines)
Lines 14-20 Link Here
14
    [% END %]</title
14
    [% END %]</title
15
>
15
>
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
<style>
17
<style nonce="[% Koha.CSPNonce | $raw %]">
18
    #vendors td {
18
    #vendors td {
19
        vertical-align: top;
19
        vertical-align: top;
20
    }
20
    }
Lines 232-238 Link Here
232
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
232
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
233
    [% INCLUDE 'datatables.inc' %]
233
    [% INCLUDE 'datatables.inc' %]
234
    [% Asset.js("js/acq.js") | $raw %]
234
    [% Asset.js("js/acq.js") | $raw %]
235
    <script>
235
    <script nonce="[% Koha.CSPNonce | $raw %]">
236
        $(document).ready(function () {
236
        $(document).ready(function () {
237
            $("table.baskets").kohaTable({
237
            $("table.baskets").kohaTable({
238
                dom: "t",
238
                dom: "t",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
    [% END %]</title
16
    [% END %]</title
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    .picked_to_duplicate > td {
20
    .picked_to_duplicate > td {
21
        background-color: #bcdb89 !important;
21
        background-color: #bcdb89 !important;
22
    }
22
    }
Lines 314-320 Link Here
314
    [% INCLUDE 'datatables.inc' %]
314
    [% INCLUDE 'datatables.inc' %]
315
    [% Asset.js("js/acq.js") | $raw %]
315
    [% Asset.js("js/acq.js") | $raw %]
316
    [% Asset.js("js/funds_sorts.js") | $raw %]
316
    [% Asset.js("js/funds_sorts.js") | $raw %]
317
    <script>
317
    <script nonce="[% Koha.CSPNonce | $raw %]">
318
        function update_ordernumber_list(){
318
        function update_ordernumber_list(){
319
            var ordernumbers = [];
319
            var ordernumbers = [];
320
            $("input[name='ordernumber']").filter(":checked").each(function(){
320
            $("input[name='ordernumber']").filter(":checked").each(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt (-1 / +1 lines)
Lines 44-50 Link Here
44
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
44
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
45
    [% INCLUDE 'datatables.inc' %]
45
    [% INCLUDE 'datatables.inc' %]
46
    [% Asset.js("js/modals/edifact-modal.js") | $raw %]
46
    [% Asset.js("js/modals/edifact-modal.js") | $raw %]
47
    <script>
47
    <script nonce="[% Koha.CSPNonce | $raw %]">
48
        $(document).ready(function () {
48
        $(document).ready(function () {
49
            let edi_msgs_table_url = "/api/v1/acquisitions/edifiles?";
49
            let edi_msgs_table_url = "/api/v1/acquisitions/edifiles?";
50
50
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt (-1 / +1 lines)
Lines 167-173 Link Here
167
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
167
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
168
    [% INCLUDE 'calendar.inc' %]
168
    [% INCLUDE 'calendar.inc' %]
169
    [% INCLUDE 'datatables.inc' %]
169
    [% INCLUDE 'datatables.inc' %]
170
    <script>
170
    <script nonce="[% Koha.CSPNonce | $raw %]">
171
        $(document).ready(function() {
171
        $(document).ready(function() {
172
            var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
172
            var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
173
            $("#histsearcht").kohaTable(
173
            $("#histsearcht").kohaTable(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt (-1 / +1 lines)
Lines 115-121 Link Here
115
[% MACRO jsinclude BLOCK %]
115
[% MACRO jsinclude BLOCK %]
116
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
116
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
117
    [% INCLUDE 'datatables.inc' %]
117
    [% INCLUDE 'datatables.inc' %]
118
    <script>
118
    <script nonce="[% Koha.CSPNonce | $raw %]">
119
        $(document).ready(function () {
119
        $(document).ready(function () {
120
            $("#invoice_files_details_table").kohaTable({
120
            $("#invoice_files_details_table").kohaTable({
121
                columnDefs: [{ targets: [-1, -2], orderable: false, searchable: false }],
121
                columnDefs: [{ targets: [-1, -2], orderable: false, searchable: false }],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt (-1 / +1 lines)
Lines 576-582 Link Here
576
    [% INCLUDE 'calendar.inc' %]
576
    [% INCLUDE 'calendar.inc' %]
577
    [% INCLUDE 'datatables.inc' %]
577
    [% INCLUDE 'datatables.inc' %]
578
    [% Asset.js("js/modals/edifact-modal.js") | $raw %]
578
    [% Asset.js("js/modals/edifact-modal.js") | $raw %]
579
    <script>
579
    <script nonce="[% Koha.CSPNonce | $raw %]">
580
        function updateColumnsVisibility(visible) {
580
        function updateColumnsVisibility(visible) {
581
            if ( visible ) {
581
            if ( visible ) {
582
                $("table .tax_excluded, .tax_included").show();
582
                $("table .tax_excluded, .tax_included").show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-1 / +1 lines)
Lines 478-484 Link Here
478
    [% INCLUDE 'calendar.inc' %]
478
    [% INCLUDE 'calendar.inc' %]
479
    [% INCLUDE 'select2.inc' %]
479
    [% INCLUDE 'select2.inc' %]
480
    [% INCLUDE 'js-date-format.inc' %]
480
    [% INCLUDE 'js-date-format.inc' %]
481
    <script>
481
    <script nonce="[% Koha.CSPNonce | $raw %]">
482
        $(document).ready(function () {
482
        $(document).ready(function () {
483
            $('[id^="CheckAll"]').click(function () {
483
            $('[id^="CheckAll"]').click(function () {
484
                var table_id = "#" + $(this).attr("data-cb") + "resultst";
484
                var table_id = "#" + $(this).attr("data-cb") + "resultst";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-1 / +1 lines)
Lines 374-380 Link Here
374
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
374
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
375
    [% INCLUDE 'datatables.inc' %]
375
    [% INCLUDE 'datatables.inc' %]
376
    [% INCLUDE 'calendar.inc' %]
376
    [% INCLUDE 'calendar.inc' %]
377
    <script>
377
    <script nonce="[% Koha.CSPNonce | $raw %]">
378
        var late_orderst;
378
        var late_orderst;
379
        function check_uncheck() {
379
        function check_uncheck() {
380
            var all_nodes = late_orderst.DataTable().rows().nodes();
380
            var all_nodes = late_orderst.DataTable().rows().nodes();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-2 / +2 lines)
Lines 21-27 Link Here
21
>
21
>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
[% FILTER collapse %]
23
[% FILTER collapse %]
24
    <style>
24
    <style nonce="[% Koha.CSPNonce | $raw %]">
25
        #itemfieldset label,
25
        #itemfieldset label,
26
        #itemfieldset span.label {
26
        #itemfieldset span.label {
27
            flex-basis: 25%;
27
            flex-basis: 25%;
Lines 54-60 Link Here
54
[% Asset.js("js/additional-fields-entry.js") | $raw %]
54
[% Asset.js("js/additional-fields-entry.js") | $raw %]
55
[% INCLUDE 'calendar.inc' %]
55
[% INCLUDE 'calendar.inc' %]
56
[% INCLUDE 'select2.inc' %]
56
[% INCLUDE 'select2.inc' %]
57
<script>
57
<script nonce="[% Koha.CSPNonce | $raw %]">
58
    actTotal = "";
58
    actTotal = "";
59
59
60
    function Check(ff) {
60
    function Check(ff) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt (-1 / +1 lines)
Lines 114-120 Link Here
114
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
114
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
115
    [% INCLUDE 'datatables.inc' %]
115
    [% INCLUDE 'datatables.inc' %]
116
    [% INCLUDE 'calendar.inc' %]
116
    [% INCLUDE 'calendar.inc' %]
117
    <script>
117
    <script nonce="[% Koha.CSPNonce | $raw %]">
118
        function updateRowsVisibility(show_only_renewed) {
118
        function updateRowsVisibility(show_only_renewed) {
119
            if (show_only_renewed) {
119
            if (show_only_renewed) {
120
                $("#srlt [data-reneweddate='']").hide();
120
                $("#srlt [data-reneweddate='']").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt (-1 / +1 lines)
Lines 129-135 Link Here
129
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
129
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
130
    [% INCLUDE 'datatables.inc' %]
130
    [% INCLUDE 'datatables.inc' %]
131
    [% INCLUDE 'calendar.inc' %]
131
    [% INCLUDE 'calendar.inc' %]
132
    <script>
132
    <script nonce="[% Koha.CSPNonce | $raw %]">
133
        $(document).ready(function() {
133
        $(document).ready(function() {
134
           var suggestionst = $("#suggestionst").kohaTable({
134
           var suggestionst = $("#suggestionst").kohaTable({
135
               columnDefs: [
135
               columnDefs: [
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt (-1 / +1 lines)
Lines 118-124 Link Here
118
[% MACRO jsinclude BLOCK %]
118
[% MACRO jsinclude BLOCK %]
119
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
119
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
120
    [% INCLUDE 'datatables.inc' %]
120
    [% INCLUDE 'datatables.inc' %]
121
    <script>
121
    <script nonce="[% Koha.CSPNonce | $raw %]">
122
        $(document).ready(function () {
122
        $(document).ready(function () {
123
            $("#spent").kohaTable({
123
            $("#spent").kohaTable({
124
                pagingType: "full",
124
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-2 / +2 lines)
Lines 20-26 Link Here
20
    [% END %]</title
20
    [% END %]</title
21
>
21
>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
<style>
23
<style nonce="[% Koha.CSPNonce | $raw %]">
24
    @media (min-width: 1200px) {
24
    @media (min-width: 1200px) {
25
        #receive-modal,
25
        #receive-modal,
26
        #receive-modal {
26
        #receive-modal {
Lines 453-459 Link Here
453
    [% INCLUDE 'datatables.inc' %]
453
    [% INCLUDE 'datatables.inc' %]
454
    [% INCLUDE 'js-date-format.inc' %]
454
    [% INCLUDE 'js-date-format.inc' %]
455
    [% INCLUDE 'format_price.inc' %]
455
    [% INCLUDE 'format_price.inc' %]
456
    <script>
456
    <script nonce="[% Koha.CSPNonce | $raw %]">
457
        function display_string(key, strings, fallback) {
457
        function display_string(key, strings, fallback) {
458
            if ( strings.hasOwnProperty(key) ) {
458
            if ( strings.hasOwnProperty(key) ) {
459
                return strings[key].str && escape_str(strings[key].str) || '';
459
                return strings[key].str && escape_str(strings[key].str) || '';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-2 / +2 lines)
Lines 350-361 Link Here
350
[% MACRO jsinclude BLOCK %]
350
[% MACRO jsinclude BLOCK %]
351
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
351
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
352
    [% INCLUDE 'datatables.inc' %]
352
    [% INCLUDE 'datatables.inc' %]
353
    <style>
353
    <style nonce="[% Koha.CSPNonce | $raw %]">
354
        fieldset.action {
354
        fieldset.action {
355
            margin-bottom: 20px;
355
            margin-bottom: 20px;
356
        }
356
        }
357
    </style>
357
    </style>
358
    <script>
358
    <script nonce="[% Koha.CSPNonce | $raw %]">
359
        dt_overwrite_html_sorting_localeCompare();
359
        dt_overwrite_html_sorting_localeCompare();
360
        var PENDING_MULTI_SELECTION = _("Receive selected (%s)");
360
        var PENDING_MULTI_SELECTION = _("Receive selected (%s)");
361
        var columns_filter = {};
361
        var columns_filter = {};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt (-1 / +1 lines)
Lines 269-275 Link Here
269
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
269
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
270
    [% INCLUDE 'calendar.inc' %]
270
    [% INCLUDE 'calendar.inc' %]
271
    [% INCLUDE 'datatables.inc' %]
271
    [% INCLUDE 'datatables.inc' %]
272
    <script>
272
    <script nonce="[% Koha.CSPNonce | $raw %]">
273
        $(document).ready(function () {
273
        $(document).ready(function () {
274
            $("#parcelst").kohaTable({
274
            $("#parcelst").kohaTable({
275
                paging: false,
275
                paging: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt (-1 / +1 lines)
Lines 128-134 Link Here
128
[% MACRO jsinclude BLOCK %]
128
[% MACRO jsinclude BLOCK %]
129
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
129
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
130
    [% INCLUDE 'datatables.inc' %]
130
    [% INCLUDE 'datatables.inc' %]
131
    <script>
131
    <script nonce="[% Koha.CSPNonce | $raw %]">
132
        $(document).ready(function () {
132
        $(document).ready(function () {
133
            $("#spent").kohaTable({
133
            $("#spent").kohaTable({
134
                pagingType: "full",
134
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt (-2 / +2 lines)
Lines 170-183 Link Here
170
170
171
[% MACRO jsinclude BLOCK %]
171
[% MACRO jsinclude BLOCK %]
172
    [% IF transferred %]
172
    [% IF transferred %]
173
        <script>
173
        <script nonce="[% Koha.CSPNonce | $raw %]">
174
            opener.location.reload();
174
            opener.location.reload();
175
            window.close();
175
            window.close();
176
        </script>
176
        </script>
177
    [% END %]
177
    [% END %]
178
178
179
    [% IF ( bookselleridfrom ) %]
179
    [% IF ( bookselleridfrom ) %]
180
        <script>
180
        <script nonce="[% Koha.CSPNonce | $raw %]">
181
            $(document).ready(function () {
181
            $(document).ready(function () {
182
                $(".confirm_transfer").on("click", function () {
182
                $(".confirm_transfer").on("click", function () {
183
                    return confirm(_("Transfer order to this basket?"));
183
                    return confirm(_("Transfer order to this basket?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt (-1 / +1 lines)
Lines 189-195 Link Here
189
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
189
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
190
    [% Asset.js("js/acq.js") | $raw %]
190
    [% Asset.js("js/acq.js") | $raw %]
191
    [% INCLUDE 'datatables.inc' %]
191
    [% INCLUDE 'datatables.inc' %]
192
    <script>
192
    <script nonce="[% Koha.CSPNonce | $raw %]">
193
        $(document).ready(function () {
193
        $(document).ready(function () {
194
            var uncertainpricet = $("#uncertainpricet").kohaTable({
194
            var uncertainpricet = $("#uncertainpricet").kohaTable({
195
                pagingType: "full",
195
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt (-1 / +1 lines)
Lines 210-216 Link Here
210
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
210
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
211
    [% INCLUDE 'calendar.inc' %]
211
    [% INCLUDE 'calendar.inc' %]
212
    [% INCLUDE 'datatables.inc' %]
212
    [% INCLUDE 'datatables.inc' %]
213
    <script>
213
    <script nonce="[% Koha.CSPNonce | $raw %]">
214
        $(document).ready(function() {
214
        $(document).ready(function() {
215
            var issues_table_url = '/api/v1/acquisitions/vendors/[% vendor.id | uri %]/issues?';
215
            var issues_table_url = '/api/v1/acquisitions/vendors/[% vendor.id | uri %]/issues?';
216
216
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendors.tt (-1 / +1 lines)
Lines 28-34 Link Here
28
    [% INCLUDE 'datatables.inc' %]
28
    [% INCLUDE 'datatables.inc' %]
29
    [% INCLUDE 'js-date-format.inc' %]
29
    [% INCLUDE 'js-date-format.inc' %]
30
    [% INCLUDE 'format_price.inc' %]
30
    [% INCLUDE 'format_price.inc' %]
31
    <script>
31
    <script nonce="[% Koha.CSPNonce | $raw %]">
32
        const vendorTableSettings = [% TablesSettings.GetTableSettings( 'acqui', 'vendors', 'vendors', 'json' ) | $raw %];
32
        const vendorTableSettings = [% TablesSettings.GetTableSettings( 'acqui', 'vendors', 'vendors', 'json' ) | $raw %];
33
    </script>
33
    </script>
34
    [% Asset.js("js/vue/dist/acquisitions.js") | $raw %]
34
    [% Asset.js("js/vue/dist/acquisitions.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt (-2 / +2 lines)
Lines 20-26 Link Here
20
[% INCLUDE 'doc-head-close.inc' %]
20
[% INCLUDE 'doc-head-close.inc' %]
21
[% USE Koha %]
21
[% USE Koha %]
22
22
23
<style>
23
<style nonce="[% Koha.CSPNonce | $raw %]">
24
    tr.selected {
24
    tr.selected {
25
        background-color: #ffffcc;
25
        background-color: #ffffcc;
26
    }
26
    }
Lines 332-338 Link Here
332
    [% INCLUDE 'datatables.inc' %]
332
    [% INCLUDE 'datatables.inc' %]
333
    [% INCLUDE 'z3950_search.inc' %]
333
    [% INCLUDE 'z3950_search.inc' %]
334
    [% Asset.js("js/z3950_search.js") | $raw %]
334
    [% Asset.js("js/z3950_search.js") | $raw %]
335
    <script>
335
    <script nonce="[% Koha.CSPNonce | $raw %]">
336
        $(document).ready(function () {
336
        $(document).ready(function () {
337
            var resultst = $("#resultst").kohaTable({
337
            var resultst = $("#resultst").kohaTable({
338
                columnDefs: [{ targets: [1], type: "nsb-nse" }],
338
                columnDefs: [{ targets: [1], type: "nsb-nse" }],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt (-1 / +1 lines)
Lines 315-321 Link Here
315
315
316
[% MACRO jsinclude BLOCK %]
316
[% MACRO jsinclude BLOCK %]
317
    [% INCLUDE "datatables.inc" %]
317
    [% INCLUDE "datatables.inc" %]
318
    <script>
318
    <script nonce="[% Koha.CSPNonce | $raw %]">
319
        $(document).ready(function () {
319
        $(document).ready(function () {
320
            $("#selecttable").find(":submit").hide();
320
            $("#selecttable").find(":submit").hide();
321
            $("#selecttable select").change(function () {
321
            $("#selecttable select").change(function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-1 / +1 lines)
Lines 561-567 Link Here
561
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
561
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
562
    [% END %]
562
    [% END %]
563
    [% Asset.js("js/acq.js") | $raw %]
563
    [% Asset.js("js/acq.js") | $raw %]
564
    <script>
564
    <script nonce="[% Koha.CSPNonce | $raw %]">
565
        $(document).ready(function() {
565
        $(document).ready(function() {
566
            let dt_params = {
566
            let dt_params = {
567
                pagingType: "full",
567
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-2 / +2 lines)
Lines 528-534 Link Here
528
[% MACRO jsinclude BLOCK %]
528
[% MACRO jsinclude BLOCK %]
529
    [% Asset.js("js/acq.js") | $raw %]
529
    [% Asset.js("js/acq.js") | $raw %]
530
    [% IF op == 'add_form' %]
530
    [% IF op == 'add_form' %]
531
        <script>
531
        <script nonce="[% Koha.CSPNonce | $raw %]">
532
            //<![CDATA[
532
            //<![CDATA[
533
533
534
            function select_user(borrowernumber, borrower) {
534
            function select_user(borrowernumber, borrower) {
Lines 676-682 Link Here
676
    [% ELSIF op == 'list' %]
676
    [% ELSIF op == 'list' %]
677
        [% INCLUDE 'datatables.inc' %]
677
        [% INCLUDE 'datatables.inc' %]
678
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
678
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
679
        <script>
679
        <script nonce="[% Koha.CSPNonce | $raw %]">
680
            $(document).ready(function() {
680
            $(document).ready(function() {
681
                [% IF budgets %]
681
                [% IF budgets %]
682
                    var oTable = $("#budgeth").kohaTable({
682
                    var oTable = $("#budgeth").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt (-1 / +1 lines)
Lines 202-208 Link Here
202
[% MACRO jsinclude BLOCK %]
202
[% MACRO jsinclude BLOCK %]
203
    [% INCLUDE 'calendar.inc' %]
203
    [% INCLUDE 'calendar.inc' %]
204
    [% Asset.js("js/acq.js") | $raw %]
204
    [% Asset.js("js/acq.js") | $raw %]
205
    <script>
205
    <script nonce="[% Koha.CSPNonce | $raw %]">
206
        $(document).ready(function () {
206
        $(document).ready(function () {
207
            $("#add_modify_contract").validate({
207
            $("#add_modify_contract").validate({
208
                rules: {
208
                rules: {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
    [% END %]</title
13
    [% END %]</title
14
>
14
>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    td.locked {
17
    td.locked {
18
        background-image: url("[% interface | html %]/[% theme | html %]/img/locked.png");
18
        background-image: url("[% interface | html %]/[% theme | html %]/img/locked.png");
19
        padding-left: 20px;
19
        padding-left: 20px;
Lines 320-326 Link Here
320
320
321
[% MACRO jsinclude BLOCK %]
321
[% MACRO jsinclude BLOCK %]
322
    [% Asset.js("js/acq.js") | $raw %]
322
    [% Asset.js("js/acq.js") | $raw %]
323
    <script>
323
    <script nonce="[% Koha.CSPNonce | $raw %]">
324
        jQuery.validator.addClassRules({ plan_entry: { pnumber: true } }); // require that input be a number in fields with the class 'plan_entry'
324
        jQuery.validator.addClassRules({ plan_entry: { pnumber: true } }); // require that input be a number in fields with the class 'plan_entry'
325
        jQuery.validator.addMethod("pnumber", $.validator.methods.number, _("Please enter a valid number.") );
325
        jQuery.validator.addMethod("pnumber", $.validator.methods.number, _("Please enter a valid number.") );
326
        var zero_formatted = "[% 0 | $Price on_editing => 1 %]";
326
        var zero_formatted = "[% 0 | $Price on_editing => 1 %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-1 / +1 lines)
Lines 435-441 Link Here
435
    [% INCLUDE 'datatables.inc' %]
435
    [% INCLUDE 'datatables.inc' %]
436
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
436
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
437
    [% Asset.js("js/admin-menu.js") | $raw %]
437
    [% Asset.js("js/admin-menu.js") | $raw %]
438
    <script>
438
    <script nonce="[% Koha.CSPNonce | $raw %]">
439
        $(document).ready(function() {
439
        $(document).ready(function() {
440
            $("#table_authsubfieldstructure").kohaTable({
440
            $("#table_authsubfieldstructure").kohaTable({
441
                order: [],
441
                order: [],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-1 / +1 lines)
Lines 287-293 Link Here
287
[% MACRO jsinclude BLOCK %]
287
[% MACRO jsinclude BLOCK %]
288
    [% INCLUDE 'datatables.inc' %]
288
    [% INCLUDE 'datatables.inc' %]
289
    [% Asset.js("js/admin-menu.js") | $raw %]
289
    [% Asset.js("js/admin-menu.js") | $raw %]
290
    <script>
290
    <script nonce="[% Koha.CSPNonce | $raw %]">
291
        $(document).ready(function () {
291
        $(document).ready(function () {
292
            $("#table_authtagstructure").kohaTable({
292
            $("#table_authtagstructure").kohaTable({
293
                pagingType: "full",
293
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-2 / +2 lines)
Lines 35-41 Link Here
35
[% INCLUDE 'doc-head-close.inc' %]
35
[% INCLUDE 'doc-head-close.inc' %]
36
36
37
[% FILTER collapse %]
37
[% FILTER collapse %]
38
    <style>
38
    <style nonce="[% Koha.CSPNonce | $raw %]">
39
        fieldset.rows div.toptabs li {
39
        fieldset.rows div.toptabs li {
40
            clear: none;
40
            clear: none;
41
            margin-right: 0.4em;
41
            margin-right: 0.4em;
Lines 403-409 Link Here
403
    [% Asset.js("js/admin-menu.js") | $raw %]
403
    [% Asset.js("js/admin-menu.js") | $raw %]
404
    [% INCLUDE 'datatables.inc' %]
404
    [% INCLUDE 'datatables.inc' %]
405
    [% INCLUDE 'select2.inc' %]
405
    [% INCLUDE 'select2.inc' %]
406
    <script>
406
    <script nonce="[% Koha.CSPNonce | $raw %]">
407
        $(document).ready(function () {
407
        $(document).ready(function () {
408
            $("#categoriest").kohaTable({
408
            $("#categoriest").kohaTable({
409
                order: [[0, "asc"]],
409
                order: [[0, "asc"]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt (-1 / +1 lines)
Lines 144-150 Link Here
144
    [% Asset.js("js/admin-menu.js") | $raw %]
144
    [% Asset.js("js/admin-menu.js") | $raw %]
145
    [% INCLUDE 'js-date-format.inc' %]
145
    [% INCLUDE 'js-date-format.inc' %]
146
    [% INCLUDE 'datatables.inc' %]
146
    [% INCLUDE 'datatables.inc' %]
147
    <script>
147
    <script nonce="[% Koha.CSPNonce | $raw %]">
148
        const job_statuses = [
148
        const job_statuses = [
149
            {'_id': 'new',       '_str': _("New")},
149
            {'_id': 'new',       '_str': _("New")},
150
            {'_id': 'cancelled', '_str': _("Cancelled")},
150
            {'_id': 'cancelled', '_str': _("Cancelled")},
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-1 / +1 lines)
Lines 452-458 Link Here
452
[% MACRO jsinclude BLOCK %]
452
[% MACRO jsinclude BLOCK %]
453
    [% INCLUDE 'datatables.inc' %]
453
    [% INCLUDE 'datatables.inc' %]
454
    [% Asset.js("js/admin-menu.js") | $raw %]
454
    [% Asset.js("js/admin-menu.js") | $raw %]
455
    <script>
455
    <script nonce="[% Koha.CSPNonce | $raw %]">
456
        var template_path = "[% interface | html %]/[% theme | html %]";
456
        var template_path = "[% interface | html %]/[% theme | html %]";
457
    </script>
457
    </script>
458
    [% Asset.js("js/biblio_framework.js") | $raw %]
458
    [% Asset.js("js/biblio_framework.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt (-2 / +2 lines)
Lines 12-18 Link Here
12
    [% END %]</title
12
    [% END %]</title
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    td {
16
    td {
17
        text-align: center;
17
        text-align: center;
18
    }
18
    }
Lines 134-140 Link Here
134
[% MACRO jsinclude BLOCK %]
134
[% MACRO jsinclude BLOCK %]
135
    [% Asset.js("js/admin-menu.js") | $raw %]
135
    [% Asset.js("js/admin-menu.js") | $raw %]
136
    [% INCLUDE 'datatables.inc' %]
136
    [% INCLUDE 'datatables.inc' %]
137
    <script>
137
    <script nonce="[% Koha.CSPNonce | $raw %]">
138
        $(document).ready(function(){
138
        $(document).ready(function(){
139
            $("#CheckAll").on("click", function(e){
139
            $("#CheckAll").on("click", function(e){
140
                e.preventDefault();
140
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-3 / +3 lines)
Lines 30-36 Link Here
30
[% Asset.css("lib/codemirror/codemirror.min.css") | $raw %]
30
[% Asset.css("lib/codemirror/codemirror.min.css") | $raw %]
31
[% Asset.css("lib/codemirror/lint.min.css") | $raw %]
31
[% Asset.css("lib/codemirror/lint.min.css") | $raw %]
32
[% FILTER collapse %]
32
[% FILTER collapse %]
33
    <style>
33
    <style nonce="[% Koha.CSPNonce | $raw %]">
34
        .opac-library-info {
34
        .opac-library-info {
35
            border: 1px solid #dedede;
35
            border: 1px solid #dedede;
36
            border-radius: 2px;
36
            border-radius: 2px;
Lines 809-815 Link Here
809
    [% Asset.js( "lib/codemirror/css-lint.min.js" ) | $raw %]
809
    [% Asset.js( "lib/codemirror/css-lint.min.js" ) | $raw %]
810
    [% Asset.js( "lib/codemirror/yaml-lint.min.js" ) | $raw %]
810
    [% Asset.js( "lib/codemirror/yaml-lint.min.js" ) | $raw %]
811
    [% Asset.css("lib/codemirror/codemirror.css") | $raw %]
811
    [% Asset.css("lib/codemirror/codemirror.css") | $raw %]
812
    <style>
812
    <style nonce="[% Koha.CSPNonce | $raw %]">
813
        .CodeMirror {
813
        .CodeMirror {
814
            border: 1px solid #eee;
814
            border: 1px solid #eee;
815
            margin: 1em, 1em, 1em, 0;
815
            margin: 1em, 1em, 1em, 0;
Lines 817-823 Link Here
817
            width: 50em;
817
            width: 50em;
818
        }
818
        }
819
    </style>
819
    </style>
820
    <script>
820
    <script nonce="[% Koha.CSPNonce | $raw %]">
821
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %];
821
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %];
822
        var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]';
822
        var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]';
823
823
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt (-1 / +1 lines)
Lines 234-240 Link Here
234
[% MACRO jsinclude BLOCK %]
234
[% MACRO jsinclude BLOCK %]
235
    [% Asset.js("js/admin-menu.js") | $raw %]
235
    [% Asset.js("js/admin-menu.js") | $raw %]
236
    [% INCLUDE 'datatables.inc' %]
236
    [% INCLUDE 'datatables.inc' %]
237
    <script>
237
    <script nonce="[% Koha.CSPNonce | $raw %]">
238
        $(document).ready(function () {
238
        $(document).ready(function () {
239
            var crtable = $("#table_cash_registers").kohaTable({
239
            var crtable = $("#table_cash_registers").kohaTable({
240
                order: [[1, "asc"]],
240
                order: [[1, "asc"]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-3 / +3 lines)
Lines 33-39 Link Here
33
>
33
>
34
[% INCLUDE 'doc-head-close.inc' %]
34
[% INCLUDE 'doc-head-close.inc' %]
35
[% Asset.css("lib/jquery/plugins/multiple-select/multiple-select.min.css") | $raw %]
35
[% Asset.css("lib/jquery/plugins/multiple-select/multiple-select.min.css") | $raw %]
36
<style>
36
<style nonce="[% Koha.CSPNonce | $raw %]">
37
    #enrolmentmessage.hint {
37
    #enrolmentmessage.hint {
38
        display: none;
38
        display: none;
39
    }
39
    }
Lines 862-868 Link Here
862
[% END %]
862
[% END %]
863
863
864
[% MACRO jsinclude BLOCK %]
864
[% MACRO jsinclude BLOCK %]
865
    <script>
865
    <script nonce="[% Koha.CSPNonce | $raw %]">
866
        var TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
866
        var TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
867
        var PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
867
        var PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
868
    </script>
868
    </script>
Lines 872-878 Link Here
872
    [% INCLUDE 'calendar.inc' %]
872
    [% INCLUDE 'calendar.inc' %]
873
    [% INCLUDE 'datatables.inc' %]
873
    [% INCLUDE 'datatables.inc' %]
874
    [% INCLUDE 'select2.inc' %]
874
    [% INCLUDE 'select2.inc' %]
875
    <script>
875
    <script nonce="[% Koha.CSPNonce | $raw %]">
876
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
876
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
877
    </script>
877
    </script>
878
    [% Asset.js("js/categories.js") | $raw %]
878
    [% Asset.js("js/categories.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-1 / +1 lines)
Lines 204-210 Link Here
204
[% MACRO jsinclude BLOCK %]
204
[% MACRO jsinclude BLOCK %]
205
    [% Asset.js("js/admin-menu.js") | $raw %]
205
    [% Asset.js("js/admin-menu.js") | $raw %]
206
    [% INCLUDE 'datatables.inc' %]
206
    [% INCLUDE 'datatables.inc' %]
207
    <script>
207
    <script nonce="[% Koha.CSPNonce | $raw %]">
208
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'cities', 'table_cities', 'json' ) | $raw %];
208
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'cities', 'table_cities', 'json' ) | $raw %];
209
        $(document).ready(function() {
209
        $(document).ready(function() {
210
            var cities_table_url = '/api/v1/cities?';
210
            var cities_table_url = '/api/v1/cities?';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt (-2 / +2 lines)
Lines 33-39 Link Here
33
    [% END %]</title
33
    [% END %]</title
34
>
34
>
35
[% INCLUDE 'doc-head-close.inc' %]
35
[% INCLUDE 'doc-head-close.inc' %]
36
<style>
36
<style nonce="[% Koha.CSPNonce | $raw %]">
37
    #button_add,
37
    #button_add,
38
    .split_regex,
38
    .split_regex,
39
    .split_callnumber {
39
    .split_callnumber {
Lines 437-443 Link Here
437
437
438
[% MACRO jsinclude BLOCK %]
438
[% MACRO jsinclude BLOCK %]
439
    [% Asset.js("js/admin-menu.js") | $raw %]
439
    [% Asset.js("js/admin-menu.js") | $raw %]
440
    <script>
440
    <script nonce="[% Koha.CSPNonce | $raw %]">
441
        function update_regex_block() {
441
        function update_regex_block() {
442
            if ($("#split_routine option:selected").val() == "RegEx") {
442
            if ($("#split_routine option:selected").val() == "RegEx") {
443
                $("#regex_block").show();
443
                $("#regex_block").show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (-2 / +2 lines)
Lines 201-207 Link Here
201
    [% END %]</title
201
    [% END %]</title
202
>
202
>
203
[% INCLUDE 'doc-head-close.inc' %]
203
[% INCLUDE 'doc-head-close.inc' %]
204
<style>
204
<style nonce="[% Koha.CSPNonce | $raw %]">
205
    caption {
205
    caption {
206
        font-size: 115%;
206
        font-size: 115%;
207
    }
207
    }
Lines 403-409 Link Here
403
    [% Asset.js("js/admin-menu.js") | $raw %]
403
    [% Asset.js("js/admin-menu.js") | $raw %]
404
404
405
    [%- IF ( panel.defined ) -%]
405
    [%- IF ( panel.defined ) -%]
406
        <script>
406
        <script nonce="[% Koha.CSPNonce | $raw %]">
407
            $(document).ready( function() {
407
            $(document).ready( function() {
408
                $("#[% panel | uri %]_panel").collapse("show");
408
                $("#[% panel | uri %]_panel").collapse("show");
409
                [%- IF page.defined -%]
409
                [%- IF page.defined -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt (-1 / +1 lines)
Lines 254-260 Link Here
254
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
254
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
255
    [% INCLUDE 'datatables.inc' %]
255
    [% INCLUDE 'datatables.inc' %]
256
    [% INCLUDE 'select2.inc' %]
256
    [% INCLUDE 'select2.inc' %]
257
    <script>
257
    <script nonce="[% Koha.CSPNonce | $raw %]">
258
        $(document).ready(function () {
258
        $(document).ready(function () {
259
            var txtActivefilter = _("Filter system credit types");
259
            var txtActivefilter = _("Filter system credit types");
260
            var txtInactivefilter = _("Show all credit types");
260
            var txtInactivefilter = _("Show all credit types");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
    [% END %]</title
13
    [% END %]</title
14
>
14
>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    .pickup-slot {
17
    .pickup-slot {
18
        border: 2px solid #b9d8d9;
18
        border: 2px solid #b9d8d9;
19
        padding: 0 0.1em;
19
        padding: 0 0.1em;
Lines 173-179 Link Here
173
173
174
[% MACRO jsinclude BLOCK %]
174
[% MACRO jsinclude BLOCK %]
175
    [% Asset.js("js/admin-menu.js") | $raw %]
175
    [% Asset.js("js/admin-menu.js") | $raw %]
176
    <script>
176
    <script nonce="[% Koha.CSPNonce | $raw %]">
177
        let opening_slots = {};
177
        let opening_slots = {};
178
        let slots;
178
        let slots;
179
        [% FOR l IN libraries %]
179
        [% FOR l IN libraries %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-1 / +1 lines)
Lines 266-272 Link Here
266
[% MACRO jsinclude BLOCK %]
266
[% MACRO jsinclude BLOCK %]
267
    [% Asset.js("js/admin-menu.js") | $raw %]
267
    [% Asset.js("js/admin-menu.js") | $raw %]
268
    [% INCLUDE 'datatables.inc' %]
268
    [% INCLUDE 'datatables.inc' %]
269
    <script>
269
    <script nonce="[% Koha.CSPNonce | $raw %]">
270
        function check_currency(val) {
270
        function check_currency(val) {
271
            if ( val == 1.0 ) {
271
            if ( val == 1.0 ) {
272
                $("#active").prop('disabled', false);
272
                $("#active").prop('disabled', false);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-1 / +1 lines)
Lines 271-277 Link Here
271
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
271
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
272
    [% INCLUDE 'datatables.inc' %]
272
    [% INCLUDE 'datatables.inc' %]
273
    [% INCLUDE 'select2.inc' %]
273
    [% INCLUDE 'select2.inc' %]
274
    <script>
274
    <script nonce="[% Koha.CSPNonce | $raw %]">
275
        $(document).ready(function () {
275
        $(document).ready(function () {
276
            var txtActivefilter = _("Filter system debit types");
276
            var txtActivefilter = _("Filter system debit types");
277
            var txtInactivefilter = _("Show all debit types");
277
            var txtInactivefilter = _("Show all debit types");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt (-1 / +1 lines)
Lines 206-212 Link Here
206
[% MACRO jsinclude BLOCK %]
206
[% MACRO jsinclude BLOCK %]
207
    [% Asset.js("js/admin-menu.js") | $raw %]
207
    [% Asset.js("js/admin-menu.js") | $raw %]
208
    [% INCLUDE 'datatables.inc' %]
208
    [% INCLUDE 'datatables.inc' %]
209
    <script>
209
    <script nonce="[% Koha.CSPNonce | $raw %]">
210
        $(document).ready(function () {
210
        $(document).ready(function () {
211
            $("#table_desks").kohaTable({
211
            $("#table_desks").kohaTable({
212
                order: [[1, "asc"]],
212
                order: [[1, "asc"]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt (-1 / +1 lines)
Lines 79-85 Link Here
79
[% MACRO jsinclude BLOCK %]
79
[% MACRO jsinclude BLOCK %]
80
    [% Asset.js("js/admin-menu.js") | $raw %]
80
    [% Asset.js("js/admin-menu.js") | $raw %]
81
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
81
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
82
    <script>
82
    <script nonce="[% Koha.CSPNonce | $raw %]">
83
        $(document).ready(function () {
83
        $(document).ready(function () {
84
            $(".pluginlist").each((i, e) => {
84
            $(".pluginlist").each((i, e) => {
85
                Sortable.create(e, {
85
                Sortable.create(e, {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-1 / +1 lines)
Lines 409-415 Link Here
409
[% MACRO jsinclude BLOCK %]
409
[% MACRO jsinclude BLOCK %]
410
    [% Asset.js("js/admin-menu.js") | $raw %]
410
    [% Asset.js("js/admin-menu.js") | $raw %]
411
    [% INCLUDE 'datatables.inc' %]
411
    [% INCLUDE 'datatables.inc' %]
412
    <script>
412
    <script nonce="[% Koha.CSPNonce | $raw %]">
413
        $(document).ready(function(){
413
        $(document).ready(function(){
414
            var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'edi_accounts', 'edi_accounts_table', 'json' ) | $raw %];
414
            var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'edi_accounts', 'edi_accounts_table', 'json' ) | $raw %];
415
            $("#edi_accounts_table").kohaTable(
415
            $("#edi_accounts_table").kohaTable(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/file_transports.tt (-1 / +1 lines)
Lines 459-465 Link Here
459
    [% Asset.js("js/admin-menu.js") | $raw %]
459
    [% Asset.js("js/admin-menu.js") | $raw %]
460
    [% Asset.js("js/transport_status.js") | $raw %]
460
    [% Asset.js("js/transport_status.js") | $raw %]
461
    [% INCLUDE 'datatables.inc' %]
461
    [% INCLUDE 'datatables.inc' %]
462
    <script>
462
    <script nonce="[% Koha.CSPNonce | $raw %]">
463
        $(document).ready(function() {
463
        $(document).ready(function() {
464
464
465
            var file_transports_url = '/api/v1/config/file_transports';
465
            var file_transports_url = '/api/v1/config/file_transports';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt (-1 / +1 lines)
Lines 327-333 Link Here
327
[% MACRO jsinclude BLOCK %]
327
[% MACRO jsinclude BLOCK %]
328
    [% Asset.js("js/admin-menu.js") | $raw %]
328
    [% Asset.js("js/admin-menu.js") | $raw %]
329
    [% INCLUDE 'datatables.inc' %]
329
    [% INCLUDE 'datatables.inc' %]
330
    <script>
330
    <script nonce="[% Koha.CSPNonce | $raw %]">
331
        $(document).ready(function() {
331
        $(document).ready(function() {
332
332
333
            var identity_provider_domains_url = '/api/v1/auth/identity_providers/[%- identity_provider_id | html -%]/domains';
333
            var identity_provider_domains_url = '/api/v1/auth/identity_providers/[%- identity_provider_id | html -%]/domains';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt (-1 / +1 lines)
Lines 406-412 Link Here
406
[% MACRO jsinclude BLOCK %]
406
[% MACRO jsinclude BLOCK %]
407
    [% Asset.js("js/admin-menu.js") | $raw %]
407
    [% Asset.js("js/admin-menu.js") | $raw %]
408
    [% INCLUDE 'datatables.inc' %]
408
    [% INCLUDE 'datatables.inc' %]
409
    <script>
409
    <script nonce="[% Koha.CSPNonce | $raw %]">
410
        $(document).ready(function () {
410
        $(document).ready(function () {
411
            var identity_providers_url = "/api/v1/auth/identity_providers";
411
            var identity_providers_url = "/api/v1/auth/identity_providers";
412
            window.identity_providers = $("#identity_providers").kohaTable({
412
            window.identity_providers = $("#identity_providers").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% FILTER collapse %]
15
[% FILTER collapse %]
16
    <style>
16
    <style nonce="[% Koha.CSPNonce | $raw %]">
17
        table.grid thead th {
17
        table.grid thead th {
18
            vertical-align: bottom;
18
            vertical-align: bottom;
19
        }
19
        }
Lines 173-179 Link Here
173
173
174
[% MACRO jsinclude BLOCK %]
174
[% MACRO jsinclude BLOCK %]
175
    [% Asset.js("js/admin-menu.js") | $raw %]
175
    [% Asset.js("js/admin-menu.js") | $raw %]
176
    <script>
176
    <script nonce="[% Koha.CSPNonce | $raw %]">
177
        var $branch = "[% branch | html %]";
177
        var $branch = "[% branch | html %]";
178
        $(function(){
178
        $(function(){
179
179
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-2 / +2 lines)
Lines 36-42 Link Here
36
>
36
>
37
[% INCLUDE 'doc-head-close.inc' %]
37
[% INCLUDE 'doc-head-close.inc' %]
38
[% FILTER collapse %]
38
[% FILTER collapse %]
39
    <style>
39
    <style nonce="[% Koha.CSPNonce | $raw %]">
40
        fieldset.rows div.toptabs li {
40
        fieldset.rows div.toptabs li {
41
            clear: none;
41
            clear: none;
42
            margin-right: 0.4em;
42
            margin-right: 0.4em;
Lines 554-560 Link Here
554
    [% Asset.js("js/admin-menu.js") | $raw %]
554
    [% Asset.js("js/admin-menu.js") | $raw %]
555
    [% INCLUDE 'datatables.inc' %]
555
    [% INCLUDE 'datatables.inc' %]
556
    [% INCLUDE 'select2.inc' %]
556
    [% INCLUDE 'select2.inc' %]
557
    <script>
557
    <script nonce="[% Koha.CSPNonce | $raw %]">
558
        $(document).ready(function() {
558
        $(document).ready(function() {
559
           var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
559
           var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
560
           [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
560
           [% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt (-1 / +1 lines)
Lines 81-87 Link Here
81
[% MACRO jsinclude BLOCK %]
81
[% MACRO jsinclude BLOCK %]
82
    [% INCLUDE 'datatables.inc' %]
82
    [% INCLUDE 'datatables.inc' %]
83
    [% Asset.js("js/admin-menu.js") | $raw %]
83
    [% Asset.js("js/admin-menu.js") | $raw %]
84
    <script>
84
    <script nonce="[% Koha.CSPNonce | $raw %]">
85
        function AddFld(kohafield) {
85
        function AddFld(kohafield) {
86
            var fieldstr = prompt(
86
            var fieldstr = prompt(
87
                _("Adding a mapping for: %s.").format(kohafield) +
87
                _("Adding a mapping for: %s.").format(kohafield) +
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt (-1 / +1 lines)
Lines 305-311 Link Here
305
305
306
[% MACRO jsinclude BLOCK %]
306
[% MACRO jsinclude BLOCK %]
307
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
307
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
308
    <script>
308
    <script nonce="[% Koha.CSPNonce | $raw %]">
309
        $(document).ready(function () {
309
        $(document).ready(function () {
310
            $(".library-groups").treetable({
310
            $(".library-groups").treetable({
311
                expandable: true,
311
                expandable: true,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
    [% END %]
16
    [% END %]
17
</title>
17
</title>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    #localization {
20
    #localization {
21
        margin-top: 1em;
21
        margin-top: 1em;
22
    }
22
    }
Lines 141-147 Link Here
141
141
142
[% MACRO jsinclude BLOCK %]
142
[% MACRO jsinclude BLOCK %]
143
    [% INCLUDE 'datatables.inc' %]
143
    [% INCLUDE 'datatables.inc' %]
144
    <script>
144
    <script nonce="[% Koha.CSPNonce | $raw %]">
145
        function show_message( params ) {
145
        function show_message( params ) {
146
            var type = params.type;
146
            var type = params.type;
147
            var data = params.data;
147
            var data = params.data;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
>
15
>
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
17
18
<style>
18
<style nonce="[% Koha.CSPNonce | $raw %]">
19
    #tag-error {
19
    #tag-error {
20
        display: block;
20
        display: block;
21
        margin-top: 5px;
21
        margin-top: 5px;
Lines 318-324 Link Here
318
[% MACRO jsinclude BLOCK %]
318
[% MACRO jsinclude BLOCK %]
319
    [% Asset.js("js/admin-menu.js") | $raw %]
319
    [% Asset.js("js/admin-menu.js") | $raw %]
320
    [% INCLUDE 'datatables.inc' %]
320
    [% INCLUDE 'datatables.inc' %]
321
    <script>
321
    <script nonce="[% Koha.CSPNonce | $raw %]">
322
        $(document).ready(function(){
322
        $(document).ready(function(){
323
323
324
            var validator = $( "#marc-overlay-rules-form" ).validate({
324
            var validator = $( "#marc-overlay-rules-form" ).validate({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_order_accounts.tt (-1 / +1 lines)
Lines 286-292 Link Here
286
[% MACRO jsinclude BLOCK %]
286
[% MACRO jsinclude BLOCK %]
287
    [% Asset.js("js/admin-menu.js") | $raw %]
287
    [% Asset.js("js/admin-menu.js") | $raw %]
288
    [% INCLUDE 'select2.inc' %]
288
    [% INCLUDE 'select2.inc' %]
289
    <script>
289
    <script nonce="[% Koha.CSPNonce | $raw %]">
290
        $(document).ready(function () {
290
        $(document).ready(function () {
291
            function display_vendor(vendor) {
291
            function display_vendor(vendor) {
292
                var $text;
292
                var $text;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-2 / +2 lines)
Lines 31-37 Link Here
31
    [% END %]</title
31
    [% END %]</title
32
>
32
>
33
[% INCLUDE 'doc-head-close.inc' %]
33
[% INCLUDE 'doc-head-close.inc' %]
34
<style>
34
<style nonce="[% Koha.CSPNonce | $raw %]">
35
    .constraints::after {
35
    .constraints::after {
36
        content: " ";
36
        content: " ";
37
        clear: both;
37
        clear: both;
Lines 438-444 Link Here
438
    [% INCLUDE 'datatables.inc' %]
438
    [% INCLUDE 'datatables.inc' %]
439
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
439
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
440
    [% Asset.js("js/admin-menu.js") | $raw %]
440
    [% Asset.js("js/admin-menu.js") | $raw %]
441
    <script>
441
    <script nonce="[% Koha.CSPNonce | $raw %]">
442
        var tagsubfield = "[% tagsubfield | html %]";
442
        var tagsubfield = "[% tagsubfield | html %]";
443
    </script>
443
    </script>
444
    [% Asset.js("js/marc_subfields_structure.js") | $raw %]
444
    [% Asset.js("js/marc_subfields_structure.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-1 / +1 lines)
Lines 330-336 Link Here
330
[% MACRO jsinclude BLOCK %]
330
[% MACRO jsinclude BLOCK %]
331
    [% INCLUDE 'datatables.inc' %]
331
    [% INCLUDE 'datatables.inc' %]
332
    [% Asset.js("js/admin-menu.js") | $raw %]
332
    [% Asset.js("js/admin-menu.js") | $raw %]
333
    <script>
333
    <script nonce="[% Koha.CSPNonce | $raw %]">
334
        $(document).ready(function () {
334
        $(document).ready(function () {
335
            $("#table_marctagstructure").kohaTable({
335
            $("#table_marctagstructure").kohaTable({
336
                pagingType: "full",
336
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt (-2 / +2 lines)
Lines 66-72 Link Here
66
    </select>
66
    </select>
67
[% END %]
67
[% END %]
68
68
69
<style>
69
<style nonce="[% Koha.CSPNonce | $raw %]">
70
    fieldset.rows fieldset.rows {
70
    fieldset.rows fieldset.rows {
71
        border-width: 0;
71
        border-width: 0;
72
    }
72
    }
Lines 731-737 Link Here
731
731
732
[% MACRO jsinclude BLOCK %]
732
[% MACRO jsinclude BLOCK %]
733
    [% Asset.js("js/admin-menu.js") | $raw %]
733
    [% Asset.js("js/admin-menu.js") | $raw %]
734
    <script>
734
    <script nonce="[% Koha.CSPNonce | $raw %]">
735
        var maxMatchPoint = [% max_matchpoint | html %];
735
        var maxMatchPoint = [% max_matchpoint | html %];
736
        var maxMatchCheck = [% max_matchcheck | html %];
736
        var maxMatchCheck = [% max_matchcheck | html %];
737
737
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt (-1 / +1 lines)
Lines 184-190 Link Here
184
    [% IF op == 'list' %]
184
    [% IF op == 'list' %]
185
        [% INCLUDE 'datatables.inc' %]
185
        [% INCLUDE 'datatables.inc' %]
186
    [% END %]
186
    [% END %]
187
    <script>
187
    <script nonce="[% Koha.CSPNonce | $raw %]">
188
        [% IF op == 'edit_form' || op == 'add_form' %]
188
        [% IF op == 'edit_form' || op == 'add_form' %]
189
            $(document).ready(function(){
189
            $(document).ready(function(){
190
                // Update selects for dataformat and recordtype
190
                // Update selects for dataformat and recordtype
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt (-1 / +1 lines)
Lines 149-155 Link Here
149
149
150
[% MACRO jsinclude BLOCK %]
150
[% MACRO jsinclude BLOCK %]
151
    [% Asset.js("js/admin-menu.js") | $raw %]
151
    [% Asset.js("js/admin-menu.js") | $raw %]
152
    <script>
152
    <script nonce="[% Koha.CSPNonce | $raw %]">
153
        $(document).ready(function () {
153
        $(document).ready(function () {
154
            $("#mappingform").submit(function () {
154
            $("#mappingform").submit(function () {
155
                hideDialogBox();
155
                hideDialogBox();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt (-1 / +1 lines)
Lines 164-170 Link Here
164
164
165
[% MACRO jsinclude BLOCK %]
165
[% MACRO jsinclude BLOCK %]
166
    [% Asset.js("js/admin-menu.js") | $raw %]
166
    [% Asset.js("js/admin-menu.js") | $raw %]
167
    <script>
167
    <script nonce="[% Koha.CSPNonce | $raw %]">
168
        function newDescField() {
168
        function newDescField() {
169
            $("#adddescription").before(
169
            $("#adddescription").before(
170
                "<li><label>" +
170
                "<li><label>" +
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/overdrive.tt (-1 / +1 lines)
Lines 70-76 Link Here
70
[% MACRO jsinclude BLOCK %]
70
[% MACRO jsinclude BLOCK %]
71
    [% Asset.js("js/admin-menu.js") | $raw %]
71
    [% Asset.js("js/admin-menu.js") | $raw %]
72
    [% INCLUDE 'datatables.inc' %]
72
    [% INCLUDE 'datatables.inc' %]
73
    <script>
73
    <script nonce="[% Koha.CSPNonce | $raw %]">
74
        $(document).ready(function () {
74
        $(document).ready(function () {
75
            $("#od_info").kohaTable({
75
            $("#od_info").kohaTable({
76
                pagingType: "full",
76
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-1 / +1 lines)
Lines 407-413 Link Here
407
    [% Asset.js("js/admin-menu.js") | $raw %]
407
    [% Asset.js("js/admin-menu.js") | $raw %]
408
    [% INCLUDE 'datatables.inc' %]
408
    [% INCLUDE 'datatables.inc' %]
409
    [% INCLUDE 'select2.inc' %]
409
    [% INCLUDE 'select2.inc' %]
410
    <script>
410
    <script nonce="[% Koha.CSPNonce | $raw %]">
411
        const opac_display = document.getElementById("opac_display");
411
        const opac_display = document.getElementById("opac_display");
412
        const opac_editable = document.getElementById("opac_editable");
412
        const opac_editable = document.getElementById("opac_editable");
413
        const opac_mandatory = document.getElementById("opac_mandatory");
413
        const opac_mandatory = document.getElementById("opac_mandatory");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-1 / +1 lines)
Lines 301-307 Link Here
301
    [% Asset.js( "lib/codemirror/css-lint.min.js" ) | $raw %]
301
    [% Asset.js( "lib/codemirror/css-lint.min.js" ) | $raw %]
302
    [% Asset.js( "lib/codemirror/yaml-lint.min.js" ) | $raw %]
302
    [% Asset.js( "lib/codemirror/yaml-lint.min.js" ) | $raw %]
303
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
303
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
304
    <script>
304
    <script nonce="[% Koha.CSPNonce | $raw %]">
305
        var themelang = "[% themelang | html %]";
305
        var themelang = "[% themelang | html %]";
306
        $(document).ready(function(){
306
        $(document).ready(function(){
307
            $("select[multiple='multiple']").multipleSelect( {
307
            $("select[multiple='multiple']").multipleSelect( {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt (-1 / +1 lines)
Lines 236-242 Link Here
236
[% MACRO jsinclude BLOCK %]
236
[% MACRO jsinclude BLOCK %]
237
    [% Asset.js("js/admin-menu.js") | $raw %]
237
    [% Asset.js("js/admin-menu.js") | $raw %]
238
    [% INCLUDE 'datatables.inc' %]
238
    [% INCLUDE 'datatables.inc' %]
239
    <script>
239
    <script nonce="[% Koha.CSPNonce | $raw %]">
240
        var MSG_DUPLICATE_CODE = _("Restriction type code is already in use");
240
        var MSG_DUPLICATE_CODE = _("Restriction type code is already in use");
241
        var MSG_DUPLICATE_DISPLAY_TEXT = _("Restriction type label is already in use");
241
        var MSG_DUPLICATE_DISPLAY_TEXT = _("Restriction type label is already in use");
242
        var existing = {
242
        var existing = {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/search_filters.tt (-1 / +1 lines)
Lines 85-91 Link Here
85
    [% Asset.css("css/humanmsg.css") | $raw %]
85
    [% Asset.css("css/humanmsg.css") | $raw %]
86
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
86
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
87
    [% INCLUDE 'datatables.inc' %]
87
    [% INCLUDE 'datatables.inc' %]
88
    <script>
88
    <script nonce="[% Koha.CSPNonce | $raw %]">
89
        let filters_table;
89
        let filters_table;
90
        $(document).ready(function () {
90
        $(document).ready(function () {
91
            filters_table = $("#search_filters_table").kohaTable({
91
            filters_table = $("#search_filters_table").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-1 / +1 lines)
Lines 12-18 Link Here
12
    [% END %]</title
12
    [% END %]</title
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    a.add,
16
    a.add,
17
    a.delete {
17
    a.delete {
18
        cursor: pointer;
18
        cursor: pointer;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt (-1 / +1 lines)
Lines 155-161 Link Here
155
155
156
[% MACRO jsinclude BLOCK %]
156
[% MACRO jsinclude BLOCK %]
157
    [% Asset.js("js/admin-menu.js") | $raw %]
157
    [% Asset.js("js/admin-menu.js") | $raw %]
158
    <script>
158
    <script nonce="[% Koha.CSPNonce | $raw %]">
159
        $(document).ready(function () {
159
        $(document).ready(function () {
160
            $("#mana_token").submit(function () {
160
            $("#mana_token").submit(function () {
161
                return confirm(_("This will delete the Mana KB token from Koha. Do you want to continue?"));
161
                return confirm(_("This will delete the Mana KB token from Koha. Do you want to continue?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +1 lines)
Lines 1441-1447 Link Here
1441
    [% INCLUDE 'datatables.inc' %]
1441
    [% INCLUDE 'datatables.inc' %]
1442
    [% INCLUDE 'calendar.inc' %]
1442
    [% INCLUDE 'calendar.inc' %]
1443
    [% INCLUDE 'format_price.inc' %]
1443
    [% INCLUDE 'format_price.inc' %]
1444
    <script>
1444
    <script nonce="[% Koha.CSPNonce | $raw %]">
1445
        $(document).ready(function () {
1445
        $(document).ready(function () {
1446
            $("#default-circulation-rules").kohaTable({
1446
            $("#default-circulation-rules").kohaTable({
1447
                columnDefs: [
1447
                columnDefs: [
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-1 / +1 lines)
Lines 319-325 Link Here
319
[% MACRO jsinclude BLOCK %]
319
[% MACRO jsinclude BLOCK %]
320
    [% Asset.js("js/admin-menu.js") | $raw %]
320
    [% Asset.js("js/admin-menu.js") | $raw %]
321
    [% INCLUDE 'datatables.inc' %]
321
    [% INCLUDE 'datatables.inc' %]
322
    <script>
322
    <script nonce="[% Koha.CSPNonce | $raw %]">
323
        $(document).ready(function() {
323
        $(document).ready(function() {
324
324
325
            var smtp_servers_url = '/api/v1/config/smtp_servers';
325
            var smtp_servers_url = '/api/v1/config/smtp_servers';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt (-1 / +1 lines)
Lines 88-94 Link Here
88
88
89
[% MACRO jsinclude BLOCK %]
89
[% MACRO jsinclude BLOCK %]
90
    [% Asset.js("js/admin-menu.js") | $raw %]
90
    [% Asset.js("js/admin-menu.js") | $raw %]
91
    <script>
91
    <script nonce="[% Koha.CSPNonce | $raw %]">
92
        $(document).ready(function () {
92
        $(document).ready(function () {
93
            $("#form01").submit(function (event) {
93
            $("#form01").submit(function (event) {
94
                if (window.opener) {
94
                if (window.opener) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt (-1 / +1 lines)
Lines 87-93 Link Here
87
<!-- /.main.container-fluid -->
87
<!-- /.main.container-fluid -->
88
88
89
[% MACRO jsinclude BLOCK %]
89
[% MACRO jsinclude BLOCK %]
90
    <script>
90
    <script nonce="[% Koha.CSPNonce | $raw %]">
91
        $(document).ready(function () {
91
        $(document).ready(function () {
92
            $("#form01").submit(function (event) {
92
            $("#form01").submit(function (event) {
93
                if (window.opener) {
93
                if (window.opener) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt (-2 / +2 lines)
Lines 493-499 Link Here
493
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
493
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
494
    [% IF ( else ) %]
494
    [% IF ( else ) %]
495
        [% INCLUDE 'datatables.inc' %]
495
        [% INCLUDE 'datatables.inc' %]
496
        <script>
496
        <script nonce="[% Koha.CSPNonce | $raw %]">
497
            $(document).ready(function() {
497
            $(document).ready(function() {
498
               [% IF ( loop ) %]
498
               [% IF ( loop ) %]
499
                   $("#sysprefst").kohaTable({
499
                   $("#sysprefst").kohaTable({
Lines 504-510 Link Here
504
            });
504
            });
505
        </script>
505
        </script>
506
    [% END %]
506
    [% END %]
507
    <script>
507
    <script nonce="[% Koha.CSPNonce | $raw %]">
508
        [% IF ( add_form ) %]
508
        [% IF ( add_form ) %]
509
            $(document).ready(function() {
509
            $(document).ready(function() {
510
                $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
510
                $('.variabletype').css({ color: "#0000CC", cursor: "pointer" });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
    [% END %]</title
15
    [% END %]</title
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
<style>
18
<style nonce="[% Koha.CSPNonce | $raw %]">
19
    td {
19
    td {
20
        text-align: center;
20
        text-align: center;
21
    }
21
    }
Lines 146-152 Link Here
146
[% MACRO jsinclude BLOCK %]
146
[% MACRO jsinclude BLOCK %]
147
    [% Asset.js("js/admin-menu.js") | $raw %]
147
    [% Asset.js("js/admin-menu.js") | $raw %]
148
    [% INCLUDE 'datatables.inc' %]
148
    [% INCLUDE 'datatables.inc' %]
149
    <script>
149
    <script nonce="[% Koha.CSPNonce | $raw %]">
150
        const branchTransferLimitsType = "[% BranchTransferLimitsType | html %]";
150
        const branchTransferLimitsType = "[% BranchTransferLimitsType | html %]";
151
        const val_type = branchTransferLimitsType == "itemtype" ? "item_type" : "collection_code";
151
        const val_type = branchTransferLimitsType == "itemtype" ? "item_type" : "collection_code";
152
        const branches = [% To.json(branches) | $raw %];
152
        const branches = [% To.json(branches) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt (-2 / +2 lines)
Lines 12-18 Link Here
12
    [% END %]</title
12
    [% END %]</title
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    .disabled-transfer {
16
    .disabled-transfer {
17
        background-color: #ff8888;
17
        background-color: #ff8888;
18
    }
18
    }
Lines 105-111 Link Here
105
105
106
[% MACRO jsinclude BLOCK %]
106
[% MACRO jsinclude BLOCK %]
107
    [% Asset.js("js/admin-menu.js") | $raw %]
107
    [% Asset.js("js/admin-menu.js") | $raw %]
108
    <script>
108
    <script nonce="[% Koha.CSPNonce | $raw %]">
109
        function check_transport_cost(e) {
109
        function check_transport_cost(e) {
110
            var val = e.value;
110
            var val = e.value;
111
            if (val && val != "" && !isNaN(parseFloat(val)) && val >= 0.0) {
111
            if (val && val != "" && !isNaN(parseFloat(val)) && val >= 0.0) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt (-1 / +1 lines)
Lines 264-270 Link Here
264
    [% INCLUDE 'calendar.inc' %]
264
    [% INCLUDE 'calendar.inc' %]
265
    [% Asset.js("js/admin-menu.js") | $raw %]
265
    [% Asset.js("js/admin-menu.js") | $raw %]
266
    [% Asset.js("/lib/leaflet/leaflet.js") | $raw %]
266
    [% Asset.js("/lib/leaflet/leaflet.js") | $raw %]
267
    <script>
267
    <script nonce="[% Koha.CSPNonce | $raw %]">
268
        function positionMap() {
268
        function positionMap() {
269
            var tbh = $("#mapid");
269
            var tbh = $("#mapid");
270
            var mapContainer = tbh.parent();
270
            var mapContainer = tbh.parent();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt (-1 / +1 lines)
Lines 272-278 Link Here
272
    [% IF op == 'list' %]
272
    [% IF op == 'list' %]
273
        [% INCLUDE 'datatables.inc' %]
273
        [% INCLUDE 'datatables.inc' %]
274
    [% END %]
274
    [% END %]
275
    <script>
275
    <script nonce="[% Koha.CSPNonce | $raw %]">
276
        [% IF op == 'edit_form' || op == 'add_form' %]
276
        [% IF op == 'edit_form' || op == 'add_form' %]
277
            $(document).ready(function(){
277
            $(document).ready(function(){
278
                // Update selects for syntax, encoding and recordtype
278
                // Update selects for syntax, encoding and recordtype
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (-1 / +1 lines)
Lines 291-297 Link Here
291
<!-- /.main.container-fluid -->
291
<!-- /.main.container-fluid -->
292
292
293
[% MACRO jsinclude BLOCK %]
293
[% MACRO jsinclude BLOCK %]
294
    <script>
294
    <script nonce="[% Koha.CSPNonce | $raw %]">
295
        $(document).ready( function() {
295
        $(document).ready( function() {
296
            if ( document.location.hash ) {
296
            if ( document.location.hash ) {
297
                const input = $('<input name="auth_forwarded_hash" type="hidden">')
297
                const input = $('<input name="auth_forwarded_hash" type="hidden">')
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt (-1 / +1 lines)
Lines 20-26 Link Here
20
<!-- /.main.container-fluid -->
20
<!-- /.main.container-fluid -->
21
21
22
[% MACRO jsinclude BLOCK %]
22
[% MACRO jsinclude BLOCK %]
23
    <script>
23
    <script nonce="[% Koha.CSPNonce | $raw %]">
24
        var index = "[% index | html %]";
24
        var index = "[% index | html %]";
25
        var authtypecode = "[% authtypecode | html %]";
25
        var authtypecode = "[% authtypecode | html %]";
26
    </script>
26
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt (-1 / +1 lines)
Lines 40-46 Link Here
40
    [%- END -%]
40
    [%- END -%]
41
[% END %]
41
[% END %]
42
[% MACRO jsinclude BLOCK %]
42
[% MACRO jsinclude BLOCK %]
43
    <script>
43
    <script nonce="[% Koha.CSPNonce | $raw %]">
44
        const searchType = "[% marclist | html %]";
44
        const searchType = "[% marclist | html %]";
45
    </script>
45
    </script>
46
    [% Asset.js("js/authorities.js") | $raw %]
46
    [% Asset.js("js/authorities.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-3 / +3 lines)
Lines 16-22 Link Here
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'select2.inc' %]
18
[% INCLUDE 'select2.inc' %]
19
<script>
19
<script nonce="[% Koha.CSPNonce | $raw %]">
20
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
20
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
21
        var auth_values_creation = 1;
21
        var auth_values_creation = 1;
22
    [% ELSE %]
22
    [% ELSE %]
Lines 26-32 Link Here
26
</script>
26
</script>
27
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
27
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
28
[% Asset.js("js/cataloging.js") | $raw %]
28
[% Asset.js("js/cataloging.js") | $raw %]
29
<script>
29
<script nonce="[% Koha.CSPNonce | $raw %]">
30
    $(window).load(function(){
30
    $(window).load(function(){
31
        $("#loading").hide();
31
        $("#loading").hide();
32
    });
32
    });
Lines 384-390 Link Here
384
    });
384
    });
385
</script>
385
</script>
386
[% Asset.css("css/addbiblio.css") | $raw %]
386
[% Asset.css("css/addbiblio.css") | $raw %]
387
<style>
387
<style nonce="[% Koha.CSPNonce | $raw %]">
388
    #auloadpreview {
388
    #auloadpreview {
389
        font-family: monospace;
389
        font-family: monospace;
390
    }
390
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
[% END %]
17
[% END %]
18
18
19
[% MACRO jsinclude BLOCK %]
19
[% MACRO jsinclude BLOCK %]
20
    <script>
20
    <script nonce="[% Koha.CSPNonce | $raw %]">
21
        $(document).ready(function(){
21
        $(document).ready(function(){
22
            [% IF rancor %]
22
            [% IF rancor %]
23
                function RancorReplaceField( new_text, ind_1, ind_2 ){
23
                function RancorReplaceField( new_text, ind_1, ind_2 ){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-2 / +2 lines)
Lines 134-140 Link Here
134
[% END %]
134
[% END %]
135
135
136
[% MACRO jsinclude BLOCK %]
136
[% MACRO jsinclude BLOCK %]
137
    <script>
137
    <script nonce="[% Koha.CSPNonce | $raw %]">
138
        const authid = "[% authid | html %]";
138
        const authid = "[% authid | html %]";
139
        const searchType = "[% marclist | html %]";
139
        const searchType = "[% marclist | html %]";
140
    </script>
140
    </script>
Lines 142-148 Link Here
142
    [% IF ( displayhierarchy ) %]
142
    [% IF ( displayhierarchy ) %]
143
        [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
143
        [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
144
    [% END %]
144
    [% END %]
145
    <script>
145
    <script nonce="[% Koha.CSPNonce | $raw %]">
146
        $(document).ready(function() {
146
        $(document).ready(function() {
147
           if( $("#authoritiestabs .tab-pane.active").length < 1 ){
147
           if( $("#authoritiestabs .tab-pane.active").length < 1 ){
148
               let tab_object = [];
148
               let tab_object = [];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt (-3 / +3 lines)
Lines 12-18 Link Here
12
    [% END %]</title
12
    [% END %]</title
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    div.record ul,
16
    div.record ul,
17
    div.record li {
17
    div.record li {
18
        float: none;
18
        float: none;
Lines 140-151 Link Here
140
[% END %]
140
[% END %]
141
141
142
[% MACRO jsinclude BLOCK %]
142
[% MACRO jsinclude BLOCK %]
143
    <script>
143
    <script nonce="[% Koha.CSPNonce | $raw %]">
144
        const searchType = "";
144
        const searchType = "";
145
    </script>
145
    </script>
146
    [% Asset.js("js/authorities.js") | $raw %]
146
    [% Asset.js("js/authorities.js") | $raw %]
147
    [% Asset.js("js/merge-record.js") | $raw %]
147
    [% Asset.js("js/merge-record.js") | $raw %]
148
    <script>
148
    <script nonce="[% Koha.CSPNonce | $raw %]">
149
        // When submiting the form
149
        // When submiting the form
150
            function mergeformsubmit() {
150
            function mergeformsubmit() {
151
                $('#tabs').remove();
151
                $('#tabs').remove();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt (-3 / +3 lines)
Lines 13-19 Link Here
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% Asset.css("css/addbiblio.css") | $raw %]
15
[% Asset.css("css/addbiblio.css") | $raw %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    .usefor {
17
    .usefor {
18
        padding: 0;
18
        padding: 0;
19
        margin: 0;
19
        margin: 0;
Lines 142-148 Link Here
142
[% INCLUDE 'authority-detail-modal.inc' %]
142
[% INCLUDE 'authority-detail-modal.inc' %]
143
143
144
[% MACRO jsinclude BLOCK %]
144
[% MACRO jsinclude BLOCK %]
145
    <script>
145
    <script nonce="[% Koha.CSPNonce | $raw %]">
146
        var index = "[% index | html %]";
146
        var index = "[% index | html %]";
147
        var authtypecode = "[% authtypecode | html %]";
147
        var authtypecode = "[% authtypecode | html %]";
148
        const searchType = "[% marclist | html %]";
148
        const searchType = "[% marclist | html %]";
Lines 150-156 Link Here
150
    </script>
150
    </script>
151
    [% Asset.js("js/auth-finder-search.js") | $raw %]
151
    [% Asset.js("js/auth-finder-search.js") | $raw %]
152
    [% Asset.js("js/authorities-detail-modal.js") | $raw %]
152
    [% Asset.js("js/authorities-detail-modal.js") | $raw %]
153
    <script>
153
    <script nonce="[% Koha.CSPNonce | $raw %]">
154
        function jumpfull(page){
154
        function jumpfull(page){
155
            window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
155
            window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
156
        }
156
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% Asset.css("css/addbiblio.css") | $raw %]
15
[% Asset.css("css/addbiblio.css") | $raw %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    .usefor {
17
    .usefor {
18
        padding: 0;
18
        padding: 0;
19
        margin: 0;
19
        margin: 0;
Lines 155-161 Link Here
155
[% END %]
155
[% END %]
156
156
157
[% MACRO jsinclude BLOCK %]
157
[% MACRO jsinclude BLOCK %]
158
    <script>
158
    <script nonce="[% Koha.CSPNonce | $raw %]">
159
        const searchType = "[% marclist | html %]";
159
        const searchType = "[% marclist | html %]";
160
        const template_path = "[% interface | html %]/[% theme | html %]";
160
        const template_path = "[% interface | html %]/[% theme | html %]";
161
    </script>
161
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt (-1 / +1 lines)
Lines 9-15 Link Here
9
9
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
<!-- prettier-ignore-start -->
11
<!-- prettier-ignore-start -->
12
    <style>
12
    <style nonce="[% Koha.CSPNonce | $raw %]">
13
        <!--
13
        <!--
14
        .message { page-break-after: always }
14
        .message { page-break-after: always }
15
        pre { font-family: monospace }
15
        pre { font-family: monospace }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt (-3 / +3 lines)
Lines 56-72 Link Here
56
    [% INCLUDE 'js-date-format.inc' %]
56
    [% INCLUDE 'js-date-format.inc' %]
57
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
57
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
58
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
58
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
59
    <script>
59
    <script nonce="[% Koha.CSPNonce | $raw %]">
60
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
60
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
61
    </script>
61
    </script>
62
    <script>
62
    <script nonce="[% Koha.CSPNonce | $raw %]">
63
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
63
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
64
    </script>
64
    </script>
65
    [% Asset.js("js/modals/place_booking.js") | $raw %]
65
    [% Asset.js("js/modals/place_booking.js") | $raw %]
66
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
66
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
67
    [% Asset.js("js/combobox.js") | $raw %]
67
    [% Asset.js("js/combobox.js") | $raw %]
68
    [% Asset.js("js/additional-filters.js") | $raw %]
68
    [% Asset.js("js/additional-filters.js") | $raw %]
69
    <script>
69
    <script nonce="[% Koha.CSPNonce | $raw %]">
70
        var cancel_success = 0;
70
        var cancel_success = 0;
71
        var update_success = 0;
71
        var update_success = 0;
72
        var bookings_table;
72
        var bookings_table;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt (-4 / +4 lines)
Lines 76-85 Link Here
76
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
76
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
77
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
77
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
78
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
78
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
79
    <script>
79
    <script nonce="[% Koha.CSPNonce | $raw %]">
80
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
80
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
81
    </script>
81
    </script>
82
    <script>
82
    <script nonce="[% Koha.CSPNonce | $raw %]">
83
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
83
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
84
    </script>
84
    </script>
85
    [% Asset.js("js/catalog.js") | $raw %]
85
    [% Asset.js("js/catalog.js") | $raw %]
Lines 92-104 Link Here
92
92
93
    [% Asset.js("js/browser.js") | $raw %]
93
    [% Asset.js("js/browser.js") | $raw %]
94
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
94
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
95
        <script>
95
        <script nonce="[% Koha.CSPNonce | $raw %]">
96
            /* Set a variable needed by add_catalog_concern.js */
96
            /* Set a variable needed by add_catalog_concern.js */
97
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
97
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
98
        </script>
98
        </script>
99
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
99
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
100
    [% END %]
100
    [% END %]
101
    <script>
101
    <script nonce="[% Koha.CSPNonce | $raw %]">
102
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
102
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
103
        browser.show();
103
        browser.show();
104
    </script>
104
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (-4 / +4 lines)
Lines 200-209 Link Here
200
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
200
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
201
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
201
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
202
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
202
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
203
    <script>
203
    <script nonce="[% Koha.CSPNonce | $raw %]">
204
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
204
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
205
    </script>
205
    </script>
206
    <script>
206
    <script nonce="[% Koha.CSPNonce | $raw %]">
207
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
207
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
208
    </script>
208
    </script>
209
    [% Asset.js("js/catalog.js") | $raw %]
209
    [% Asset.js("js/catalog.js") | $raw %]
Lines 216-228 Link Here
216
216
217
    [% Asset.js("js/browser.js") | $raw %]
217
    [% Asset.js("js/browser.js") | $raw %]
218
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
218
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
219
        <script>
219
        <script nonce="[% Koha.CSPNonce | $raw %]">
220
            /* Set a variable needed by add_catalog_concern.js */
220
            /* Set a variable needed by add_catalog_concern.js */
221
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
221
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
222
        </script>
222
        </script>
223
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
223
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
224
    [% END %]
224
    [% END %]
225
    <script>
225
    <script nonce="[% Koha.CSPNonce | $raw %]">
226
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
226
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
227
        browser.show();
227
        browser.show();
228
228
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-1 / +1 lines)
Lines 399-405 Link Here
399
    [% Asset.js("js/browser.js") | $raw %]
399
    [% Asset.js("js/browser.js") | $raw %]
400
    [% Asset.css("css/humanmsg.css") | $raw %]
400
    [% Asset.css("css/humanmsg.css") | $raw %]
401
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
401
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
402
    <script>
402
    <script nonce="[% Koha.CSPNonce | $raw %]">
403
        /**
403
        /**
404
         *  Function add_field();
404
         *  Function add_field();
405
         *  This function allows to display a new field to search.
405
         *  This function allows to display a new field to search.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-6 / +6 lines)
Lines 1307-1320 Link Here
1307
    [% PROCESS build_items_table_js biblio => biblio %]
1307
    [% PROCESS build_items_table_js biblio => biblio %]
1308
1308
1309
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1309
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1310
        <script>
1310
        <script nonce="[% Koha.CSPNonce | $raw %]">
1311
            /* Set a variable needed by add_catalog_concern.js */
1311
            /* Set a variable needed by add_catalog_concern.js */
1312
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1312
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1313
        </script>
1313
        </script>
1314
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1314
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1315
    [% END %]
1315
    [% END %]
1316
    [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1316
    [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
1317
        <script>
1317
        <script nonce="[% Koha.CSPNonce | $raw %]">
1318
            $(document).ready(function() {
1318
            $(document).ready(function() {
1319
                $("#bibliodetails a:first").tab("show");
1319
                $("#bibliodetails a:first").tab("show");
1320
                var table_settings = [% TablesSettings.GetTableSettings( 'catalogue', 'concerns', 'table_concerns', 'json' ) | $raw %];
1320
                var table_settings = [% TablesSettings.GetTableSettings( 'catalogue', 'concerns', 'table_concerns', 'json' ) | $raw %];
Lines 1475-1481 Link Here
1475
        </script>
1475
        </script>
1476
        [% Asset.js("js/modals/display_ticket.js") | $raw %]
1476
        [% Asset.js("js/modals/display_ticket.js") | $raw %]
1477
    [% END # /IF CatalogConcerns %]
1477
    [% END # /IF CatalogConcerns %]
1478
    <script>
1478
    <script nonce="[% Koha.CSPNonce | $raw %]">
1479
        var interface = "[% interface | html %]";
1479
        var interface = "[% interface | html %]";
1480
        var theme = "[% theme | html %]";
1480
        var theme = "[% theme | html %]";
1481
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
1481
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
Lines 1749-1758 Link Here
1749
    [% INCLUDE 'js-date-format.inc' %]
1749
    [% INCLUDE 'js-date-format.inc' %]
1750
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
1750
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
1751
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
1751
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
1752
    <script>
1752
    <script nonce="[% Koha.CSPNonce | $raw %]">
1753
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
1753
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
1754
    </script>
1754
    </script>
1755
    <script>
1755
    <script nonce="[% Koha.CSPNonce | $raw %]">
1756
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
1756
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
1757
    </script>
1757
    </script>
1758
    [% INCLUDE 'js-biblio-format.inc' %]
1758
    [% INCLUDE 'js-biblio-format.inc' %]
Lines 1761-1767 Link Here
1761
    [% IF Koha.Preference('EnableBooking') %]
1761
    [% IF Koha.Preference('EnableBooking') %]
1762
        [% Asset.js("js/modals/place_booking.js") | $raw %]
1762
        [% Asset.js("js/modals/place_booking.js") | $raw %]
1763
    [% END %]
1763
    [% END %]
1764
    <script>
1764
    <script nonce="[% Koha.CSPNonce | $raw %]">
1765
        var browser;
1765
        var browser;
1766
        var group_tabs;
1766
        var group_tabs;
1767
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
1767
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt (-5 / +5 lines)
Lines 11-17 Link Here
11
    [% END %]</title
11
    [% END %]</title
12
>
12
>
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
14
<style>
14
<style nonce="[% Koha.CSPNonce | $raw %]">
15
    #largeCover {
15
    #largeCover {
16
        background: transparent url("[% interface | html %]/[% theme | html %]/img/spinner-small.gif") center center no-repeat;
16
        background: transparent url("[% interface | html %]/[% theme | html %]/img/spinner-small.gif") center center no-repeat;
17
    }
17
    }
Lines 130-139 Link Here
130
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
130
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
131
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
131
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
132
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
132
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
133
    <script>
133
    <script nonce="[% Koha.CSPNonce | $raw %]">
134
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
134
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
135
    </script>
135
    </script>
136
    <script>
136
    <script nonce="[% Koha.CSPNonce | $raw %]">
137
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
137
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
138
    </script>
138
    </script>
139
    [% Asset.js("js/catalog.js") | $raw %]
139
    [% Asset.js("js/catalog.js") | $raw %]
Lines 145-157 Link Here
145
    [% END %]
145
    [% END %]
146
146
147
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
147
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
148
        <script>
148
        <script nonce="[% Koha.CSPNonce | $raw %]">
149
            /* Set a variable needed by add_catalog_concern.js */
149
            /* Set a variable needed by add_catalog_concern.js */
150
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
150
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
151
        </script>
151
        </script>
152
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
152
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
153
    [% END %]
153
    [% END %]
154
    <script>
154
    <script nonce="[% Koha.CSPNonce | $raw %]">
155
        var interface = "[% interface | html %]";
155
        var interface = "[% interface | html %]";
156
        var theme = "[% theme | html %]";
156
        var theme = "[% theme | html %]";
157
        $(document).ready(function(){
157
        $(document).ready(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-1 / +1 lines)
Lines 127-133 Link Here
127
127
128
[% MACRO jsinclude BLOCK %]
128
[% MACRO jsinclude BLOCK %]
129
    [% INCLUDE 'datatables.inc' %]
129
    [% INCLUDE 'datatables.inc' %]
130
    <script>
130
    <script nonce="[% Koha.CSPNonce | $raw %]">
131
        $(document).ready(function() {
131
        $(document).ready(function() {
132
            var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'checkoutshistory-table', 'json') | $raw %];
132
            var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'checkoutshistory-table', 'json') | $raw %];
133
            [% UNLESS show_patron_column %]
133
            [% UNLESS show_patron_column %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-1 / +1 lines)
Lines 387-393 Link Here
387
    [% INCLUDE 'calendar.inc' %]
387
    [% INCLUDE 'calendar.inc' %]
388
    [% INCLUDE 'datatables.inc' %]
388
    [% INCLUDE 'datatables.inc' %]
389
    [% INCLUDE 'select2.inc' %]
389
    [% INCLUDE 'select2.inc' %]
390
    <script>
390
    <script nonce="[% Koha.CSPNonce | $raw %]">
391
        var authorised_values = [% authorised_values_json | $raw %];
391
        var authorised_values = [% authorised_values_json | $raw %];
392
392
393
        function showItemSelections( number ){
393
        function showItemSelections( number ){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt (-4 / +4 lines)
Lines 89-98 Link Here
89
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
89
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
90
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
90
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
91
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
91
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
92
    <script>
92
    <script nonce="[% Koha.CSPNonce | $raw %]">
93
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
93
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
94
    </script>
94
    </script>
95
    <script>
95
    <script nonce="[% Koha.CSPNonce | $raw %]">
96
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
96
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
97
    </script>
97
    </script>
98
    [% Asset.js("js/catalog.js") | $raw %]
98
    [% Asset.js("js/catalog.js") | $raw %]
Lines 105-117 Link Here
105
    [% END %]
105
    [% END %]
106
106
107
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
107
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
108
        <script>
108
        <script nonce="[% Koha.CSPNonce | $raw %]">
109
            /* Set a variable needed by add_catalog_concern.js */
109
            /* Set a variable needed by add_catalog_concern.js */
110
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
110
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
111
        </script>
111
        </script>
112
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
112
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
113
    [% END %]
113
    [% END %]
114
    <script>
114
    <script nonce="[% Koha.CSPNonce | $raw %]">
115
        //<![CDATA[
115
        //<![CDATA[
116
            var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
116
            var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
117
            browser.show();
117
            browser.show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-5 / +5 lines)
Lines 16-22 Link Here
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% FILTER collapse %]
18
[% FILTER collapse %]
19
    <style>
19
    <style nonce="[% Koha.CSPNonce | $raw %]">
20
        .listgroup .rows {
20
        .listgroup .rows {
21
            margin-left: 1em;
21
            margin-left: 1em;
22
        }
22
        }
Lines 586-595 Link Here
586
    [% INCLUDE 'js-date-format.inc' %]
586
    [% INCLUDE 'js-date-format.inc' %]
587
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
587
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
588
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
588
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
589
    <script>
589
    <script nonce="[% Koha.CSPNonce | $raw %]">
590
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
590
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
591
    </script>
591
    </script>
592
    <script>
592
    <script nonce="[% Koha.CSPNonce | $raw %]">
593
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
593
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
594
    </script>
594
    </script>
595
    [% Asset.js("js/catalog.js") | $raw %]
595
    [% Asset.js("js/catalog.js") | $raw %]
Lines 603-615 Link Here
603
    [% END %]
603
    [% END %]
604
604
605
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
605
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
606
        <script>
606
        <script nonce="[% Koha.CSPNonce | $raw %]">
607
            /* Set a variable needed by add_catalog_concern.js */
607
            /* Set a variable needed by add_catalog_concern.js */
608
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
608
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
609
        </script>
609
        </script>
610
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
610
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
611
    [% END %]
611
    [% END %]
612
    <script>
612
    <script nonce="[% Koha.CSPNonce | $raw %]">
613
        $(document).ready(function(){
613
        $(document).ready(function(){
614
            var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
614
            var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
615
            browser.show();
615
            browser.show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 968-974 Link Here
968
    [% Asset.css("css/humanmsg.css") | $raw %]
968
    [% Asset.css("css/humanmsg.css") | $raw %]
969
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
969
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
970
    [% INCLUDE 'select2.inc' %]
970
    [% INCLUDE 'select2.inc' %]
971
    <script>
971
    <script nonce="[% Koha.CSPNonce | $raw %]">
972
        var PREF_AmazonCoverImages = parseInt( "[% Koha.Preference('AmazonCoverImages') | html %]", 10);
972
        var PREF_AmazonCoverImages = parseInt( "[% Koha.Preference('AmazonCoverImages') | html %]", 10);
973
        var q_array = new Array();  // will hold search terms, if present
973
        var q_array = new Array();  // will hold search terms, if present
974
        var PREF_IntranetCoce = parseInt( "[% Koha.Preference('IntranetCoce') | html %]", 10);
974
        var PREF_IntranetCoce = parseInt( "[% Koha.Preference('IntranetCoce') | html %]", 10);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt (-1 / +1 lines)
Lines 218-224 Link Here
218
218
219
[% MACRO jsinclude BLOCK %]
219
[% MACRO jsinclude BLOCK %]
220
    [% INCLUDE 'datatables.inc' %]
220
    [% INCLUDE 'datatables.inc' %]
221
    <script>
221
    <script nonce="[% Koha.CSPNonce | $raw %]">
222
        $(document).ready(function () {
222
        $(document).ready(function () {
223
            // We show table ordered by descending dates by default
223
            // We show table ordered by descending dates by default
224
            // (so that the more recent query is shown first)
224
            // (so that the more recent query is shown first)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showelastic.tt (-2 / +2 lines)
Lines 11-17 Link Here
11
<pre id="main" style="direction: ltr;"> </pre>
11
<pre id="main" style="direction: ltr;"> </pre>
12
</body>
12
</body>
13
<footer>
13
<footer>
14
    <style>
14
    <style nonce="[% Koha.CSPNonce | $raw %]">
15
        textarea {
15
        textarea {
16
            width: 100%;
16
            width: 100%;
17
            min-height: 40em;
17
            min-height: 40em;
Lines 19-25 Link Here
19
            resize: none;
19
            resize: none;
20
        }
20
        }
21
    </style>
21
    </style>
22
    <script>
22
    <script nonce="[% Koha.CSPNonce | $raw %]">
23
        display();
23
        display();
24
24
25
        function display() {
25
        function display() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt (-1 / +1 lines)
Lines 192-198 Link Here
192
192
193
[% MACRO jsinclude BLOCK %]
193
[% MACRO jsinclude BLOCK %]
194
    [% Asset.js("js/browser.js") | $raw %]
194
    [% Asset.js("js/browser.js") | $raw %]
195
    <script>
195
    <script nonce="[% Koha.CSPNonce | $raw %]">
196
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
196
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
197
        browser.show();
197
        browser.show();
198
    </script>
198
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-3 / +3 lines)
Lines 18-24 Link Here
18
[% INCLUDE 'calendar.inc' %]
18
[% INCLUDE 'calendar.inc' %]
19
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
19
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
20
[% INCLUDE 'select2.inc' %]
20
[% INCLUDE 'select2.inc' %]
21
<script>
21
<script nonce="[% Koha.CSPNonce | $raw %]">
22
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
22
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
23
        var auth_values_creation = 1;
23
        var auth_values_creation = 1;
24
    [% ELSE %]
24
    [% ELSE %]
Lines 28-34 Link Here
28
</script>
28
</script>
29
[% Asset.js("js/cataloging.js") | $raw %]
29
[% Asset.js("js/cataloging.js") | $raw %]
30
[% Asset.js("js/browser.js") | $raw %]
30
[% Asset.js("js/browser.js") | $raw %]
31
<script>
31
<script nonce="[% Koha.CSPNonce | $raw %]">
32
    var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
32
    var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
33
        browser.show();
33
        browser.show();
34
34
Lines 891-897 Link Here
891
    [% END # /UNLESS number %]
891
    [% END # /UNLESS number %]
892
    <!-- prettier-ignore-start -->
892
    <!-- prettier-ignore-start -->
893
                [% IF ( done ) %]
893
                [% IF ( done ) %]
894
                    <script>
894
                    <script nonce="[% Koha.CSPNonce | $raw %]">
895
                        opener.document.forms['f'].biblionumber.value=[% biblionumber | html %];
895
                        opener.document.forms['f'].biblionumber.value=[% biblionumber | html %];
896
                        opener.document.forms['f'].title.value='[% title | html %]';
896
                        opener.document.forms['f'].title.value='[% title | html %]';
897
                        window.close();
897
                        window.close();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 326-332 Link Here
326
326
327
[% MACRO jsinclude BLOCK %]
327
[% MACRO jsinclude BLOCK %]
328
    [% INCLUDE 'datatables.inc' %]
328
    [% INCLUDE 'datatables.inc' %]
329
    <script>
329
    <script nonce="[% Koha.CSPNonce | $raw %]">
330
        $(document).ready(function() {
330
        $(document).ready(function() {
331
            //Set focus to cataloging search
331
            //Set focus to cataloging search
332
            $("input[name=q]:eq(0)").focus();
332
            $("input[name=q]:eq(0)").focus();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-3 / +3 lines)
Lines 24-30 Link Here
24
[% INCLUDE 'doc-head-close.inc' %]
24
[% INCLUDE 'doc-head-close.inc' %]
25
[% Asset.css("css/addbiblio.css") | $raw %]
25
[% Asset.css("css/addbiblio.css") | $raw %]
26
[% INCLUDE 'datatables.inc' %]
26
[% INCLUDE 'datatables.inc' %]
27
<script>
27
<script nonce="[% Koha.CSPNonce | $raw %]">
28
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
28
    [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
29
        var auth_values_creation = 1;
29
        var auth_values_creation = 1;
30
    [% ELSE %]
30
    [% ELSE %]
Lines 37-46 Link Here
37
[% INCLUDE 'calendar.inc' %]
37
[% INCLUDE 'calendar.inc' %]
38
[% INCLUDE 'str/cataloging_additem.inc' %]
38
[% INCLUDE 'str/cataloging_additem.inc' %]
39
[% Asset.js("js/cataloging_additem.js") | $raw %]
39
[% Asset.js("js/cataloging_additem.js") | $raw %]
40
<script>
40
<script nonce="[% Koha.CSPNonce | $raw %]">
41
    var has_item_groups = "[% item_groups.size | html %]";
41
    var has_item_groups = "[% item_groups.size | html %]";
42
</script>
42
</script>
43
<style>
43
<style nonce="[% Koha.CSPNonce | $raw %]">
44
    .flatpickr_wrapper input {
44
    .flatpickr_wrapper input {
45
        width: 100%;
45
        width: 100%;
46
    }
46
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (-1 / +1 lines)
Lines 218-224 Link Here
218
[% END %]
218
[% END %]
219
219
220
[% MACRO jsinclude BLOCK %]
220
[% MACRO jsinclude BLOCK %]
221
    <script>
221
    <script nonce="[% Koha.CSPNonce | $raw %]">
222
        $(document).ready(function() {
222
        $(document).ready(function() {
223
223
224
            $("#newRecord").click(function(){
224
            $("#newRecord").click(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt (-1 / +1 lines)
Lines 63-69 Link Here
63
    [% INCLUDE 'datatables.inc' %]
63
    [% INCLUDE 'datatables.inc' %]
64
    [% INCLUDE 'js-date-format.inc' %]
64
    [% INCLUDE 'js-date-format.inc' %]
65
    [% INCLUDE 'js-biblio-format.inc' %]
65
    [% INCLUDE 'js-biblio-format.inc' %]
66
    <script>
66
    <script nonce="[% Koha.CSPNonce | $raw %]">
67
        $(document).ready(function() {
67
        $(document).ready(function() {
68
68
69
            logged_in_user_borrowernumber = [% logged_in_user.borrowernumber | html %];
69
            logged_in_user_borrowernumber = [% logged_in_user.borrowernumber | html %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt (-2 / +2 lines)
Lines 12-18 Link Here
12
    [% END %]</title
12
    [% END %]</title
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    div.record ul,
16
    div.record ul,
17
    div.record li {
17
    div.record li {
18
        float: none;
18
        float: none;
Lines 216-222 Link Here
216
216
217
[% MACRO jsinclude BLOCK %]
217
[% MACRO jsinclude BLOCK %]
218
    [% Asset.js("js/merge-record.js") | $raw %]
218
    [% Asset.js("js/merge-record.js") | $raw %]
219
    <script>
219
    <script nonce="[% Koha.CSPNonce | $raw %]">
220
        [% UNLESS (result) %]
220
        [% UNLESS (result) %]
221
          [% IF (choosereference) %]
221
          [% IF (choosereference) %]
222
            function changeFramework(fw) {
222
            function changeFramework(fw) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt (-1 / +1 lines)
Lines 122-128 Link Here
122
[% END %]
122
[% END %]
123
123
124
[% MACRO jsinclude BLOCK %]
124
[% MACRO jsinclude BLOCK %]
125
    <script>
125
    <script nonce="[% Koha.CSPNonce | $raw %]">
126
        $("#delete-biblio-btn").on("click", function () {
126
        $("#delete-biblio-btn").on("click", function () {
127
            if (confirm(_("Are you sure you want to delete this record?"))) {
127
            if (confirm(_("Are you sure you want to delete this record?"))) {
128
                $("#del-bib-spn").show();
128
                $("#del-bib-spn").show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/EXAMPLE.tt (-1 / +1 lines)
Lines 30-36 Link Here
30
        </div>
30
        </div>
31
    </nav>
31
    </nav>
32
</form>
32
</form>
33
<script>
33
<script nonce="[% Koha.CSPNonce | $raw %]">
34
    $(document).ready(function () {
34
    $(document).ready(function () {
35
        $('#return').focus();
35
        $('#return').focus();
36
    });
36
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_006.tt (-1 / +1 lines)
Lines 51-57 Link Here
51
51
52
[% MACRO jsinclude BLOCK %]
52
[% MACRO jsinclude BLOCK %]
53
    [% Asset.js("js/xmlControlfield.js") | $raw %]
53
    [% Asset.js("js/xmlControlfield.js") | $raw %]
54
    <script>
54
    <script nonce="[% Koha.CSPNonce | $raw %]">
55
        var objXmlControlField;
55
        var objXmlControlField;
56
        var tr_result;
56
        var tr_result;
57
        var h4_result;
57
        var h4_result;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt (-1 / +1 lines)
Lines 114-120 Link Here
114
<!-- /.page-section -->
114
<!-- /.page-section -->
115
115
116
[% MACRO jsinclude BLOCK %]
116
[% MACRO jsinclude BLOCK %]
117
    <script>
117
    <script nonce="[% Koha.CSPNonce | $raw %]">
118
        function report() {
118
        function report() {
119
            var doc = opener.document;
119
            var doc = opener.document;
120
            var field = doc.getElementById("[% index | html %]");
120
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tt (-1 / +1 lines)
Lines 64-70 Link Here
64
64
65
[% MACRO jsinclude BLOCK %]
65
[% MACRO jsinclude BLOCK %]
66
    [% Asset.js("js/xmlControlfield.js") | $raw %]
66
    [% Asset.js("js/xmlControlfield.js") | $raw %]
67
    <script>
67
    <script nonce="[% Koha.CSPNonce | $raw %]">
68
        $(document).ready(function(){
68
        $(document).ready(function(){
69
            $(".close_window").on("click", function(e){
69
            $(".close_window").on("click", function(e){
70
                e.preventDefault();
70
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008_authorities.tt (-1 / +1 lines)
Lines 736-742 Link Here
736
</form>
736
</form>
737
737
738
[% MACRO jsinclude BLOCK %]
738
[% MACRO jsinclude BLOCK %]
739
    <script>
739
    <script nonce="[% Koha.CSPNonce | $raw %]">
740
        function report() {
740
        function report() {
741
            var doc   = opener.document;
741
            var doc   = opener.document;
742
            var field = doc.getElementById("[% index | html %]");
742
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008_classifications.tt (-1 / +1 lines)
Lines 219-225 Link Here
219
<!-- /.page-section -->
219
<!-- /.page-section -->
220
220
221
[% MACRO jsinclude BLOCK %]
221
[% MACRO jsinclude BLOCK %]
222
    <script>
222
    <script nonce="[% Koha.CSPNonce | $raw %]">
223
        function report() {
223
        function report() {
224
            var doc   = opener.document;
224
            var doc   = opener.document;
225
            var field = doc.getElementById("[% index | html %]");
225
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt (-1 / +1 lines)
Lines 366-372 Link Here
366
</form>
366
</form>
367
367
368
[% MACRO jsinclude BLOCK %]
368
[% MACRO jsinclude BLOCK %]
369
    <script>
369
    <script nonce="[% Koha.CSPNonce | $raw %]">
370
        function report() {
370
        function report() {
371
            var doc   = opener.document;
371
            var doc   = opener.document;
372
            var field = doc.getElementById("[% index | html %]");
372
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_authorities.tt (-1 / +1 lines)
Lines 140-146 Link Here
140
</form>
140
</form>
141
141
142
[% MACRO jsinclude BLOCK %]
142
[% MACRO jsinclude BLOCK %]
143
    <script>
143
    <script nonce="[% Koha.CSPNonce | $raw %]">
144
        function report() {
144
        function report() {
145
            var doc   = opener.document;
145
            var doc   = opener.document;
146
            var field = doc.getElementById("[% index | html %]");
146
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_linking_section.tt (-3 / +3 lines)
Lines 163-169 Link Here
163
163
164
[% MACRO jsinclude BLOCK %]
164
[% MACRO jsinclude BLOCK %]
165
    [% IF ( fillinput ) %]
165
    [% IF ( fillinput ) %]
166
        <script>
166
        <script nonce="[% Koha.CSPNonce | $raw %]">
167
            function go() {
167
            function go() {
168
168
169
                var index_start = "[% index | html %]";
169
                var index_start = "[% index | html %]";
Lines 251-257 Link Here
251
            window.close();
251
            window.close();
252
        </script>
252
        </script>
253
    [% ELSE %]
253
    [% ELSE %]
254
        <script>
254
        <script nonce="[% Koha.CSPNonce | $raw %]">
255
            function report(value2report) {
255
            function report(value2report) {
256
                if (document.f_pop.result.value.length == 0) {
256
                if (document.f_pop.result.value.length == 0) {
257
                    document.f_pop.result.value = value2report;
257
                    document.f_pop.result.value = value2report;
Lines 268-274 Link Here
268
            }
268
            }
269
        </script>
269
        </script>
270
    [% END %]
270
    [% END %]
271
    <script>
271
    <script nonce="[% Koha.CSPNonce | $raw %]">
272
        function jumpfull(page) {
272
        function jumpfull(page) {
273
            window.open(page, "", "width=100,height=100,toolbar=false,scrollbars=yes");
273
            window.open(page, "", "width=100,height=100,toolbar=false,scrollbars=yes");
274
        }
274
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt (-1 / +1 lines)
Lines 801-807 Link Here
801
</form>
801
</form>
802
802
803
[% MACRO jsinclude BLOCK %]
803
[% MACRO jsinclude BLOCK %]
804
    <script>
804
    <script nonce="[% Koha.CSPNonce | $raw %]">
805
        function report() {
805
        function report() {
806
            var doc   = opener.document;
806
            var doc   = opener.document;
807
            var field = doc.getElementById("[% index | html %]");
807
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100_authorities.tt (-1 / +1 lines)
Lines 354-360 Link Here
354
</form>
354
</form>
355
355
356
[% MACRO jsinclude BLOCK %]
356
[% MACRO jsinclude BLOCK %]
357
    <script>
357
    <script nonce="[% Koha.CSPNonce | $raw %]">
358
        function report() {
358
        function report() {
359
            var doc   = opener.document;
359
            var doc   = opener.document;
360
            var field = doc.getElementById("[% index | html %]");
360
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_105.tt (-1 / +1 lines)
Lines 1156-1162 Link Here
1156
</form>
1156
</form>
1157
1157
1158
[% MACRO jsinclude BLOCK %]
1158
[% MACRO jsinclude BLOCK %]
1159
    <script>
1159
    <script nonce="[% Koha.CSPNonce | $raw %]">
1160
        function report() {
1160
        function report() {
1161
            var doc   = opener.document;
1161
            var doc   = opener.document;
1162
            var field = doc.getElementById("[% index | html %]");
1162
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_106.tt (-1 / +1 lines)
Lines 94-100 Link Here
94
</form>
94
</form>
95
95
96
[% MACRO jsinclude BLOCK %]
96
[% MACRO jsinclude BLOCK %]
97
    <script>
97
    <script nonce="[% Koha.CSPNonce | $raw %]">
98
        function report() {
98
        function report() {
99
            var doc   = opener.document;
99
            var doc   = opener.document;
100
            var field = doc.getElementById("[% index | html %]");
100
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_110.tt (-1 / +1 lines)
Lines 638-644 Link Here
638
</form>
638
</form>
639
639
640
[% MACRO jsinclude BLOCK %]
640
[% MACRO jsinclude BLOCK %]
641
    <script>
641
    <script nonce="[% Koha.CSPNonce | $raw %]">
642
        function report() {
642
        function report() {
643
            document.f_pop.f5.value=document.f_pop.f5.value+'   ';
643
            document.f_pop.f5.value=document.f_pop.f5.value+'   ';
644
            document.f_pop.f5.value=document.f_pop.f5.value.substring(0,3);
644
            document.f_pop.f5.value=document.f_pop.f5.value.substring(0,3);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115a.tt (-1 / +1 lines)
Lines 1127-1133 Link Here
1127
</form>
1127
</form>
1128
1128
1129
[% MACRO jsinclude BLOCK %]
1129
[% MACRO jsinclude BLOCK %]
1130
    <script>
1130
    <script nonce="[% Koha.CSPNonce | $raw %]">
1131
        function report() {
1131
        function report() {
1132
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
1132
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
1133
            document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
1133
            document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115b.tt (-1 / +1 lines)
Lines 594-600 Link Here
594
</form>
594
</form>
595
595
596
[% MACRO jsinclude BLOCK %]
596
[% MACRO jsinclude BLOCK %]
597
    <script>
597
    <script nonce="[% Koha.CSPNonce | $raw %]">
598
        function report() {
598
        function report() {
599
                document.f_pop.f10.value=document.f_pop.f10.value+'    ';
599
                document.f_pop.f10.value=document.f_pop.f10.value+'    ';
600
                document.f_pop.f10.value=document.f_pop.f10.value.substring(0,4);
600
                document.f_pop.f10.value=document.f_pop.f10.value.substring(0,4);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_116.tt (-1 / +1 lines)
Lines 1417-1423 Link Here
1417
</form>
1417
</form>
1418
1418
1419
[% MACRO jsinclude BLOCK %]
1419
[% MACRO jsinclude BLOCK %]
1420
    <script>
1420
    <script nonce="[% Koha.CSPNonce | $raw %]">
1421
        function report() {
1421
        function report() {
1422
            var doc   = opener.document;
1422
            var doc   = opener.document;
1423
            var field = doc.getElementById("[% index | html %]");
1423
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_117.tt (-1 / +1 lines)
Lines 723-729 Link Here
723
</form>
723
</form>
724
724
725
[% MACRO jsinclude BLOCK %]
725
[% MACRO jsinclude BLOCK %]
726
    <script>
726
    <script nonce="[% Koha.CSPNonce | $raw %]">
727
        function report() {
727
        function report() {
728
            var doc   = opener.document;
728
            var doc   = opener.document;
729
                var field = doc.getElementById("[% index | html %]");
729
                var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_120.tt (-1 / +1 lines)
Lines 1145-1151 Link Here
1145
</form>
1145
</form>
1146
1146
1147
[% MACRO jsinclude BLOCK %]
1147
[% MACRO jsinclude BLOCK %]
1148
    <script>
1148
    <script nonce="[% Koha.CSPNonce | $raw %]">
1149
        function report() {
1149
        function report() {
1150
            var doc   = opener.document;
1150
            var doc   = opener.document;
1151
                var field = doc.getElementById("[% index | html %]");
1151
                var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_121a.tt (-1 / +1 lines)
Lines 358-364 Link Here
358
</form>
358
</form>
359
359
360
[% MACRO jsinclude BLOCK %]
360
[% MACRO jsinclude BLOCK %]
361
    <script>
361
    <script nonce="[% Koha.CSPNonce | $raw %]">
362
        function report() {
362
        function report() {
363
            var doc   = opener.document;
363
            var doc   = opener.document;
364
            var field = doc.getElementById("[% index | html %]");
364
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_121b.tt (-1 / +1 lines)
Lines 255-261 Link Here
255
</form>
255
</form>
256
256
257
[% MACRO jsinclude BLOCK %]
257
[% MACRO jsinclude BLOCK %]
258
    <script>
258
    <script nonce="[% Koha.CSPNonce | $raw %]">
259
        function report() {
259
        function report() {
260
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
260
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
261
261
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_122.tt (-1 / +1 lines)
Lines 59-65 Link Here
59
</form>
59
</form>
60
60
61
[% MACRO jsinclude BLOCK %]
61
[% MACRO jsinclude BLOCK %]
62
    <script>
62
    <script nonce="[% Koha.CSPNonce | $raw %]">
63
        function report() {
63
        function report() {
64
            document.f_pop.f2.value=document.f_pop.f2.value+'    ';
64
            document.f_pop.f2.value=document.f_pop.f2.value+'    ';
65
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
65
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123a.tt (-1 / +1 lines)
Lines 52-58 Link Here
52
</form>
52
</form>
53
53
54
[% MACRO jsinclude BLOCK %]
54
[% MACRO jsinclude BLOCK %]
55
    <script>
55
    <script nonce="[% Koha.CSPNonce | $raw %]">
56
        function report() {
56
        function report() {
57
            var doc   = opener.document;
57
            var doc   = opener.document;
58
            var field = doc.getElementById("[% index | html %]");
58
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123defg.tt (-1 / +1 lines)
Lines 70-76 Link Here
70
</form>
70
</form>
71
71
72
[% MACRO jsinclude BLOCK %]
72
[% MACRO jsinclude BLOCK %]
73
    <script>
73
    <script nonce="[% Koha.CSPNonce | $raw %]">
74
        function report() {
74
        function report() {
75
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
75
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
76
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
76
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123i_j.tt (-1 / +1 lines)
Lines 61-67 Link Here
61
</form>
61
</form>
62
62
63
[% MACRO jsinclude BLOCK %]
63
[% MACRO jsinclude BLOCK %]
64
    <script>
64
    <script nonce="[% Koha.CSPNonce | $raw %]">
65
        function report() {
65
        function report() {
66
            var f2= "000" + document.f_pop.f2.value;
66
            var f2= "000" + document.f_pop.f2.value;
67
            f2 = f2.substring(f2.length-3);
67
            f2 = f2.substring(f2.length-3);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124a.tt (-1 / +1 lines)
Lines 53-59 Link Here
53
</form>
53
</form>
54
54
55
[% MACRO jsinclude BLOCK %]
55
[% MACRO jsinclude BLOCK %]
56
    <script>
56
    <script nonce="[% Koha.CSPNonce | $raw %]">
57
        function report() {
57
        function report() {
58
            var doc = opener.document;
58
            var doc = opener.document;
59
            var field = doc.getElementById("[% index | html %]");
59
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124b.tt (-1 / +1 lines)
Lines 93-99 Link Here
93
</form>
93
</form>
94
94
95
[% MACRO jsinclude BLOCK %]
95
[% MACRO jsinclude BLOCK %]
96
    <script>
96
    <script nonce="[% Koha.CSPNonce | $raw %]">
97
        function report() {
97
        function report() {
98
            var doc   = opener.document;
98
            var doc   = opener.document;
99
            var field = doc.getElementById("[% index | html %]");
99
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124c.tt (-1 / +1 lines)
Lines 148-154 Link Here
148
</form>
148
</form>
149
149
150
[% MACRO jsinclude BLOCK %]
150
[% MACRO jsinclude BLOCK %]
151
    <script>
151
    <script nonce="[% Koha.CSPNonce | $raw %]">
152
        function report() {
152
        function report() {
153
            var doc = opener.document;
153
            var doc = opener.document;
154
            var field = doc.getElementById("[% index | html %]");
154
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124d.tt (-1 / +1 lines)
Lines 53-59 Link Here
53
</form>
53
</form>
54
54
55
[% MACRO jsinclude BLOCK %]
55
[% MACRO jsinclude BLOCK %]
56
    <script>
56
    <script nonce="[% Koha.CSPNonce | $raw %]">
57
        function report() {
57
        function report() {
58
            var doc = opener.document;
58
            var doc = opener.document;
59
            var field = doc.getElementById("[% index | html %]");
59
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124e.tt (-1 / +1 lines)
Lines 53-59 Link Here
53
</form>
53
</form>
54
54
55
[% MACRO jsinclude BLOCK %]
55
[% MACRO jsinclude BLOCK %]
56
    <script>
56
    <script nonce="[% Koha.CSPNonce | $raw %]">
57
        function report() {
57
        function report() {
58
            var doc     = opener.document;
58
            var doc     = opener.document;
59
                var field   = doc.getElementById("[% index | html %]");
59
                var field   = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124f.tt (-1 / +1 lines)
Lines 128-134 Link Here
128
</form>
128
</form>
129
129
130
[% MACRO jsinclude BLOCK %]
130
[% MACRO jsinclude BLOCK %]
131
    <script>
131
    <script nonce="[% Koha.CSPNonce | $raw %]">
132
        function report() {
132
        function report() {
133
                var doc   = opener.document;
133
                var doc   = opener.document;
134
                var field = doc.getElementById("[% index | html %]");
134
                var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_124g.tt (-1 / +1 lines)
Lines 88-94 Link Here
88
</form>
88
</form>
89
89
90
[% MACRO jsinclude BLOCK %]
90
[% MACRO jsinclude BLOCK %]
91
    <script>
91
    <script nonce="[% Koha.CSPNonce | $raw %]">
92
        function report() {
92
        function report() {
93
            var doc = opener.document;
93
            var doc = opener.document;
94
            var field = doc.getElementById("[% index | html %]");
94
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125a.tt (-1 / +1 lines)
Lines 155-161 Link Here
155
</form>
155
</form>
156
156
157
[% MACRO jsinclude BLOCK %]
157
[% MACRO jsinclude BLOCK %]
158
    <script>
158
    <script nonce="[% Koha.CSPNonce | $raw %]">
159
        function report() {
159
        function report() {
160
            var doc = opener.document;
160
            var doc = opener.document;
161
            var field = doc.getElementById("[% index | html %]");
161
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_125b.tt (-1 / +1 lines)
Lines 148-154 Link Here
148
</form>
148
</form>
149
149
150
[% MACRO jsinclude BLOCK %]
150
[% MACRO jsinclude BLOCK %]
151
    <script>
151
    <script nonce="[% Koha.CSPNonce | $raw %]">
152
        function report() {
152
        function report() {
153
            var doc   = opener.document;
153
            var doc   = opener.document;
154
            var field = doc.getElementById("[% index | html %]");
154
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126a.tt (-1 / +1 lines)
Lines 1057-1063 Link Here
1057
</form>
1057
</form>
1058
1058
1059
[% MACRO jsinclude BLOCK %]
1059
[% MACRO jsinclude BLOCK %]
1060
    <script>
1060
    <script nonce="[% Koha.CSPNonce | $raw %]">
1061
        function report() {
1061
        function report() {
1062
            var doc   = opener.document;
1062
            var doc   = opener.document;
1063
            var field = doc.getElementById("[% index | html %]");
1063
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_126b.tt (-1 / +1 lines)
Lines 192-198 Link Here
192
</form>
192
</form>
193
193
194
[% MACRO jsinclude BLOCK %]
194
[% MACRO jsinclude BLOCK %]
195
    <script>
195
    <script nonce="[% Koha.CSPNonce | $raw %]">
196
        function report() {
196
        function report() {
197
            var doc = opener.document;
197
            var doc = opener.document;
198
            var field = doc.getElementById("[% index | html %]");
198
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_127.tt (-1 / +1 lines)
Lines 40-46 Link Here
40
</form>
40
</form>
41
41
42
[% MACRO jsinclude BLOCK %]
42
[% MACRO jsinclude BLOCK %]
43
    <script>
43
    <script nonce="[% Koha.CSPNonce | $raw %]">
44
        function report() {
44
        function report() {
45
          document.f_pop.f1.value=document.f_pop.f1.value+'   ';
45
          document.f_pop.f1.value=document.f_pop.f1.value+'   ';
46
          document.f_pop.f2.value=document.f_pop.f2.value+'  ';
46
          document.f_pop.f2.value=document.f_pop.f2.value+'  ';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128a.tt (-1 / +1 lines)
Lines 387-393 Link Here
387
    </nav>
387
    </nav>
388
</form>
388
</form>
389
[% MACRO jsinclude BLOCK %]
389
[% MACRO jsinclude BLOCK %]
390
    <script>
390
    <script nonce="[% Koha.CSPNonce | $raw %]">
391
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
391
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
392
        function report() {
392
        function report() {
393
            var doc = opener.document;
393
            var doc = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tt (-1 / +1 lines)
Lines 483-489 Link Here
483
    </nav>
483
    </nav>
484
</form>
484
</form>
485
[% MACRO jsinclude BLOCK %]
485
[% MACRO jsinclude BLOCK %]
486
    <script>
486
    <script nonce="[% Koha.CSPNonce | $raw %]">
487
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
487
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
488
        function report() {
488
        function report() {
489
            var doc   = opener.document;
489
            var doc   = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tt (-1 / +1 lines)
Lines 478-484 Link Here
478
</form>
478
</form>
479
479
480
[% MACRO jsinclude BLOCK %]
480
[% MACRO jsinclude BLOCK %]
481
    <script>
481
    <script nonce="[% Koha.CSPNonce | $raw %]">
482
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
482
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
483
        function report() {
483
        function report() {
484
            var doc   = opener.document;
484
            var doc   = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_130.tt (-1 / +1 lines)
Lines 352-358 Link Here
352
</form>
352
</form>
353
353
354
[% MACRO jsinclude BLOCK %]
354
[% MACRO jsinclude BLOCK %]
355
    <script>
355
    <script nonce="[% Koha.CSPNonce | $raw %]">
356
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
356
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
357
        function report() {
357
        function report() {
358
            document.f_pop.f5.value=document.f_pop.f5.value+'   ';
358
            document.f_pop.f5.value=document.f_pop.f5.value+'   ';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_135a.tt (-1 / +1 lines)
Lines 469-475 Link Here
469
</form>
469
</form>
470
470
471
[% MACRO jsinclude BLOCK %]
471
[% MACRO jsinclude BLOCK %]
472
    <script>
472
    <script nonce="[% Koha.CSPNonce | $raw %]">
473
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
473
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
474
        function report() {
474
        function report() {
475
            var doc   = opener.document;
475
            var doc   = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_140.tt (-1 / +1 lines)
Lines 1732-1738 Link Here
1732
</form>
1732
</form>
1733
1733
1734
[% MACRO jsinclude BLOCK %]
1734
[% MACRO jsinclude BLOCK %]
1735
    <script>
1735
    <script nonce="[% Koha.CSPNonce | $raw %]">
1736
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
1736
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
1737
        function report() {
1737
        function report() {
1738
            var doc = opener.document;
1738
            var doc = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_141.tt (-1 / +1 lines)
Lines 387-393 Link Here
387
</form>
387
</form>
388
388
389
[% MACRO jsinclude BLOCK %]
389
[% MACRO jsinclude BLOCK %]
390
    <script>
390
    <script nonce="[% Koha.CSPNonce | $raw %]">
391
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
391
        var dateformat = "[% Koha.Preference('dateformat') | html %]";
392
        function report() {
392
        function report() {
393
            var doc = opener.document;
393
            var doc = opener.document;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146a.tt (-1 / +1 lines)
Lines 45-51 Link Here
45
        </nav>
45
        </nav>
46
    </form>
46
    </form>
47
</div>
47
</div>
48
<script>
48
<script nonce="[% Koha.CSPNonce | $raw %]">
49
    document.getElementById("form").addEventListener("submit", function (ev) {
49
    document.getElementById("form").addEventListener("submit", function (ev) {
50
        ev.preventDefault();
50
        ev.preventDefault();
51
        const id = document.getElementById("id").value;
51
        const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146b.tt (-2 / +2 lines)
Lines 120-131 Link Here
120
    </form>
120
    </form>
121
121
122
    [% INCLUDE 'select2.inc' %]
122
    [% INCLUDE 'select2.inc' %]
123
    <script>
123
    <script nonce="[% Koha.CSPNonce | $raw %]">
124
        $(document).ready(function () {
124
        $(document).ready(function () {
125
            $("#category").select2();
125
            $("#category").select2();
126
        });
126
        });
127
    </script>
127
    </script>
128
    <script>
128
    <script nonce="[% Koha.CSPNonce | $raw %]">
129
        document.getElementById("form").addEventListener("submit", function (ev) {
129
        document.getElementById("form").addEventListener("submit", function (ev) {
130
            ev.preventDefault();
130
            ev.preventDefault();
131
            const id = document.getElementById("id").value;
131
            const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146c.tt (-2 / +2 lines)
Lines 121-132 Link Here
121
    </form>
121
    </form>
122
122
123
    [% INCLUDE 'select2.inc' %]
123
    [% INCLUDE 'select2.inc' %]
124
    <script>
124
    <script nonce="[% Koha.CSPNonce | $raw %]">
125
        $(document).ready(function () {
125
        $(document).ready(function () {
126
            $("#category").select2();
126
            $("#category").select2();
127
        });
127
        });
128
    </script>
128
    </script>
129
    <script>
129
    <script nonce="[% Koha.CSPNonce | $raw %]">
130
        document.getElementById("form").addEventListener("submit", function (ev) {
130
        document.getElementById("form").addEventListener("submit", function (ev) {
131
            ev.preventDefault();
131
            ev.preventDefault();
132
            const id = document.getElementById("id").value;
132
            const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146d.tt (-2 / +2 lines)
Lines 98-109 Link Here
98
    </form>
98
    </form>
99
99
100
    [% INCLUDE 'select2.inc' %]
100
    [% INCLUDE 'select2.inc' %]
101
    <script>
101
    <script nonce="[% Koha.CSPNonce | $raw %]">
102
        $(document).ready(function () {
102
        $(document).ready(function () {
103
            $("#category").select2();
103
            $("#category").select2();
104
        });
104
        });
105
    </script>
105
    </script>
106
    <script>
106
    <script nonce="[% Koha.CSPNonce | $raw %]">
107
        document.getElementById("form").addEventListener("submit", function (ev) {
107
        document.getElementById("form").addEventListener("submit", function (ev) {
108
            ev.preventDefault();
108
            ev.preventDefault();
109
            const id = document.getElementById("id").value;
109
            const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146e.tt (-2 / +2 lines)
Lines 122-133 Link Here
122
</div>
122
</div>
123
123
124
[% INCLUDE 'select2.inc' %]
124
[% INCLUDE 'select2.inc' %]
125
<script>
125
<script nonce="[% Koha.CSPNonce | $raw %]">
126
    $(document).ready(function () {
126
    $(document).ready(function () {
127
        $("#category").select2();
127
        $("#category").select2();
128
    });
128
    });
129
</script>
129
</script>
130
<script>
130
<script nonce="[% Koha.CSPNonce | $raw %]">
131
    document.getElementById("form").addEventListener("submit", function (ev) {
131
    document.getElementById("form").addEventListener("submit", function (ev) {
132
        ev.preventDefault();
132
        ev.preventDefault();
133
        const id = document.getElementById("id").value;
133
        const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146f.tt (-2 / +2 lines)
Lines 122-133 Link Here
122
</div>
122
</div>
123
123
124
[% INCLUDE 'select2.inc' %]
124
[% INCLUDE 'select2.inc' %]
125
<script>
125
<script nonce="[% Koha.CSPNonce | $raw %]">
126
    $(document).ready(function () {
126
    $(document).ready(function () {
127
        $("#category").select2();
127
        $("#category").select2();
128
    });
128
    });
129
</script>
129
</script>
130
<script>
130
<script nonce="[% Koha.CSPNonce | $raw %]">
131
    document.getElementById("form").addEventListener("submit", function (ev) {
131
    document.getElementById("form").addEventListener("submit", function (ev) {
132
        ev.preventDefault();
132
        ev.preventDefault();
133
        const id = document.getElementById("id").value;
133
        const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146h.tt (-1 / +1 lines)
Lines 52-58 Link Here
52
        </nav>
52
        </nav>
53
    </form>
53
    </form>
54
</div>
54
</div>
55
<script>
55
<script nonce="[% Koha.CSPNonce | $raw %]">
56
    document.getElementById("form").addEventListener("submit", function (ev) {
56
    document.getElementById("form").addEventListener("submit", function (ev) {
57
        ev.preventDefault();
57
        ev.preventDefault();
58
        const id = document.getElementById("id").value;
58
        const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_146i.tt (-1 / +1 lines)
Lines 52-58 Link Here
52
        </nav>
52
        </nav>
53
    </form>
53
    </form>
54
</div>
54
</div>
55
<script>
55
<script nonce="[% Koha.CSPNonce | $raw %]">
56
    document.getElementById("form").addEventListener("submit", function (ev) {
56
    document.getElementById("form").addEventListener("submit", function (ev) {
57
        ev.preventDefault();
57
        ev.preventDefault();
58
        const id = document.getElementById("id").value;
58
        const id = document.getElementById("id").value;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_181-2.tt (-1 / +1 lines)
Lines 60-66 Link Here
60
        </div>
60
        </div>
61
    </nav>
61
    </nav>
62
</form>
62
</form>
63
<script>
63
<script nonce="[% Koha.CSPNonce | $raw %]">
64
    function submitMyForm() {
64
    function submitMyForm() {
65
        var doc   = opener.document;
65
        var doc   = opener.document;
66
        var field = doc.getElementById("[% index | html %]");
66
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_181a.tt (-1 / +1 lines)
Lines 144-150 Link Here
144
        </div>
144
        </div>
145
    </nav>
145
    </nav>
146
</form>
146
</form>
147
<script>
147
<script nonce="[% Koha.CSPNonce | $raw %]">
148
    function submitMyForm() {
148
    function submitMyForm() {
149
        var doc   = opener.document;
149
        var doc   = opener.document;
150
        var field = doc.getElementById("[% index | html %]");
150
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_181b.tt (-1 / +1 lines)
Lines 252-258 Link Here
252
        </div>
252
        </div>
253
    </nav>
253
    </nav>
254
</form>
254
</form>
255
<script>
255
<script nonce="[% Koha.CSPNonce | $raw %]">
256
    // The following function just puts back the value of the input #return
256
    // The following function just puts back the value of the input #return
257
    // into the caller's field, referenced by index. And closes the popup.
257
    // into the caller's field, referenced by index. And closes the popup.
258
    function submitMyForm() {
258
    function submitMyForm() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_181c.tt (-1 / +1 lines)
Lines 186-192 Link Here
186
        </div>
186
        </div>
187
    </nav>
187
    </nav>
188
</form>
188
</form>
189
<script>
189
<script nonce="[% Koha.CSPNonce | $raw %]">
190
    function submitMyForm() {
190
    function submitMyForm() {
191
        var doc   = opener.document;
191
        var doc   = opener.document;
192
        var field = doc.getElementById("[% index | html %]");
192
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_182-2.tt (-1 / +1 lines)
Lines 60-66 Link Here
60
        </div>
60
        </div>
61
    </nav>
61
    </nav>
62
</form>
62
</form>
63
<script>
63
<script nonce="[% Koha.CSPNonce | $raw %]">
64
    function submitMyForm() {
64
    function submitMyForm() {
65
        var doc   = opener.document;
65
        var doc   = opener.document;
66
        var field = doc.getElementById("[% index | html %]");
66
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_182a.tt (-1 / +1 lines)
Lines 96-102 Link Here
96
        </div>
96
        </div>
97
    </nav>
97
    </nav>
98
</form>
98
</form>
99
<script>
99
<script nonce="[% Koha.CSPNonce | $raw %]">
100
    function submitMyForm() {
100
    function submitMyForm() {
101
        var doc   = opener.document;
101
        var doc   = opener.document;
102
        var field = doc.getElementById("[% index | html %]");
102
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_182c.tt (-1 / +1 lines)
Lines 96-102 Link Here
96
        </div>
96
        </div>
97
    </nav>
97
    </nav>
98
</form>
98
</form>
99
<script>
99
<script nonce="[% Koha.CSPNonce | $raw %]">
100
    function submitMyForm() {
100
    function submitMyForm() {
101
        var doc   = opener.document;
101
        var doc   = opener.document;
102
        var field = doc.getElementById("[% index | html %]");
102
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_183-2.tt (-1 / +1 lines)
Lines 60-66 Link Here
60
        </div>
60
        </div>
61
    </nav>
61
    </nav>
62
</form>
62
</form>
63
<script>
63
<script nonce="[% Koha.CSPNonce | $raw %]">
64
    // The following function just puts back the value of the input #return
64
    // The following function just puts back the value of the input #return
65
    // into the caller's field, referenced by index. And closes the popup.
65
    // into the caller's field, referenced by index. And closes the popup.
66
    function submitMyForm() {
66
    function submitMyForm() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_183a.tt (-1 / +1 lines)
Lines 394-400 Link Here
394
        </div>
394
        </div>
395
    </nav>
395
    </nav>
396
</form>
396
</form>
397
<script>
397
<script nonce="[% Koha.CSPNonce | $raw %]">
398
    function submitMyForm() {
398
    function submitMyForm() {
399
        var doc   = opener.document;
399
        var doc   = opener.document;
400
        var field = doc.getElementById("[% index | html %]");
400
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt (-1 / +1 lines)
Lines 108-114 Link Here
108
</div>
108
</div>
109
109
110
[% MACRO jsinclude BLOCK %]
110
[% MACRO jsinclude BLOCK %]
111
    <script>
111
    <script nonce="[% Koha.CSPNonce | $raw %]">
112
        $(document).ready(function(){
112
        $(document).ready(function(){
113
            $(".choosebt").on("click",function(){
113
            $(".choosebt").on("click",function(){
114
                var toreport = $(this).siblings(".toreport").text();
114
                var toreport = $(this).siblings(".toreport").text();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c_bis.tt (-1 / +1 lines)
Lines 34-40 Link Here
34
    </div>
34
    </div>
35
35
36
    [% MACRO jsinclude BLOCK %]
36
    [% MACRO jsinclude BLOCK %]
37
        <script>
37
        <script nonce="[% Koha.CSPNonce | $raw %]">
38
            function report() {
38
            function report() {
39
                var doc   = opener.document;
39
                var doc   = opener.document;
40
                var field = doc.getElementById("[% index | html %]");
40
                var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt (-1 / +1 lines)
Lines 42-48 Link Here
42
</form>
42
</form>
43
43
44
[% MACRO jsinclude BLOCK %]
44
[% MACRO jsinclude BLOCK %]
45
    <script>
45
    <script nonce="[% Koha.CSPNonce | $raw %]">
46
        function report() {
46
        function report() {
47
            var doc   = opener.document;
47
            var doc   = opener.document;
48
            var field = doc.getElementById("[% index | html %]");
48
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a_bis.tt (-1 / +1 lines)
Lines 36-42 Link Here
36
</div>
36
</div>
37
37
38
[% MACRO jsinclude BLOCK %]
38
[% MACRO jsinclude BLOCK %]
39
    <script>
39
    <script nonce="[% Koha.CSPNonce | $raw %]">
40
        $(document).ready(function(){
40
        $(document).ready(function(){
41
            $("#findvalue").autocomplete({
41
            $("#findvalue").autocomplete({
42
                source: "/cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=collectiontitle",
42
                source: "/cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=collectiontitle",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_283-2.tt (-1 / +1 lines)
Lines 60-66 Link Here
60
        </div>
60
        </div>
61
    </nav>
61
    </nav>
62
</form>
62
</form>
63
<script>
63
<script nonce="[% Koha.CSPNonce | $raw %]">
64
    // The following function just puts back the value of the input #return
64
    // The following function just puts back the value of the input #return
65
    // into the caller's field, referenced by index. And closes the popup.
65
    // into the caller's field, referenced by index. And closes the popup.
66
    function submitMyForm() {
66
    function submitMyForm() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_283a.tt (-1 / +1 lines)
Lines 395-401 Link Here
395
        </div>
395
        </div>
396
    </nav>
396
    </nav>
397
</form>
397
</form>
398
<script>
398
<script nonce="[% Koha.CSPNonce | $raw %]">
399
    function submitMyForm() {
399
    function submitMyForm() {
400
        var doc   = opener.document;
400
        var doc   = opener.document;
401
        var field = doc.getElementById("[% index | html %]");
401
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_325h.tt (-1 / +1 lines)
Lines 55-61 Link Here
55
        </div>
55
        </div>
56
    </nav>
56
    </nav>
57
</form>
57
</form>
58
<script>
58
<script nonce="[% Koha.CSPNonce | $raw %]">
59
    function submitMyForm() {
59
    function submitMyForm() {
60
        var doc   = opener.document;
60
        var doc   = opener.document;
61
        var field = doc.getElementById("[% index | html %]");
61
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_325j.tt (-1 / +1 lines)
Lines 144-150 Link Here
144
        </div>
144
        </div>
145
    </nav>
145
    </nav>
146
</form>
146
</form>
147
<script>
147
<script nonce="[% Koha.CSPNonce | $raw %]">
148
    $("#form").on('submit', submitMyForm);
148
    $("#form").on('submit', submitMyForm);
149
    $("#f0").on('change', function() {
149
    $("#f0").on('change', function() {
150
        document.f_pop.f1.disabled = false;
150
        document.f_pop.f1.disabled = false;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt (-2 / +2 lines)
Lines 173-179 Link Here
173
[% END %]
173
[% END %]
174
174
175
[% MACRO jsinclude BLOCK %]
175
[% MACRO jsinclude BLOCK %]
176
    <script>
176
    <script nonce="[% Koha.CSPNonce | $raw %]">
177
        $(document).ready(function () {
177
        $(document).ready(function () {
178
            $(".redirect_link").on("click", function (e) {
178
            $(".redirect_link").on("click", function (e) {
179
                e.preventDefault();
179
                e.preventDefault();
Lines 187-193 Link Here
187
        }
187
        }
188
    </script>
188
    </script>
189
    [% IF ( fillinput ) %]
189
    [% IF ( fillinput ) %]
190
        <script>
190
        <script nonce="[% Koha.CSPNonce | $raw %]">
191
            function go() {
191
            function go() {
192
                var index_start = "[% index | html %]";
192
                var index_start = "[% index | html %]";
193
                var whichfield;
193
                var whichfield;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tt (-1 / +1 lines)
Lines 311-317 Link Here
311
</form>
311
</form>
312
312
313
[% MACRO jsinclude BLOCK %]
313
[% MACRO jsinclude BLOCK %]
314
    <script>
314
    <script nonce="[% Koha.CSPNonce | $raw %]">
315
        function report() {
315
        function report() {
316
            var doc   = opener.document;
316
            var doc   = opener.document;
317
            var field = doc.getElementById("[% index | html %]");
317
            var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader_authorities.tt (-1 / +1 lines)
Lines 194-200 Link Here
194
        </div>
194
        </div>
195
    </nav>
195
    </nav>
196
</form>
196
</form>
197
<script>
197
<script nonce="[% Koha.CSPNonce | $raw %]">
198
    function report() {
198
    function report() {
199
        var doc   = opener.document;
199
        var doc   = opener.document;
200
        var field = doc.getElementById("[% index | html %]");
200
        var field = doc.getElementById("[% index | html %]");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt (-1 / +1 lines)
Lines 263-269 Link Here
263
    [% INCLUDE 'datatables.inc' %]
263
    [% INCLUDE 'datatables.inc' %]
264
    [% INCLUDE 'z3950_search.inc' %]
264
    [% INCLUDE 'z3950_search.inc' %]
265
    [% Asset.js("js/z3950_search.js") | $raw %]
265
    [% Asset.js("js/z3950_search.js") | $raw %]
266
    <script>
266
    <script nonce="[% Koha.CSPNonce | $raw %]">
267
        $(document).ready(function () {
267
        $(document).ready(function () {
268
            $("#resultst").kohaTable({
268
            $("#resultst").kohaTable({
269
                dom: "t",
269
                dom: "t",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt (-1 / +1 lines)
Lines 276-282 Link Here
276
    [% INCLUDE 'datatables.inc' %]
276
    [% INCLUDE 'datatables.inc' %]
277
    [% INCLUDE 'z3950_search.inc' %]
277
    [% INCLUDE 'z3950_search.inc' %]
278
    [% Asset.js("js/z3950_search.js") | $raw %]
278
    [% Asset.js("js/z3950_search.js") | $raw %]
279
    <script>
279
    <script nonce="[% Koha.CSPNonce | $raw %]">
280
        $(document).ready(function(){
280
        $(document).ready(function(){
281
            var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
281
            var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
282
            var thetable = $("#resultst").kohaTable(
282
            var thetable = $("#resultst").kohaTable(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
    [% END %]</title
16
    [% END %]</title
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    p {
20
    p {
21
        margin-top: 0;
21
        margin-top: 0;
22
    }
22
    }
Lines 523-529 Link Here
523
523
524
[% MACRO jsinclude BLOCK %]
524
[% MACRO jsinclude BLOCK %]
525
    [% INCLUDE 'datatables.inc' %]
525
    [% INCLUDE 'datatables.inc' %]
526
    <script>
526
    <script nonce="[% Koha.CSPNonce | $raw %]">
527
        var active_tab = "#article-requests-requested_panel";
527
        var active_tab = "#article-requests-requested_panel";
528
        var last_cancel_reason, requested_datatable, pending_datatable, processing_datatable, active_datatable, requested_dt, pending_dt, processing_dt;
528
        var last_cancel_reason, requested_datatable, pending_datatable, processing_datatable, active_datatable, requested_dt, pending_dt, processing_dt;
529
        $(document).ready(function() {
529
        $(document).ready(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt (-1 / +1 lines)
Lines 98-104 Link Here
98
[% END %]
98
[% END %]
99
99
100
[% MACRO jsinclude BLOCK %]
100
[% MACRO jsinclude BLOCK %]
101
    <script>
101
    <script nonce="[% Koha.CSPNonce | $raw %]">
102
        $(document).ready(function () {
102
        $(document).ready(function () {
103
            $("tr.mybranch td").css("background-color", "#CFE7FF");
103
            $("tr.mybranch td").css("background-color", "#CFE7FF");
104
        });
104
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
>
15
>
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% FILTER collapse %]
17
[% FILTER collapse %]
18
    <style>
18
    <style nonce="[% Koha.CSPNonce | $raw %]">
19
        #tobranchcd-error {
19
        #tobranchcd-error {
20
            display: block;
20
            display: block;
21
        }
21
        }
Lines 295-301 Link Here
295
[% END %]
295
[% END %]
296
[% MACRO jsinclude BLOCK %]
296
[% MACRO jsinclude BLOCK %]
297
    [% INCLUDE 'select2.inc' %]
297
    [% INCLUDE 'select2.inc' %]
298
    <script>
298
    <script nonce="[% Koha.CSPNonce | $raw %]">
299
        $(".printtransferslip").on("click", function(e){
299
        $(".printtransferslip").on("click", function(e){
300
            e.preventDefault();
300
            e.preventDefault();
301
            var itemnumber = $(this).attr('data-itemnumber');
301
            var itemnumber = $(this).attr('data-itemnumber');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt (-1 / +1 lines)
Lines 118-124 Link Here
118
[% MACRO jsinclude BLOCK %]
118
[% MACRO jsinclude BLOCK %]
119
    [% INCLUDE 'calendar.inc' %]
119
    [% INCLUDE 'calendar.inc' %]
120
    [% INCLUDE 'datatables.inc' %]
120
    [% INCLUDE 'datatables.inc' %]
121
    <script>
121
    <script nonce="[% Koha.CSPNonce | $raw %]">
122
        $(document).ready(function () {
122
        $(document).ready(function () {
123
            $("#notestable").kohaTable({
123
            $("#notestable").kohaTable({
124
                order: [[1, "asc"]],
124
                order: [[1, "asc"]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-3 / +3 lines)
Lines 25-31 Link Here
25
>
25
>
26
[% INCLUDE 'doc-head-close.inc' %]
26
[% INCLUDE 'doc-head-close.inc' %]
27
[% FILTER collapse %]
27
[% FILTER collapse %]
28
    <style>
28
    <style nonce="[% Koha.CSPNonce | $raw %]">
29
        #patron_checkout_search {
29
        #patron_checkout_search {
30
            display: flex;
30
            display: flex;
31
            gap: 0.5rem;
31
            gap: 0.5rem;
Lines 1080-1086 Link Here
1080
    [% PROCESS 'modal-claims.inc' %]
1080
    [% PROCESS 'modal-claims.inc' %]
1081
    [% PROCESS 'modal-claims-js' %]
1081
    [% PROCESS 'modal-claims-js' %]
1082
    [% INCLUDE 'js-date-format.inc' %]
1082
    [% INCLUDE 'js-date-format.inc' %]
1083
    <script>
1083
    <script nonce="[% Koha.CSPNonce | $raw %]">
1084
        /* Set some variable needed in circulation.js */
1084
        /* Set some variable needed in circulation.js */
1085
        const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
1085
        const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
1086
        const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %];
1086
        const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %];
Lines 1115-1121 Link Here
1115
    [% Asset.js("js/combobox.js") | $raw %]
1115
    [% Asset.js("js/combobox.js") | $raw %]
1116
    [% INCLUDE 'js-biblio-format.inc' %]
1116
    [% INCLUDE 'js-biblio-format.inc' %]
1117
    [% Asset.js("js/hold-group.js") | $raw %]
1117
    [% Asset.js("js/hold-group.js") | $raw %]
1118
    <script>
1118
    <script nonce="[% Koha.CSPNonce | $raw %]">
1119
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1119
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1120
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1120
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1121
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1121
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-2 / +2 lines)
Lines 244-250 Link Here
244
                                    [% END %]
244
                                    [% END %]
245
                                    [% IF checkout_info.HIGHHOLDS %]
245
                                    [% IF checkout_info.HIGHHOLDS %]
246
                                        <!-- FIXME -->
246
                                        <!-- FIXME -->
247
                                        <script>
247
                                        <script nonce="[% Koha.CSPNonce | $raw %]">
248
                                            $(document).ready(function() {
248
                                            $(document).ready(function() {
249
                                                $("input[name=duedatespec]:hidden").val('[% checkout_info.HIGHHOLDS.returndate | html %]');
249
                                                $("input[name=duedatespec]:hidden").val('[% checkout_info.HIGHHOLDS.returndate | html %]');
250
                                            });
250
                                            });
Lines 352-358 Link Here
352
[% MACRO jsinclude BLOCK %]
352
[% MACRO jsinclude BLOCK %]
353
    [% INCLUDE 'calendar.inc' %]
353
    [% INCLUDE 'calendar.inc' %]
354
    [% INCLUDE 'datatables.inc' %]
354
    [% INCLUDE 'datatables.inc' %]
355
    <script>
355
    <script nonce="[% Koha.CSPNonce | $raw %]">
356
        $(document).ready(function() {
356
        $(document).ready(function() {
357
            if($('#barcodelist').length) {
357
            if($('#barcodelist').length) {
358
                $('#barcodelist').focus();
358
                $('#barcodelist').focus();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt (-4 / +4 lines)
Lines 16-22 Link Here
16
        &rsaquo; [% t("Circulation") | html %] &rsaquo; [% t("Koha") | html %]
16
        &rsaquo; [% t("Circulation") | html %] &rsaquo; [% t("Koha") | html %]
17
    [% END %]</title
17
    [% END %]</title
18
>
18
>
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    #pickup-times {
20
    #pickup-times {
21
        width: 50%;
21
        width: 50%;
22
    }
22
    }
Lines 461-475 Link Here
461
461
462
[% MACRO jsinclude BLOCK %]
462
[% MACRO jsinclude BLOCK %]
463
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
463
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
464
    <script>
464
    <script nonce="[% Koha.CSPNonce | $raw %]">
465
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
465
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
466
    </script>
466
    </script>
467
    <script>
467
    <script nonce="[% Koha.CSPNonce | $raw %]">
468
        dayjs.extend(window.dayjs_plugin_customParseFormat);
468
        dayjs.extend(window.dayjs_plugin_customParseFormat);
469
    </script>
469
    </script>
470
    [% INCLUDE 'calendar.inc' %]
470
    [% INCLUDE 'calendar.inc' %]
471
    [% INCLUDE 'datatables.inc' %]
471
    [% INCLUDE 'datatables.inc' %]
472
    <script>
472
    <script nonce="[% Koha.CSPNonce | $raw %]">
473
        let pickups = [% To.json(curbside_pickups.unblessed) | $raw %];
473
        let pickups = [% To.json(curbside_pickups.unblessed) | $raw %];
474
        let policy = [% To.json(policy.unblessed) | $raw %];
474
        let policy = [% To.json(policy.unblessed) | $raw %];
475
475
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/on-site_checkouts.tt (-1 / +1 lines)
Lines 77-83 Link Here
77
77
78
[% MACRO jsinclude BLOCK %]
78
[% MACRO jsinclude BLOCK %]
79
    [% INCLUDE 'datatables.inc' %]
79
    [% INCLUDE 'datatables.inc' %]
80
    <script>
80
    <script nonce="[% Koha.CSPNonce | $raw %]">
81
        $(document).ready(function () {
81
        $(document).ready(function () {
82
            if ($("#pending_onsite_checkout").length) {
82
            if ($("#pending_onsite_checkout").length) {
83
                $("#pending_onsite_checkout").kohaTable();
83
                $("#pending_onsite_checkout").kohaTable();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt (-2 / +2 lines)
Lines 21-27 Link Here
21
>
21
>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
[% FILTER collapse %]
23
[% FILTER collapse %]
24
    <style>
24
    <style nonce="[% Koha.CSPNonce | $raw %]">
25
        .sql {
25
        .sql {
26
            display: none;
26
            display: none;
27
        }
27
        }
Lines 346-352 Link Here
346
    [% INCLUDE 'select2.inc' %]
346
    [% INCLUDE 'select2.inc' %]
347
    [% INCLUDE 'js-date-format.inc' %]
347
    [% INCLUDE 'js-date-format.inc' %]
348
    [% PROCESS 'modal-claims-js' %]
348
    [% PROCESS 'modal-claims-js' %]
349
    <script>
349
    <script nonce="[% Koha.CSPNonce | $raw %]">
350
        function clone_input( node, original_id ) {
350
        function clone_input( node, original_id ) {
351
            var original = node;
351
            var original = node;
352
            var clone = original.clone();
352
            var clone = original.clone();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt (-1 / +1 lines)
Lines 115-121 Link Here
115
    [% INCLUDE 'datatables.inc' %]
115
    [% INCLUDE 'datatables.inc' %]
116
    [% INCLUDE 'js-biblio-format.inc' %]
116
    [% INCLUDE 'js-biblio-format.inc' %]
117
    [% INCLUDE 'js-date-format.inc' %]
117
    [% INCLUDE 'js-date-format.inc' %]
118
    <script>
118
    <script nonce="[% Koha.CSPNonce | $raw %]">
119
        let table_settings = [% TablesSettings.GetTableSettings( 'circ', 'bookings', 'bookings-to-collect', 'json' ) | $raw %];
119
        let table_settings = [% TablesSettings.GetTableSettings( 'circ', 'bookings', 'bookings-to-collect', 'json' ) | $raw %];
120
120
121
            let all_libraries  = [% To.json(Branches.all) | $raw %].map(e => {
121
            let all_libraries  = [% To.json(Branches.all) | $raw %].map(e => {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-1 / +1 lines)
Lines 298-304 Link Here
298
    [% INCLUDE 'calendar.inc' %]
298
    [% INCLUDE 'calendar.inc' %]
299
    [% INCLUDE 'datatables.inc' %]
299
    [% INCLUDE 'datatables.inc' %]
300
    [% Asset.js("js/hold-group.js") | $raw %]
300
    [% Asset.js("js/hold-group.js") | $raw %]
301
    <script>
301
    <script nonce="[% Koha.CSPNonce | $raw %]">
302
        function get_options(column){
302
        function get_options(column){
303
            let regex = /(<([^>]+)>)/ig; // Remove html tags
303
            let regex = /(<([^>]+)>)/ig; // Remove html tags
304
            let options = [... new Set(column
304
            let options = [... new Set(column
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt (-1 / +1 lines)
Lines 38-44 Link Here
38
[% FOR slip IN slips %]
38
[% FOR slip IN slips %]
39
    [% IF slip.style %]
39
    [% IF slip.style %]
40
        <!-- prettier-ignore-start -->
40
        <!-- prettier-ignore-start -->
41
    <style>[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style>
41
    <style nonce="[% Koha.CSPNonce | $raw %]">[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style>
42
    <!-- prettier-ignore-end -->
42
    <!-- prettier-ignore-end -->
43
    [% END %]
43
    [% END %]
44
[% END %]
44
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt (-1 / +1 lines)
Lines 240-246 Link Here
240
    [% Asset.js("js/pages/circulation.js") | $raw %]
240
    [% Asset.js("js/pages/circulation.js") | $raw %]
241
    [% INCLUDE 'calendar.inc' %]
241
    [% INCLUDE 'calendar.inc' %]
242
    [% IF error %]
242
    [% IF error %]
243
        <script>
243
        <script nonce="[% Koha.CSPNonce | $raw %]">
244
            $(document).ready(function () {
244
            $(document).ready(function () {
245
                removeFocus();
245
                removeFocus();
246
            });
246
            });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt (-1 / +1 lines)
Lines 337-343 Link Here
337
[% MACRO jsinclude BLOCK %]
337
[% MACRO jsinclude BLOCK %]
338
    [% INCLUDE 'datatables.inc' %]
338
    [% INCLUDE 'datatables.inc' %]
339
    [% INCLUDE 'select2.inc' %]
339
    [% INCLUDE 'select2.inc' %]
340
    <script>
340
    <script nonce="[% Koha.CSPNonce | $raw %]">
341
        $('#current-article-requests').ready(function() {
341
        $('#current-article-requests').ready(function() {
342
            $(".hide").hide();
342
            $(".hide").hide();
343
        });
343
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
    [% END %]</title
16
    [% END %]</title
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    .sql {
20
    .sql {
21
        display: none;
21
        display: none;
22
    }
22
    }
Lines 214-220 Link Here
214
[% MACRO jsinclude BLOCK %]
214
[% MACRO jsinclude BLOCK %]
215
    [% INCLUDE 'calendar.inc' %]
215
    [% INCLUDE 'calendar.inc' %]
216
    [% INCLUDE 'datatables.inc' %]
216
    [% INCLUDE 'datatables.inc' %]
217
    <script>
217
    <script nonce="[% Koha.CSPNonce | $raw %]">
218
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
218
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
219
         $(document).ready(function() {
219
         $(document).ready(function() {
220
             $("#holds-ratios").kohaTable(
220
             $("#holds-ratios").kohaTable(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-3 / +3 lines)
Lines 1504-1523 Link Here
1504
    [% Asset.js("js/pages/circulation.js") | $raw %]
1504
    [% Asset.js("js/pages/circulation.js") | $raw %]
1505
    [% Asset.js("js/modal_printer.js") | $raw %]
1505
    [% Asset.js("js/modal_printer.js") | $raw %]
1506
    [% IF ( ReturnClaims ) %]
1506
    [% IF ( ReturnClaims ) %]
1507
        <script>
1507
        <script nonce="[% Koha.CSPNonce | $raw %]">
1508
            /* Set a variable needed by resolve_claim_modal.js */
1508
            /* Set a variable needed by resolve_claim_modal.js */
1509
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1509
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1510
        </script>
1510
        </script>
1511
        [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1511
        [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1512
    [% END %]
1512
    [% END %]
1513
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1513
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
1514
        <script>
1514
        <script nonce="[% Koha.CSPNonce | $raw %]">
1515
            /* Set a variable needed by add_catalog_concern.js */
1515
            /* Set a variable needed by add_catalog_concern.js */
1516
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1516
            var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1517
        </script>
1517
        </script>
1518
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1518
        [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1519
    [% END %]
1519
    [% END %]
1520
    <script>
1520
    <script nonce="[% Koha.CSPNonce | $raw %]">
1521
        function Dopop(link) {
1521
        function Dopop(link) {
1522
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1522
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1523
            $("#barcode").focus();
1523
            $("#barcode").focus();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/set-library.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
    [% END %]</title
21
    [% END %]</title
22
>
22
>
23
[% INCLUDE 'doc-head-close.inc' %]
23
[% INCLUDE 'doc-head-close.inc' %]
24
<style>
24
<style nonce="[% Koha.CSPNonce | $raw %]">
25
    .noshow {
25
    .noshow {
26
        display: none;
26
        display: none;
27
    }
27
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt (-1 / +1 lines)
Lines 96-102 Link Here
96
96
97
[% MACRO jsinclude BLOCK %]
97
[% MACRO jsinclude BLOCK %]
98
    [% INCLUDE 'datatables.inc' %]
98
    [% INCLUDE 'datatables.inc' %]
99
    <script>
99
    <script nonce="[% Koha.CSPNonce | $raw %]">
100
        $(document).ready(function() {
100
        $(document).ready(function() {
101
            [% FOREACH library IN libraries %]
101
            [% FOREACH library IN libraries %]
102
                $("#transferst[% library.branchcode | html %]").kohaTable({
102
                $("#transferst[% library.branchcode | html %]").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt (-1 / +1 lines)
Lines 117-123 Link Here
117
117
118
[% MACRO jsinclude BLOCK %]
118
[% MACRO jsinclude BLOCK %]
119
    [% INCLUDE 'datatables.inc' %]
119
    [% INCLUDE 'datatables.inc' %]
120
    <script>
120
    <script nonce="[% Koha.CSPNonce | $raw %]">
121
        $(document).ready(function() {
121
        $(document).ready(function() {
122
            [% FOREACH branchesloo IN branchesloop %]
122
            [% FOREACH branchesloo IN branchesloop %]
123
                $("#transferst[% branchesloo.branchcode | html %]").kohaTable({
123
                $("#transferst[% branchesloo.branchcode | html %]").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
    [% END %]</title
16
    [% END %]</title
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    p {
20
    p {
21
        margin-top: 0;
21
        margin-top: 0;
22
    }
22
    }
Lines 380-386 Link Here
380
    [% INCLUDE 'select2.inc' %]
380
    [% INCLUDE 'select2.inc' %]
381
    [% INCLUDE 'datatables.inc' %]
381
    [% INCLUDE 'datatables.inc' %]
382
    [% Asset.js("js/hold-group.js") | $raw %]
382
    [% Asset.js("js/hold-group.js") | $raw %]
383
    <script>
383
    <script nonce="[% Koha.CSPNonce | $raw %]">
384
        $(document).ready(function() {
384
        $(document).ready(function() {
385
            // Apply select2 to all select fields having a "multiple" attribute
385
            // Apply select2 to all select fields having a "multiple" attribute
386
            let selectFields = document.querySelectorAll('select[multiple]');
386
            let selectFields = document.querySelectorAll('select[multiple]');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% FILTER collapse %]
18
[% FILTER collapse %]
19
    <style>
19
    <style nonce="[% Koha.CSPNonce | $raw %]">
20
        .tab-toolbar {
20
        .tab-toolbar {
21
            padding: 0.5rem 0;
21
            padding: 0.5rem 0;
22
            margin-bottom: 0.5rem;
22
            margin-bottom: 0.5rem;
Lines 204-210 Link Here
204
204
205
[% MACRO jsinclude BLOCK %]
205
[% MACRO jsinclude BLOCK %]
206
    [% INCLUDE 'datatables.inc' %]
206
    [% INCLUDE 'datatables.inc' %]
207
    <script>
207
    <script nonce="[% Koha.CSPNonce | $raw %]">
208
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
208
        var MSG_CANCEL_SELECTED = _("Cancel selected (%s)");
209
        var holdst_table_settings  = [% TablesSettings.GetTableSettings( 'circ', 'holds_awaiting_pickup', 'holdst',  'json' ) | $raw %];
209
        var holdst_table_settings  = [% TablesSettings.GetTableSettings( 'circ', 'holds_awaiting_pickup', 'holdst',  'json' ) | $raw %];
210
        var holdso_table_settings  = [% TablesSettings.GetTableSettings( 'circ', 'holds_awaiting_pickup', 'holdso',  'json' ) | $raw %];
210
        var holdso_table_settings  = [% TablesSettings.GetTableSettings( 'circ', 'holds_awaiting_pickup', 'holdso',  'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt (-1 / +1 lines)
Lines 91-97 Link Here
91
[% MACRO jsinclude BLOCK %]
91
[% MACRO jsinclude BLOCK %]
92
    [% INCLUDE 'datatables.inc' %]
92
    [% INCLUDE 'datatables.inc' %]
93
    [% Asset.js("js/tools-menu.js") | $raw %]
93
    [% Asset.js("js/tools-menu.js") | $raw %]
94
    <script>
94
    <script nonce="[% Koha.CSPNonce | $raw %]">
95
        $(document).ready(function () {
95
        $(document).ready(function () {
96
            eTable = $("#enrollments-table").kohaTable({
96
            eTable = $("#enrollments-table").kohaTable({
97
                pagingType: "full",
97
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-1 / +1 lines)
Lines 146-152 Link Here
146
[% MACRO jsinclude BLOCK %]
146
[% MACRO jsinclude BLOCK %]
147
    [% INCLUDE 'datatables.inc' %]
147
    [% INCLUDE 'datatables.inc' %]
148
    [% Asset.js("js/tools-menu.js") | $raw %]
148
    [% Asset.js("js/tools-menu.js") | $raw %]
149
    <script>
149
    <script nonce="[% Koha.CSPNonce | $raw %]">
150
        $(document).ready(function () {
150
        $(document).ready(function () {
151
            tTable = $("#club-templates-table").kohaTable({
151
            tTable = $("#club-templates-table").kohaTable({
152
                pagingType: "full",
152
                pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-1 / +1 lines)
Lines 58-64 Link Here
58
        </tbody>
58
        </tbody>
59
    </table>
59
    </table>
60
[% END %]
60
[% END %]
61
<script>
61
<script nonce="[% Koha.CSPNonce | $raw %]">
62
    var clubs_dt_params = {
62
    var clubs_dt_params = {
63
        paging: true,
63
        paging: true,
64
    };
64
    };
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt (-1 / +1 lines)
Lines 58-64 Link Here
58
        </fieldset>
58
        </fieldset>
59
    </form>
59
    </form>
60
</div>
60
</div>
61
<script>
61
<script nonce="[% Koha.CSPNonce | $raw %]">
62
    if([% enrollent_id | html %]){
62
    if([% enrollent_id | html %]){
63
        $("#heading").html(_("Modifying enrollment")+" <em>[% club.name | html %]</em>");
63
        $("#heading").html(_("Modifying enrollment")+" <em>[% club.name | html %]</em>");
64
    }
64
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt (-2 / +2 lines)
Lines 18-24 Link Here
18
    [% END %]</title
18
    [% END %]</title
19
>
19
>
20
[% INCLUDE 'doc-head-close.inc' %]
20
[% INCLUDE 'doc-head-close.inc' %]
21
<style>
21
<style nonce="[% Koha.CSPNonce | $raw %]">
22
    .club-field,
22
    .club-field,
23
    .enrollment-field {
23
    .enrollment-field {
24
        border-top: 1px solid #ddd;
24
        border-top: 1px solid #ddd;
Lines 252-258 Link Here
252
</div>
252
</div>
253
253
254
[% MACRO jsinclude BLOCK %]
254
[% MACRO jsinclude BLOCK %]
255
    <script>
255
    <script nonce="[% Koha.CSPNonce | $raw %]">
256
        $("body").on("click", ".add_club_field", function (e) {
256
        $("body").on("click", ".add_club_field", function (e) {
257
            e.preventDefault();
257
            e.preventDefault();
258
            $("#new-field-template").clone().attr("id", "").show().appendTo("#club-template-fields");
258
            $("#new-field-template").clone().attr("id", "").show().appendTo("#club-template-fields");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt (-1 / +1 lines)
Lines 78-84 Link Here
78
[% END %]
78
[% END %]
79
79
80
[% MACRO jsinclude BLOCK %]
80
[% MACRO jsinclude BLOCK %]
81
    <script>
81
    <script nonce="[% Koha.CSPNonce | $raw %]">
82
        $(document).ready(function () {
82
        $(document).ready(function () {
83
            $("input[type='submit']").click(function (e) {
83
            $("input[type='submit']").click(function (e) {
84
                if ($("#biblionumber").val().length > 0 && $("#barcode").val().length > 0) {
84
                if ($("#biblionumber").val().length > 0 && $("#barcode").val().length > 0) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt (-1 / +1 lines)
Lines 232-238 Link Here
232
[% END %]
232
[% END %]
233
233
234
[% MACRO jsinclude BLOCK %]
234
[% MACRO jsinclude BLOCK %]
235
    <script>
235
    <script nonce="[% Koha.CSPNonce | $raw %]">
236
        $(document).ready(function () {
236
        $(document).ready(function () {
237
            $(".field-toggle").change(function () {
237
            $(".field-toggle").change(function () {
238
                if (this.checked) {
238
                if (this.checked) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt (-1 / +1 lines)
Lines 213-219 Link Here
213
[% END %]
213
[% END %]
214
214
215
[% MACRO jsinclude BLOCK %]
215
[% MACRO jsinclude BLOCK %]
216
    <script>
216
    <script nonce="[% Koha.CSPNonce | $raw %]">
217
        //<![CDATA[
217
        //<![CDATA[
218
        $(document).ready(function () {
218
        $(document).ready(function () {
219
            $(".field-toggle").change(function () {
219
            $(".field-toggle").change(function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt (-1 / +1 lines)
Lines 86-92 Link Here
86
[% END %]
86
[% END %]
87
87
88
[% MACRO jsinclude BLOCK %]
88
[% MACRO jsinclude BLOCK %]
89
    <script>
89
    <script nonce="[% Koha.CSPNonce | $raw %]">
90
        $(document).ready(function () {
90
        $(document).ready(function () {
91
            $("#batch_rm_btn").click(function () {
91
            $("#batch_rm_btn").click(function () {
92
                return confirmDelete(_("Are you sure you want to remove these items from all courses?"));
92
                return confirmDelete(_("Are you sure you want to remove these items from all courses?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-2 / +2 lines)
Lines 18-24 Link Here
18
>
18
>
19
[% INCLUDE 'doc-head-close.inc' %]
19
[% INCLUDE 'doc-head-close.inc' %]
20
[% FILTER collapse %]
20
[% FILTER collapse %]
21
    <style>
21
    <style nonce="[% Koha.CSPNonce | $raw %]">
22
        .biblio-level-info {
22
        .biblio-level-info {
23
            background-color: #f3f3f3;
23
            background-color: #f3f3f3;
24
            border-radius: 5px;
24
            border-radius: 5px;
Lines 360-366 Link Here
360
360
361
[% MACRO jsinclude BLOCK %]
361
[% MACRO jsinclude BLOCK %]
362
    [% INCLUDE 'datatables.inc' %]
362
    [% INCLUDE 'datatables.inc' %]
363
    <script>
363
    <script nonce="[% Koha.CSPNonce | $raw %]">
364
        var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'reserves', 'course_reserves_table', 'json' ) | $raw %];
364
        var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'reserves', 'course_reserves_table', 'json' ) | $raw %];
365
        $(document).ready(function(){
365
        $(document).ready(function(){
366
366
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt (-1 / +1 lines)
Lines 94-100 Link Here
94
94
95
[% MACRO jsinclude BLOCK %]
95
[% MACRO jsinclude BLOCK %]
96
    [% INCLUDE 'datatables.inc' %]
96
    [% INCLUDE 'datatables.inc' %]
97
    <script>
97
    <script nonce="[% Koha.CSPNonce | $raw %]">
98
        var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %];
98
        var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %];
99
        $(document).ready(function() {
99
        $(document).ready(function() {
100
            var ctable = $("#course_reserves_table").kohaTable(
100
            var ctable = $("#course_reserves_table").kohaTable(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
    [% END %]</title
15
    [% END %]</title
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
<style>
18
<style nonce="[% Koha.CSPNonce | $raw %]">
19
    #course_instructors {
19
    #course_instructors {
20
        float: left;
20
        float: left;
21
    }
21
    }
Lines 192-198 Link Here
192
192
193
[% IF ( departments ) %]
193
[% IF ( departments ) %]
194
    [% MACRO jsinclude BLOCK %]
194
    [% MACRO jsinclude BLOCK %]
195
        <script>
195
        <script nonce="[% Koha.CSPNonce | $raw %]">
196
            $(document).ready(function () {
196
            $(document).ready(function () {
197
                patron_autocomplete($("#find_instructor"), {
197
                patron_autocomplete($("#find_instructor"), {
198
                    "on-select-add-to": { container: $("#instructors"), input_name: "instructors" },
198
                    "on-select-add-to": { container: $("#instructors"), input_name: "instructors" },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/erm/erm.tt (-1 / +1 lines)
Lines 27-33 Link Here
27
    [% INCLUDE 'calendar.inc' %]
27
    [% INCLUDE 'calendar.inc' %]
28
    [% INCLUDE 'datatables.inc' %]
28
    [% INCLUDE 'datatables.inc' %]
29
    [% INCLUDE 'js-date-format.inc' %]
29
    [% INCLUDE 'js-date-format.inc' %]
30
    <script>
30
    <script nonce="[% Koha.CSPNonce | $raw %]">
31
        const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
31
        const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
32
        const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
32
        const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
33
        const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
33
        const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-6 / +6 lines)
Lines 83-89 Link Here
83
[% WRAPPER 'main-container.inc' wide_centered => ( op == 'illlist' ? 0 : 1 ) aside = ( op == 'illlist' ? 'ill-filter' : '' ) %]
83
[% WRAPPER 'main-container.inc' wide_centered => ( op == 'illlist' ? 0 : 1 ) aside = ( op == 'illlist' ? 'ill-filter' : '' ) %]
84
84
85
    [% IF op == 'illlist' %]
85
    [% IF op == 'illlist' %]
86
        <script>
86
        <script nonce="[% Koha.CSPNonce | $raw %]">
87
            var ill_table_actions = [% table_actions | $raw %];
87
            var ill_table_actions = [% table_actions | $raw %];
88
        </script>
88
        </script>
89
    [% END %]
89
    [% END %]
Lines 1121-1131 Link Here
1121
    [% INCLUDE 'calendar.inc' %]
1121
    [% INCLUDE 'calendar.inc' %]
1122
    [% INCLUDE 'select2.inc' %]
1122
    [% INCLUDE 'select2.inc' %]
1123
    [% IF metadata_enrichment_services %]
1123
    [% IF metadata_enrichment_services %]
1124
        <script>
1124
        <script nonce="[% Koha.CSPNonce | $raw %]">
1125
            var ill_check_availability_syspref = '[% Koha.Preference('ILLCheckAvailability') | html %]';
1125
            var ill_check_availability_syspref = '[% Koha.Preference('ILLCheckAvailability') | html %]';
1126
            var metadata_enrichment_services = [% metadata_enrichment_services | $raw %];
1126
            var metadata_enrichment_services = [% metadata_enrichment_services | $raw %];
1127
        </script>
1127
        </script>
1128
        <script>
1128
        <script nonce="[% Koha.CSPNonce | $raw %]">
1129
            [% IF batch_availability_services %]
1129
            [% IF batch_availability_services %]
1130
            var batch_availability_services = [% batch_availability_services | $raw %];
1130
            var batch_availability_services = [% batch_availability_services | $raw %];
1131
            [% ELSE %]
1131
            [% ELSE %]
Lines 1133-1139 Link Here
1133
            [% END %]
1133
            [% END %]
1134
        </script>
1134
        </script>
1135
    [% END %]
1135
    [% END %]
1136
    <script>
1136
    <script nonce="[% Koha.CSPNonce | $raw %]">
1137
        var prefilters = '[% prefilters | $raw %]';
1137
        var prefilters = '[% prefilters | $raw %]';
1138
        // Set column settings
1138
        // Set column settings
1139
        var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
1139
        var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
Lines 1152-1158 Link Here
1152
        var metadata = "[% metadata | $raw %]";
1152
        var metadata = "[% metadata | $raw %]";
1153
        [% END %]
1153
        [% END %]
1154
    </script>
1154
    </script>
1155
    <script>
1155
    <script nonce="[% Koha.CSPNonce | $raw %]">
1156
        $("#ill_checkout_inhouse_select").on("change", function () {
1156
        $("#ill_checkout_inhouse_select").on("change", function () {
1157
            if ($(this).val().length > 0) {
1157
            if ($(this).val().length > 0) {
1158
                $(".ill_checkout_due_date").hide();
1158
                $(".ill_checkout_due_date").hide();
Lines 1184-1190 Link Here
1184
        [% Asset.js("js/ill-autobackend.js") | $raw %]
1184
        [% Asset.js("js/ill-autobackend.js") | $raw %]
1185
    [% END %]
1185
    [% END %]
1186
    [% IF op == 'availability' && Koha.Preference('ILLCheckAvailability') %]
1186
    [% IF op == 'availability' && Koha.Preference('ILLCheckAvailability') %]
1187
        <script>
1187
        <script nonce="[% Koha.CSPNonce | $raw %]">
1188
            $(document).ready(function () {
1188
            $(document).ready(function () {
1189
                window.doSearch();
1189
                window.doSearch();
1190
            });
1190
            });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-1 / +1 lines)
Lines 482-488 Link Here
482
482
483
[% IF ( selectframeworks ) %]
483
[% IF ( selectframeworks ) %]
484
    [% MACRO jsinclude BLOCK %]
484
    [% MACRO jsinclude BLOCK %]
485
        <script>
485
        <script nonce="[% Koha.CSPNonce | $raw %]">
486
            $(document).ready(function () {
486
            $(document).ready(function () {
487
                $(".selectall,.deselectall").on("click", function (e) {
487
                $(".selectall,.deselectall").on("click", function (e) {
488
                    e.preventDefault();
488
                    e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +1 lines)
Lines 338-344 Link Here
338
</div>
338
</div>
339
<!-- /#container-main.container-fluid -->
339
<!-- /#container-main.container-fluid -->
340
[% MACRO jsinclude BLOCK %]
340
[% MACRO jsinclude BLOCK %]
341
    <script>
341
    <script nonce="[% Koha.CSPNonce | $raw %]">
342
        var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
342
        var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
343
        $(document).ready(function () {
343
        $(document).ready(function () {
344
            $(".news_delete").on("click", function () {
344
            $(".news_delete").on("click", function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/barcode-print.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
14
[% Asset.css("css/humanmsg.css") | $raw %]
14
[% Asset.css("css/humanmsg.css") | $raw %]
15
[% FILTER collapse %]
15
[% FILTER collapse %]
16
    <style>
16
    <style nonce="[% Koha.CSPNonce | $raw %]">
17
        input[type="range"] {
17
        input[type="range"] {
18
            display: inline-block;
18
            display: inline-block;
19
            width: auto;
19
            width: auto;
Lines 126-132 Link Here
126
126
127
[% MACRO jsinclude BLOCK %]
127
[% MACRO jsinclude BLOCK %]
128
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
128
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
129
    <script>
129
    <script nonce="[% Koha.CSPNonce | $raw %]">
130
        var base_url = "[% Koha.Preference('staffClientBaseURL') | html %]";
130
        var base_url = "[% Koha.Preference('staffClientBaseURL') | html %]";
131
131
132
        function showBarcodeText( path, dimensions ){
132
        function showBarcodeText( path, dimensions ){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-1 / +1 lines)
Lines 231-237 Link Here
231
[% MACRO jsinclude BLOCK %]
231
[% MACRO jsinclude BLOCK %]
232
    [% INCLUDE 'datatables.inc' %]
232
    [% INCLUDE 'datatables.inc' %]
233
    [% Asset.js("js/labels-menu.js") | $raw %]
233
    [% Asset.js("js/labels-menu.js") | $raw %]
234
    <script>
234
    <script nonce="[% Koha.CSPNonce | $raw %]">
235
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
235
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
236
            $(".focus:last").select();
236
            $(".focus:last").select();
237
        }
237
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-1 / +1 lines)
Lines 230-236 Link Here
230
230
231
[% MACRO jsinclude BLOCK %]
231
[% MACRO jsinclude BLOCK %]
232
    [% Asset.js("js/labels-menu.js") | $raw %]
232
    [% Asset.js("js/labels-menu.js") | $raw %]
233
    <script>
233
    <script nonce="[% Koha.CSPNonce | $raw %]">
234
        $(document).ready(function () {
234
        $(document).ready(function () {
235
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
235
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
236
            $("input[name='layout_choice']").change(function () {
236
            $("input[name='layout_choice']").change(function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-1 / +1 lines)
Lines 130-136 Link Here
130
130
131
[% MACRO jsinclude BLOCK %]
131
[% MACRO jsinclude BLOCK %]
132
    [% Asset.js("js/labels-menu.js") | $raw %]
132
    [% Asset.js("js/labels-menu.js") | $raw %]
133
    <script>
133
    <script nonce="[% Koha.CSPNonce | $raw %]">
134
        $(document).ready(function () {
134
        $(document).ready(function () {
135
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
135
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
136
            var selectedUnit = $("#units option:selected").val();
136
            var selectedUnit = $("#units option:selected").val();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt (-1 / +1 lines)
Lines 55-61 Link Here
55
[% END %]
55
[% END %]
56
56
57
[% MACRO jsinclude BLOCK %]
57
[% MACRO jsinclude BLOCK %]
58
    <script>
58
    <script nonce="[% Koha.CSPNonce | $raw %]">
59
        function Xport() {
59
        function Xport() {
60
            var str = "";
60
            var str = "";
61
            str += "from=" + document.getElementById("from-input").value + "&";
61
            str += "from=" + document.getElementById("from-input").value + "&";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-1 / +1 lines)
Lines 172-178 Link Here
172
172
173
[% MACRO jsinclude BLOCK %]
173
[% MACRO jsinclude BLOCK %]
174
    [% Asset.js("js/labels-menu.js") | $raw %]
174
    [% Asset.js("js/labels-menu.js") | $raw %]
175
    <script>
175
    <script nonce="[% Koha.CSPNonce | $raw %]">
176
        $(document).ready(function () {
176
        $(document).ready(function () {
177
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
177
            $('.sidebar_menu a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
178
            var selectedUnit = $("#units option:selected").val();
178
            var selectedUnit = $("#units option:selected").val();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-1 / +1 lines)
Lines 157-163 Link Here
157
157
158
[% MACRO jsinclude BLOCK %]
158
[% MACRO jsinclude BLOCK %]
159
    [% INCLUDE 'datatables.inc' %]
159
    [% INCLUDE 'datatables.inc' %]
160
    <script>
160
    <script nonce="[% Koha.CSPNonce | $raw %]">
161
        function Xport() {
161
        function Xport() {
162
            batches= new Array;
162
            batches= new Array;
163
            if(document.layouts.action.length > 0) {
163
            if(document.layouts.action.length > 0) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt (-1 / +1 lines)
Lines 9-15 Link Here
9
    [% END %]
9
    [% END %]
10
</title>
10
</title>
11
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
11
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
12
<style>
12
<style nonce="[% Koha.CSPNonce | $raw %]">
13
    table {
13
    table {
14
        border-collapse: separate;
14
        border-collapse: separate;
15
        border-spacing: 0;
15
        border-spacing: 0;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-1 / +1 lines)
Lines 142-148 Link Here
142
<!-- /.main.container-fluid -->
142
<!-- /.main.container-fluid -->
143
143
144
[% MACRO jsinclude BLOCK %]
144
[% MACRO jsinclude BLOCK %]
145
    <script>
145
    <script nonce="[% Koha.CSPNonce | $raw %]">
146
        $(document).ready(function(){
146
        $(document).ready(function(){
147
            $("#CheckAll").click(function(e){
147
            $("#CheckAll").click(function(e){
148
                e.preventDefault();
148
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-home.tt (-1 / +1 lines)
Lines 46-52 Link Here
46
    </form>
46
    </form>
47
[% END %]
47
[% END %]
48
[% MACRO jsinclude BLOCK %]
48
[% MACRO jsinclude BLOCK %]
49
    <script>
49
    <script nonce="[% Koha.CSPNonce | $raw %]">
50
        $(document).ready(function () {
50
        $(document).ready(function () {
51
            $("#spinelabelprint").on("submit", function (e) {
51
            $("#spinelabelprint").on("submit", function (e) {
52
                e.preventDefault();
52
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt (-3 / +3 lines)
Lines 12-18 Link Here
12
>
12
>
13
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
13
[% INCLUDE 'doc-head-close.inc' popup => 1 %]
14
[% Asset.css("css/spinelabel.css") | $raw %]
14
[% Asset.css("css/spinelabel.css") | $raw %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    @media print {
16
    @media print {
17
        .noprint {
17
        .noprint {
18
            display: none;
18
            display: none;
Lines 20-26 Link Here
20
    }
20
    }
21
</style>
21
</style>
22
<!-- prettier-ignore-start -->
22
<!-- prettier-ignore-start -->
23
[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
23
[% IF ( IntranetUserCSS ) %]<style nonce="[% Koha.CSPNonce | $raw %]">[% IntranetUserCSS | $raw %]</style>[% END %]
24
<!-- prettier-ignore-end -->
24
<!-- prettier-ignore-end -->
25
</head>
25
</head>
26
26
Lines 64-70 Link Here
64
[% IF ( autoprint ) %]
64
[% IF ( autoprint ) %]
65
    [% INCLUDE 'slip-print.inc' #printThenClose %]
65
    [% INCLUDE 'slip-print.inc' #printThenClose %]
66
[% END %]
66
[% END %]
67
<script>
67
<script nonce="[% Koha.CSPNonce | $raw %]">
68
    $(document).ready(function () {
68
    $(document).ready(function () {
69
        $(".print-label").on("click", function (e) {
69
        $(".print-label").on("click", function (e) {
70
            e.preventDefault();
70
            e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/alert-subscriptions.tt (-1 / +1 lines)
Lines 92-98 Link Here
92
    [% INCLUDE 'str/members-menu.inc' %]
92
    [% INCLUDE 'str/members-menu.inc' %]
93
    [% Asset.js("js/members-menu.js") | $raw %]
93
    [% Asset.js("js/members-menu.js") | $raw %]
94
    [% INCLUDE 'datatables.inc' %]
94
    [% INCLUDE 'datatables.inc' %]
95
    <script>
95
    <script nonce="[% Koha.CSPNonce | $raw %]">
96
        $(document).ready(function () {
96
        $(document).ready(function () {
97
            $("#subscriptions").kohaTable();
97
            $("#subscriptions").kohaTable();
98
            $(".unsubscribe").submit(function () {
98
            $(".unsubscribe").submit(function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt (-1 / +1 lines)
Lines 160-166 Link Here
160
    [% INCLUDE 'str/members-menu.inc' %]
160
    [% INCLUDE 'str/members-menu.inc' %]
161
    [% Asset.js("js/members-menu.js") | $raw %]
161
    [% Asset.js("js/members-menu.js") | $raw %]
162
    [% Asset.js("js/copyToClipboard.js") | $raw %]
162
    [% Asset.js("js/copyToClipboard.js") | $raw %]
163
    <script>
163
    <script nonce="[% Koha.CSPNonce | $raw %]">
164
        $(document).ready(function () {
164
        $(document).ready(function () {
165
            $(".delete").on("click", function (e) {
165
            $(".delete").on("click", function (e) {
166
                return confirmDelete(_("Are you sure you want to delete this key?"));
166
                return confirmDelete(_("Are you sure you want to delete this key?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-1 / +1 lines)
Lines 577-583 Link Here
577
    [% INCLUDE 'format_price.inc' %]
577
    [% INCLUDE 'format_price.inc' %]
578
    [% INCLUDE 'str/members-menu.inc' %]
578
    [% INCLUDE 'str/members-menu.inc' %]
579
    [% Asset.js("js/members-menu.js") | $raw %]
579
    [% Asset.js("js/members-menu.js") | $raw %]
580
    <script>
580
    <script nonce="[% Koha.CSPNonce | $raw %]">
581
        $(document).ready(function() {
581
        $(document).ready(function() {
582
            [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
582
            [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
583
                window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&change_given=[% change_given | html %]&accountlines_id=[% payment_id | html %]', '_blank');
583
                window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&change_given=[% change_given | html %]&accountlines_id=[% payment_id | html %]', '_blank');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt (-1 / +1 lines)
Lines 70-76 Link Here
70
    [% Asset.js("js/members-menu.js") | $raw %]
70
    [% Asset.js("js/members-menu.js") | $raw %]
71
71
72
    [% INCLUDE 'datatables.inc' %]
72
    [% INCLUDE 'datatables.inc' %]
73
    <script>
73
    <script nonce="[% Koha.CSPNonce | $raw %]">
74
        $(document).ready(function () {
74
        $(document).ready(function () {
75
            $("#pending_updates table").kohaTable({
75
            $("#pending_updates table").kohaTable({
76
                paging: false,
76
                paging: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt (-1 / +1 lines)
Lines 118-124 Link Here
118
[% MACRO jsinclude BLOCK %]
118
[% MACRO jsinclude BLOCK %]
119
    [% INCLUDE 'str/members-menu.inc' %]
119
    [% INCLUDE 'str/members-menu.inc' %]
120
    [% Asset.js("js/members-menu.js") | $raw %]
120
    [% Asset.js("js/members-menu.js") | $raw %]
121
    <script>
121
    <script nonce="[% Koha.CSPNonce | $raw %]">
122
        $(document).ready(function () {
122
        $(document).ready(function () {
123
            $(".confirmdelete").on("click", function () {
123
            $(".confirmdelete").on("click", function () {
124
                $(this).parents("tr").addClass("warn");
124
                $(this).parents("tr").addClass("warn");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt (-2 / +2 lines)
Lines 152-158 Link Here
152
    [% INCLUDE 'str/members-menu.inc' %]
152
    [% INCLUDE 'str/members-menu.inc' %]
153
    [% Asset.js("js/members-menu.js") | $raw %]
153
    [% Asset.js("js/members-menu.js") | $raw %]
154
    [% INCLUDE 'js-biblio-format.inc' %]
154
    [% INCLUDE 'js-biblio-format.inc' %]
155
    <script>
155
    <script nonce="[% Koha.CSPNonce | $raw %]">
156
        const all_libraries = [% To.json(Branches.all) | $raw %].map(e => {
156
        const all_libraries = [% To.json(Branches.all) | $raw %].map(e => {
157
                    e["_id"] = e["branchcode"];
157
                    e["_id"] = e["branchcode"];
158
                    e["_str"] = e["branchname"];
158
                    e["_str"] = e["branchname"];
Lines 177-183 Link Here
177
177
178
        const show_itemtype_column = [% Koha.Preference('AllowHoldItemTypeSelection') ? 1 : 0 | html %];
178
        const show_itemtype_column = [% Koha.Preference('AllowHoldItemTypeSelection') ? 1 : 0 | html %];
179
    </script>
179
    </script>
180
    <script>
180
    <script nonce="[% Koha.CSPNonce | $raw %]">
181
        $(document).ready(function() {
181
        $(document).ready(function() {
182
            var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') | $raw %];
182
            var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') | $raw %];
183
183
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt (-1 / +1 lines)
Lines 417-423 Link Here
417
[% MACRO jsinclude BLOCK %]
417
[% MACRO jsinclude BLOCK %]
418
    [% INCLUDE 'calendar.inc' %]
418
    [% INCLUDE 'calendar.inc' %]
419
    [% INCLUDE 'datatables.inc' %]
419
    [% INCLUDE 'datatables.inc' %]
420
    <script>
420
    <script nonce="[% Koha.CSPNonce | $raw %]">
421
        $(document).ready(function () {
421
        $(document).ready(function () {
422
            $(".delete").click(function () {
422
            $(".delete").click(function () {
423
                return confirm(_("Are you sure you want to delete this delivery?"));
423
                return confirm(_("Are you sure you want to delete this delivery?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/ill-requests.tt (-1 / +1 lines)
Lines 51-57 Link Here
51
    [% INCLUDE 'datatables.inc' %]
51
    [% INCLUDE 'datatables.inc' %]
52
    [% INCLUDE 'js-biblio-format.inc' %]
52
    [% INCLUDE 'js-biblio-format.inc' %]
53
    [% INCLUDE 'calendar.inc' %]
53
    [% INCLUDE 'calendar.inc' %]
54
    <script>
54
    <script nonce="[% Koha.CSPNonce | $raw %]">
55
        var prefilters = '[% prefilters | html %]';
55
        var prefilters = '[% prefilters | html %]';
56
        // Set column settings
56
        // Set column settings
57
        var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
57
        var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt (-1 / +1 lines)
Lines 121-127 Link Here
121
    [% INCLUDE 'str/members-menu.inc' %]
121
    [% INCLUDE 'str/members-menu.inc' %]
122
    [% Asset.js("js/members-menu.js") | $raw %]
122
    [% Asset.js("js/members-menu.js") | $raw %]
123
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
123
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
124
    <script>
124
    <script nonce="[% Koha.CSPNonce | $raw %]">
125
        $(document).ready(function(){
125
        $(document).ready(function(){
126
            $('#mancredit').preventDoubleFormSubmit();
126
            $('#mancredit').preventDoubleFormSubmit();
127
            $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
127
            $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt (-1 / +1 lines)
Lines 119-125 Link Here
119
    [% INCLUDE 'str/members-menu.inc' %]
119
    [% INCLUDE 'str/members-menu.inc' %]
120
    [% Asset.js("js/members-menu.js") | $raw %]
120
    [% Asset.js("js/members-menu.js") | $raw %]
121
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
121
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
122
    <script>
122
    <script nonce="[% Koha.CSPNonce | $raw %]">
123
        var type_fees = {};
123
        var type_fees = {};
124
        [% FOREACH debit_type IN debit_types %]
124
        [% FOREACH debit_type IN debit_types %]
125
            type_fees['[% debit_type.code | html %]'] = "[% IF debit_type.default_amount %][% debit_type.default_amount | $Price on_editing => 1 %][% END %]";
125
            type_fees['[% debit_type.code | html %]'] = "[% IF debit_type.default_amount %][% debit_type.default_amount | $Price on_editing => 1 %][% END %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-1 / +1 lines)
Lines 125-131 Link Here
125
[% MACRO jsinclude BLOCK %]
125
[% MACRO jsinclude BLOCK %]
126
    [% INCLUDE 'str/members-menu.inc' %]
126
    [% INCLUDE 'str/members-menu.inc' %]
127
    [% Asset.js("js/members-menu.js") | $raw %]
127
    [% Asset.js("js/members-menu.js") | $raw %]
128
    <script>
128
    <script nonce="[% Koha.CSPNonce | $raw %]">
129
        $(document).ready(function() {
129
        $(document).ready(function() {
130
130
131
            [% IF disable_superlibrarian_privs && patron.is_superlibrarian %]
131
            [% IF disable_superlibrarian_privs && patron.is_superlibrarian %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt (-1 / +1 lines)
Lines 125-131 Link Here
125
[% MACRO jsinclude BLOCK %]
125
[% MACRO jsinclude BLOCK %]
126
    [% INCLUDE 'str/members-menu.inc' %]
126
    [% INCLUDE 'str/members-menu.inc' %]
127
    [% Asset.js("js/members-menu.js") | $raw %]
127
    [% Asset.js("js/members-menu.js") | $raw %]
128
    <script>
128
    <script nonce="[% Koha.CSPNonce | $raw %]">
129
        function generate_password() {
129
        function generate_password() {
130
            // Always generate a strong password
130
            // Always generate a strong password
131
            var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
131
            var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-2 / +2 lines)
Lines 184-190 Link Here
184
    [% Asset.js("js/members-menu.js") | $raw %]
184
    [% Asset.js("js/members-menu.js") | $raw %]
185
    [% Asset.js("js/members-patron-selections.js") | $raw %]
185
    [% Asset.js("js/members-patron-selections.js") | $raw %]
186
    [% INCLUDE 'select2.inc' %]
186
    [% INCLUDE 'select2.inc' %]
187
    <script>
187
    <script nonce="[% Koha.CSPNonce | $raw %]">
188
        $(document).ready(function () {
188
        $(document).ready(function () {
189
            $("#merge-patrons, #batch-mod-patrons").prop("disabled", true);
189
            $("#merge-patrons, #batch-mod-patrons").prop("disabled", true);
190
            $("#memberresultst").on("change", "input.selection", function () {
190
            $("#memberresultst").on("change", "input.selection", function () {
Lines 343-349 Link Here
343
            }
343
            }
344
        });
344
        });
345
    </script>
345
    </script>
346
    <script>
346
    <script nonce="[% Koha.CSPNonce | $raw %]">
347
        // Apply DataTables on the results table
347
        // Apply DataTables on the results table
348
        var table_settings = [% TablesSettings.GetTableSettings( 'members', 'member', 'memberresultst', 'json' ) | $raw %];
348
        var table_settings = [% TablesSettings.GetTableSettings( 'members', 'member', 'memberresultst', 'json' ) | $raw %];
349
        [% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %]
349
        [% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +1 lines)
Lines 1614-1620 Link Here
1614
    [% INCLUDE 'calendar.inc' %]
1614
    [% INCLUDE 'calendar.inc' %]
1615
    [% INCLUDE 'str/members-menu.inc' %]
1615
    [% INCLUDE 'str/members-menu.inc' %]
1616
    [% Asset.js("js/members-menu.js") | $raw %]
1616
    [% Asset.js("js/members-menu.js") | $raw %]
1617
    <script>
1617
    <script nonce="[% Koha.CSPNonce | $raw %]">
1618
        function update_cardnumber_warning(size){
1618
        function update_cardnumber_warning(size){
1619
            var max_len = [% maxlength_cardnumber | html %];
1619
            var max_len = [% maxlength_cardnumber | html %];
1620
            if ( size >= max_len ) {
1620
            if ( size >= max_len ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt (-1 / +1 lines)
Lines 271-277 Link Here
271
[% MACRO jsinclude BLOCK %]
271
[% MACRO jsinclude BLOCK %]
272
    [% INCLUDE 'str/members-menu.inc' %]
272
    [% INCLUDE 'str/members-menu.inc' %]
273
    [% Asset.js("js/members-menu.js") | $raw %]
273
    [% Asset.js("js/members-menu.js") | $raw %]
274
    <script>
274
    <script nonce="[% Koha.CSPNonce | $raw %]">
275
        $(document).ready(function(){
275
        $(document).ready(function(){
276
            [%- IF ( active ) -%]
276
            [%- IF ( active ) -%]
277
                $("#panel-" + [% active | html %] + "_panel").collapse("show");
277
                $("#panel-" + [% active | html %] + "_panel").collapse("show");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
>
15
>
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% FILTER collapse %]
17
[% FILTER collapse %]
18
    <style>
18
    <style nonce="[% Koha.CSPNonce | $raw %]">
19
        ins {
19
        ins {
20
            background-color: #e6ffe6;
20
            background-color: #e6ffe6;
21
        }
21
        }
Lines 325-331 Link Here
325
    [% Asset.js("js/members-menu.js") | $raw %]
325
    [% Asset.js("js/members-menu.js") | $raw %]
326
    [% Asset.js("js/members-patron-selections.js") | $raw %]
326
    [% Asset.js("js/members-patron-selections.js") | $raw %]
327
    [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
327
    [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
328
    <script>
328
    <script nonce="[% Koha.CSPNonce | $raw %]">
329
        $(document).ready(function () {
329
        $(document).ready(function () {
330
            var controls = $("#merge-patrons, #compare_patrons");
330
            var controls = $("#merge-patrons, #compare_patrons");
331
            controls.prop("disabled", true);
331
            controls.prop("disabled", true);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt (-2 / +2 lines)
Lines 18-24 Link Here
18
    [% END %]</title
18
    [% END %]</title
19
>
19
>
20
[% INCLUDE 'doc-head-close.inc' %]
20
[% INCLUDE 'doc-head-close.inc' %]
21
<style>
21
<style nonce="[% Koha.CSPNonce | $raw %]">
22
    .pager div.dt-buttons {
22
    .pager div.dt-buttons {
23
        justify-content: flex-start;
23
        justify-content: flex-start;
24
    }
24
    }
Lines 172-178 Link Here
172
[% MACRO jsinclude BLOCK %]
172
[% MACRO jsinclude BLOCK %]
173
    [% INCLUDE 'slip-print.inc' #printThenClose %]
173
    [% INCLUDE 'slip-print.inc' #printThenClose %]
174
    [% INCLUDE 'datatables.inc' %]
174
    [% INCLUDE 'datatables.inc' %]
175
    <script>
175
    <script nonce="[% Koha.CSPNonce | $raw %]">
176
        var checkouts_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %];
176
        var checkouts_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-checkouts', 'json' ) | $raw %];
177
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
177
        var holds_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-holds', 'json' ) | $raw %];
178
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
178
        var fines_columns = [% TablesSettings.GetTableSettings( 'circ', 'print_summary', 'print-summary-fines', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 / +2 lines)
Lines 799-805 Link Here
799
    [% INCLUDE 'datatables.inc' %]
799
    [% INCLUDE 'datatables.inc' %]
800
    [% INCLUDE 'select2.inc' %]
800
    [% INCLUDE 'select2.inc' %]
801
    [% PROCESS 'modal-claims-js' %]
801
    [% PROCESS 'modal-claims-js' %]
802
    <script>
802
    <script nonce="[% Koha.CSPNonce | $raw %]">
803
        /* Set some variable needed in circulation.js */
803
        /* Set some variable needed in circulation.js */
804
        var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
804
        var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
805
        var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
805
        var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
Lines 838-844 Link Here
838
    [% Asset.js("js/members-menu.js") | $raw %]
838
    [% Asset.js("js/members-menu.js") | $raw %]
839
    [% Asset.js("js/recalls.js") | $raw %]
839
    [% Asset.js("js/recalls.js") | $raw %]
840
    [% Asset.js("js/hold-group.js") | $raw %]
840
    [% Asset.js("js/hold-group.js") | $raw %]
841
    <script>
841
    <script nonce="[% Koha.CSPNonce | $raw %]">
842
        const LoadCheckoutsTableDelay = 0;
842
        const LoadCheckoutsTableDelay = 0;
843
        const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %];
843
        const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %];
844
844
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-1 / +1 lines)
Lines 175-181 Link Here
175
175
176
[% MACRO jsinclude BLOCK %]
176
[% MACRO jsinclude BLOCK %]
177
    [% INCLUDE 'datatables.inc' %]
177
    [% INCLUDE 'datatables.inc' %]
178
    <script>
178
    <script nonce="[% Koha.CSPNonce | $raw %]">
179
        $(document).ready(function () {
179
        $(document).ready(function () {
180
            $("#noticestable").kohaTable({
180
            $("#noticestable").kohaTable({
181
                order: [[3, "desc"]],
181
                order: [[3, "desc"]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt (-1 / +1 lines)
Lines 233-239 Link Here
233
    [% INCLUDE 'str/members-menu.inc' %]
233
    [% INCLUDE 'str/members-menu.inc' %]
234
    [% Asset.js("js/members-menu.js") | $raw %]
234
    [% Asset.js("js/members-menu.js") | $raw %]
235
    [% INCLUDE 'datatables.inc' %]
235
    [% INCLUDE 'datatables.inc' %]
236
    <script>
236
    <script nonce="[% Koha.CSPNonce | $raw %]">
237
        function enableCheckboxActions(){
237
        function enableCheckboxActions(){
238
            // Enable/disable controls if checkboxes are checked
238
            // Enable/disable controls if checkboxes are checked
239
            var checkedBoxes = $("input.cb:checked");
239
            var checkedBoxes = $("input.cb:checked");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-1 / +1 lines)
Lines 443-449 Link Here
443
    [% INCLUDE 'str/members-menu.inc' %]
443
    [% INCLUDE 'str/members-menu.inc' %]
444
    [% Asset.js("js/members-menu.js") | $raw %]
444
    [% Asset.js("js/members-menu.js") | $raw %]
445
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
445
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
446
    <script>
446
    <script nonce="[% Koha.CSPNonce | $raw %]">
447
        $(document).ready(function() {
447
        $(document).ready(function() {
448
            [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
448
            [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
449
                window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=[% payment_id | html %]&change_given=[% change_given | html %]&borrowernumber=[% patron.borrowernumber | html %]', '_blank');
449
                window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=[% payment_id | html %]&change_given=[% change_given | html %]&borrowernumber=[% patron.borrowernumber | html %]', '_blank');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
17
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
18
18
19
[% Asset.css("css/printreceiptinvoice.css") | $raw %] <!-- prettier-ignore-start -->
19
[% Asset.css("css/printreceiptinvoice.css") | $raw %] <!-- prettier-ignore-start -->
20
[% IF style %]<style>[% style | $raw %]</style>[% END %]
20
[% IF style %]<style nonce="[% Koha.CSPNonce | $raw %]">[% style | $raw %]</style>[% END %]
21
<!-- prettier-ignore-end -->
21
<!-- prettier-ignore-end -->
22
[% INCLUDE 'blocking_errors.inc' %]
22
[% INCLUDE 'blocking_errors.inc' %]
23
</head>
23
</head>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
17
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
18
18
19
[% Asset.css("css/printreceiptinvoice.css") | $raw %] <!-- prettier-ignore-start -->
19
[% Asset.css("css/printreceiptinvoice.css") | $raw %] <!-- prettier-ignore-start -->
20
[% IF style %]<style>[% style | $raw %]</style>[% END %]
20
[% IF style %]<style nonce="[% Koha.CSPNonce | $raw %]">[% style | $raw %]</style>[% END %]
21
<!-- prettier-ignore-end -->
21
<!-- prettier-ignore-end -->
22
[% INCLUDE 'blocking_errors.inc' %]
22
[% INCLUDE 'blocking_errors.inc' %]
23
</head>
23
</head>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printnotice.tt (-1 / +1 lines)
Lines 20-26 Link Here
20
    <link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" />
20
    <link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" />
21
[% END %]
21
[% END %]
22
<!-- prettier-ignore-start -->
22
<!-- prettier-ignore-start -->
23
[% IF style %]<style>[% style | $raw %]</style>[% END %]
23
[% IF style %]<style nonce="[% Koha.CSPNonce | $raw %]">[% style | $raw %]</style>[% END %]
24
<!-- prettier-ignore-end -->
24
<!-- prettier-ignore-end -->
25
</head>
25
</head>
26
26
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt (-1 / +1 lines)
Lines 133-139 Link Here
133
    [% INCLUDE 'str/members-menu.inc' %]
133
    [% INCLUDE 'str/members-menu.inc' %]
134
    [% Asset.js("js/members-menu.js") | $raw %]
134
    [% Asset.js("js/members-menu.js") | $raw %]
135
    [% INCLUDE 'datatables.inc' %]
135
    [% INCLUDE 'datatables.inc' %]
136
    <script>
136
    <script nonce="[% Koha.CSPNonce | $raw %]">
137
        $(document).ready(function () {
137
        $(document).ready(function () {
138
            $("#suggestions").kohaTable({
138
            $("#suggestions").kohaTable({
139
                paging: false,
139
                paging: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt (-1 / +1 lines)
Lines 163-169 Link Here
163
    [% INCLUDE 'modals/checkout_renewals.inc' %]
163
    [% INCLUDE 'modals/checkout_renewals.inc' %]
164
    [% INCLUDE 'js-date-format.inc' %]
164
    [% INCLUDE 'js-date-format.inc' %]
165
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
165
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
166
    <script>
166
    <script nonce="[% Koha.CSPNonce | $raw %]">
167
        $(document).ready(function() {
167
        $(document).ready(function() {
168
            [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
168
            [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
169
                // FIXME This cannot work without bKohaColumnsUseNames
169
                // FIXME This cannot work without bKohaColumnsUseNames
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt (-1 / +1 lines)
Lines 102-108 Link Here
102
    [% INCLUDE 'str/members-menu.inc' %]
102
    [% INCLUDE 'str/members-menu.inc' %]
103
    [% Asset.js("js/members-menu.js") | $raw %]
103
    [% Asset.js("js/members-menu.js") | $raw %]
104
    [% INCLUDE 'datatables.inc' %]
104
    [% INCLUDE 'datatables.inc' %]
105
    <script>
105
    <script nonce="[% Koha.CSPNonce | $raw %]">
106
        $(document).ready(function () {
106
        $(document).ready(function () {
107
            $("#statistics").kohaTable({
107
            $("#statistics").kohaTable({
108
                dom: "t",
108
                dom: "t",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/two_factor_auth.tt (-1 / +1 lines)
Lines 110-116 Link Here
110
[% MACRO jsinclude BLOCK %]
110
[% MACRO jsinclude BLOCK %]
111
    [% INCLUDE 'str/members-menu.inc' %]
111
    [% INCLUDE 'str/members-menu.inc' %]
112
    [% Asset.js("js/members-menu.js") | $raw %]
112
    [% Asset.js("js/members-menu.js") | $raw %]
113
    <script>
113
    <script nonce="[% Koha.CSPNonce | $raw %]">
114
        $(document).ready(function () {
114
        $(document).ready(function () {
115
            $("#enable-2FA").on("click", function (e) {
115
            $("#enable-2FA").on("click", function (e) {
116
                e.preventDefault();
116
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt (-2 / +2 lines)
Lines 63-69 Link Here
63
63
64
[% MACRO jsinclude BLOCK %]
64
[% MACRO jsinclude BLOCK %]
65
    [% INCLUDE 'datatables.inc' %]
65
    [% INCLUDE 'datatables.inc' %]
66
    <script>
66
    <script nonce="[% Koha.CSPNonce | $raw %]">
67
        $(document).ready(function () {
67
        $(document).ready(function () {
68
            $("#catst").kohaTable({
68
            $("#catst").kohaTable({
69
                dom: "t",
69
                dom: "t",
Lines 80-86 Link Here
80
        });
80
        });
81
    </script>
81
    </script>
82
    [% IF ( SUCCESS ) %]
82
    [% IF ( SUCCESS ) %]
83
        <script>
83
        <script nonce="[% Koha.CSPNonce | $raw %]">
84
            self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
84
            self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
85
            window.close();
85
            window.close();
86
        </script>
86
        </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt (-1 / +1 lines)
Lines 107-113 Link Here
107
[% END %]
107
[% END %]
108
108
109
[% MACRO jsinclude BLOCK %]
109
[% MACRO jsinclude BLOCK %]
110
    <script>
110
    <script nonce="[% Koha.CSPNonce | $raw %]">
111
        $(document).ready(function () {
111
        $(document).ready(function () {
112
            $("#CheckNone").click(function (e) {
112
            $("#CheckNone").click(function (e) {
113
                e.preventDefault();
113
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt (-1 / +1 lines)
Lines 115-121 Link Here
115
115
116
[% MACRO jsinclude BLOCK %]
116
[% MACRO jsinclude BLOCK %]
117
    [% Asset.js("js/file-upload.js") | $raw %]
117
    [% Asset.js("js/file-upload.js") | $raw %]
118
    <script>
118
    <script nonce="[% Koha.CSPNonce | $raw %]">
119
        var xhr;
119
        var xhr;
120
        $(document).ready(function () {
120
        $(document).ready(function () {
121
            $("#enqueuefile").hide();
121
            $("#enqueuefile").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt (-2 / +2 lines)
Lines 14-20 Link Here
14
>
14
>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
16
17
<style>
17
<style nonce="[% Koha.CSPNonce | $raw %]">
18
    #add_patrons_by_search {
18
    #add_patrons_by_search {
19
        display: none;
19
        display: none;
20
    }
20
    }
Lines 234-240 Link Here
234
[% MACRO jsinclude BLOCK %]
234
[% MACRO jsinclude BLOCK %]
235
    [% Asset.js("js/tools-menu.js") | $raw %]
235
    [% Asset.js("js/tools-menu.js") | $raw %]
236
    [% INCLUDE 'datatables.inc' %]
236
    [% INCLUDE 'datatables.inc' %]
237
    <script>
237
    <script nonce="[% Koha.CSPNonce | $raw %]">
238
        $(document).ready(function() {
238
        $(document).ready(function() {
239
            $('#patrons_to_add_fieldset').hide();
239
            $('#patrons_to_add_fieldset').hide();
240
240
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt (-1 / +1 lines)
Lines 162-168 Link Here
162
[% MACRO jsinclude BLOCK %]
162
[% MACRO jsinclude BLOCK %]
163
    [% Asset.js("js/tools-menu.js") | $raw %]
163
    [% Asset.js("js/tools-menu.js") | $raw %]
164
    [% INCLUDE 'datatables.inc' %]
164
    [% INCLUDE 'datatables.inc' %]
165
    <script>
165
    <script nonce="[% Koha.CSPNonce | $raw %]">
166
        $(document).ready(function() {
166
        $(document).ready(function() {
167
            var patronExportModal = $("#patronExportModal");
167
            var patronExportModal = $("#patronExportModal");
168
            var patronExportModalBody = $("#patronExportModal .modal-body");
168
            var patronExportModalBody = $("#patronExportModal .modal-body");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt (-1 / +1 lines)
Lines 120-126 Link Here
120
        <a onclick="addToList()"><i class="fa fa-plus"></i></a>
120
        <a onclick="addToList()"><i class="fa fa-plus"></i></a>
121
    </div>
121
    </div>
122
[% END %]
122
[% END %]
123
<script>
123
<script nonce="[% Koha.CSPNonce | $raw %]">
124
    var patron_lists_dt_params = {
124
    var patron_lists_dt_params = {
125
        sPaginationType: "full",
125
        sPaginationType: "full",
126
    };
126
    };
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-1 / +1 lines)
Lines 175-181 Link Here
175
[% MACRO jsinclude BLOCK %]
175
[% MACRO jsinclude BLOCK %]
176
    [% INCLUDE 'datatables.inc' %]
176
    [% INCLUDE 'datatables.inc' %]
177
    [% Asset.js("js/tools-menu.js") | $raw %]
177
    [% Asset.js("js/tools-menu.js") | $raw %]
178
    <script>
178
    <script nonce="[% Koha.CSPNonce | $raw %]">
179
        function DeleteConfirm() {
179
        function DeleteConfirm() {
180
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id | html %]");
180
            var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id | html %]");
181
            var answer = confirm(msg);
181
            var answer = confirm(msg);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-1 / +1 lines)
Lines 482-488 Link Here
482
[% END %]
482
[% END %]
483
[% MACRO jsinclude BLOCK %]
483
[% MACRO jsinclude BLOCK %]
484
    [% Asset.js("js/tools-menu.js") | $raw %]
484
    [% Asset.js("js/tools-menu.js") | $raw %]
485
    <script>
485
    <script nonce="[% Koha.CSPNonce | $raw %]">
486
        $(document).ready(function () {
486
        $(document).ready(function () {
487
            var selectedUnit = $("#units option:selected").val();
487
            var selectedUnit = $("#units option:selected").val();
488
            var unitfields = $("#font_size,#field_1_llx,#field_1_lly,#field_2_llx,#field_2_lly,#field_3_llx,#field_3_lly,#barcode_Tx,#barcode_Ty,#image_1_Dx,#image_1_Tx,#image_1_Ty,#image_2_Dx,#image_2_Tx,#image_2_Ty");
488
            var unitfields = $("#font_size,#field_1_llx,#field_1_lly,#field_2_llx,#field_2_lly,#field_3_llx,#field_3_lly,#barcode_Tx,#barcode_Ty,#image_1_Dx,#image_1_Tx,#image_1_Ty,#image_2_Dx,#image_2_Tx,#image_2_Ty");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt (-1 / +1 lines)
Lines 118-124 Link Here
118
[% END %]
118
[% END %]
119
[% MACRO jsinclude BLOCK %]
119
[% MACRO jsinclude BLOCK %]
120
    [% Asset.js("js/tools-menu.js") | $raw %]
120
    [% Asset.js("js/tools-menu.js") | $raw %]
121
    <script>
121
    <script nonce="[% Koha.CSPNonce | $raw %]">
122
        $(document).ready(function () {
122
        $(document).ready(function () {
123
            var selectedUnit = $("#units option:selected").val();
123
            var selectedUnit = $("#units option:selected").val();
124
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
124
            var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt (-1 / +1 lines)
Lines 168-174 Link Here
168
168
169
[% MACRO jsinclude BLOCK %]
169
[% MACRO jsinclude BLOCK %]
170
    [% Asset.js("js/tools-menu.js") | $raw %]
170
    [% Asset.js("js/tools-menu.js") | $raw %]
171
    <script>
171
    <script nonce="[% Koha.CSPNonce | $raw %]">
172
        $(document).ready(function () {
172
        $(document).ready(function () {
173
            var selectedUnit = $("#units option:selected").val();
173
            var selectedUnit = $("#units option:selected").val();
174
            var unitfields = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
174
            var unitfields = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt (-1 / +1 lines)
Lines 154-160 Link Here
154
154
155
[% MACRO jsinclude BLOCK %]
155
[% MACRO jsinclude BLOCK %]
156
    [% Asset.js("js/tools-menu.js") | $raw %]
156
    [% Asset.js("js/tools-menu.js") | $raw %]
157
    <script>
157
    <script nonce="[% Koha.CSPNonce | $raw %]">
158
        function DeleteConfirm() {
158
        function DeleteConfirm() {
159
            var results = selected_images();
159
            var results = selected_images();
160
            if (results) {
160
            if (results) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-1 / +1 lines)
Lines 188-194 Link Here
188
188
189
[% MACRO jsinclude BLOCK %]
189
[% MACRO jsinclude BLOCK %]
190
    [% Asset.js("js/tools-menu.js") | $raw %]
190
    [% Asset.js("js/tools-menu.js") | $raw %]
191
    <script>
191
    <script nonce="[% Koha.CSPNonce | $raw %]">
192
        function DeleteConfirm() {
192
        function DeleteConfirm() {
193
            var element_ids = selected_layouts("delete");
193
            var element_ids = selected_layouts("delete");
194
194
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-1 / +1 lines)
Lines 311-317 Link Here
311
    [% Asset.js("js/tools-menu.js") | $raw %]
311
    [% Asset.js("js/tools-menu.js") | $raw %]
312
    [% INCLUDE 'calendar.inc' %]
312
    [% INCLUDE 'calendar.inc' %]
313
    [% INCLUDE 'datatables.inc' %]
313
    [% INCLUDE 'datatables.inc' %]
314
    <script>
314
    <script nonce="[% Koha.CSPNonce | $raw %]">
315
        $(document).ready(function () {
315
        $(document).ready(function () {
316
            $(".uninstall_plugin").on("click", function () {
316
            $(".uninstall_plugin").on("click", function () {
317
                $(".dropdown").removeClass("open");
317
                $(".dropdown").removeClass("open");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-1 / +1 lines)
Lines 248-254 Link Here
248
[% MACRO jsinclude BLOCK %]
248
[% MACRO jsinclude BLOCK %]
249
    [% INCLUDE 'format_price.inc' %]
249
    [% INCLUDE 'format_price.inc' %]
250
    [% INCLUDE 'datatables.inc' %]
250
    [% INCLUDE 'datatables.inc' %]
251
    <script>
251
    <script nonce="[% Koha.CSPNonce | $raw %]">
252
        function moneyFormat(textObj) {
252
        function moneyFormat(textObj) {
253
            var newValue = textObj.value;
253
            var newValue = textObj.value;
254
            var decAmount = "";
254
            var decAmount = "";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/printreceipt.tt (-1 / +1 lines)
Lines 16-22 Link Here
16
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
16
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
17
17
18
[% Asset.css("css/printreceiptinvoice.css") | $raw %] <!-- prettier-ignore-start -->
18
[% Asset.css("css/printreceiptinvoice.css") | $raw %] <!-- prettier-ignore-start -->
19
[% IF style %]<style>[% style | $raw %]</style>[% END %]
19
[% IF style %]<style nonce="[% Koha.CSPNonce | $raw %]">[% style | $raw %]</style>[% END %]
20
<!-- prettier-ignore-end -->
20
<!-- prettier-ignore-end -->
21
[% INCLUDE 'blocking_errors.inc' %]
21
[% INCLUDE 'blocking_errors.inc' %]
22
</head>
22
</head>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-1 / +1 lines)
Lines 445-451 Link Here
445
    [% Asset.js("js/cashup_modal.js") | $raw %]
445
    [% Asset.js("js/cashup_modal.js") | $raw %]
446
    [% Asset.js("js/modal_printer.js") | $raw %]
446
    [% Asset.js("js/modal_printer.js") | $raw %]
447
    [% INCLUDE 'calendar.inc' %]
447
    [% INCLUDE 'calendar.inc' %]
448
    <script>
448
    <script nonce="[% Koha.CSPNonce | $raw %]">
449
        var sales_table = $("#sales").kohaTable({
449
        var sales_table = $("#sales").kohaTable({
450
            orderFixed: [ 0, 'asc'],
450
            orderFixed: [ 0, 'asc'],
451
            ordering: false,
451
            ordering: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt (-1 / +1 lines)
Lines 216-222 Link Here
216
    [% INCLUDE 'js-date-format.inc' %]
216
    [% INCLUDE 'js-date-format.inc' %]
217
    [% Asset.js("js/cashup_modal.js") | $raw %]
217
    [% Asset.js("js/cashup_modal.js") | $raw %]
218
    [% Asset.js("js/modal_printer.js") | $raw %]
218
    [% Asset.js("js/modal_printer.js") | $raw %]
219
    <script>
219
    <script nonce="[% Koha.CSPNonce | $raw %]">
220
        $(document).ready(function () {
220
        $(document).ready(function () {
221
221
222
            [%# js used here as we don't have access to these template variables where we need them #%]
222
            [%# js used here as we don't have access to these template variables where we need them #%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt (-1 / +1 lines)
Lines 24-30 Link Here
24
    [% INCLUDE 'datatables.inc' %]
24
    [% INCLUDE 'datatables.inc' %]
25
    [% INCLUDE 'js-date-format.inc' %]
25
    [% INCLUDE 'js-date-format.inc' %]
26
    [% INCLUDE 'js-biblio-format.inc' %]
26
    [% INCLUDE 'js-biblio-format.inc' %]
27
    <script>
27
    <script nonce="[% Koha.CSPNonce | $raw %]">
28
        const authorised_value_categories = [% To.json(AuthorisedValues.GetCategories()) | $raw %].map(c => c.category);
28
        const authorised_value_categories = [% To.json(AuthorisedValues.GetCategories()) | $raw %].map(c => c.category);
29
        const db_columns = [% To.json(db_columns) | $raw %];
29
        const db_columns = [% To.json(db_columns) | $raw %];
30
        const api_mappings = [% To.json(api_mappings) | $raw %];
30
        const api_mappings = [% To.json(api_mappings) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_to_pull.tt (-1 / +1 lines)
Lines 149-155 Link Here
149
149
150
[% MACRO jsinclude BLOCK %]
150
[% MACRO jsinclude BLOCK %]
151
    [% INCLUDE 'datatables.inc' %]
151
    [% INCLUDE 'datatables.inc' %]
152
    <script>
152
    <script nonce="[% Koha.CSPNonce | $raw %]">
153
        $(document).ready(function () {
153
        $(document).ready(function () {
154
            $("#recalls-table").kohaTable({
154
            $("#recalls-table").kohaTable({
155
                pagingType: "full_numbers",
155
                pagingType: "full_numbers",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt (-1 / +1 lines)
Lines 154-160 Link Here
154
154
155
[% MACRO jsinclude BLOCK %]
155
[% MACRO jsinclude BLOCK %]
156
    [% INCLUDE 'datatables.inc' %]
156
    [% INCLUDE 'datatables.inc' %]
157
    <script>
157
    <script nonce="[% Koha.CSPNonce | $raw %]">
158
        $(document).ready(function () {
158
        $(document).ready(function () {
159
            $("#recallswaiting-table, #recallsover-table").kohaTable({
159
            $("#recallswaiting-table, #recallsover-table").kohaTable({
160
                autoWidth: false,
160
                autoWidth: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
>
21
>
22
22
23
[% INCLUDE 'doc-head-close.inc' %]
23
[% INCLUDE 'doc-head-close.inc' %]
24
<style>
24
<style nonce="[% Koha.CSPNonce | $raw %]">
25
    .sql {
25
    .sql {
26
        display: none;
26
        display: none;
27
    }
27
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt (-1 / +1 lines)
Lines 201-207 Link Here
201
[% MACRO jsinclude BLOCK %]
201
[% MACRO jsinclude BLOCK %]
202
    [% INCLUDE 'datatables.inc' %]
202
    [% INCLUDE 'datatables.inc' %]
203
    [% INCLUDE 'calendar.inc' %]
203
    [% INCLUDE 'calendar.inc' %]
204
    <script>
204
    <script nonce="[% Koha.CSPNonce | $raw %]">
205
        actTotal = "";
205
        actTotal = "";
206
        $(document).ready(function () {
206
        $(document).ready(function () {
207
            $("#tbl_cash_register_stats").kohaTable({
207
            $("#tbl_cash_register_stats").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt (-1 / +1 lines)
Lines 11-17 Link Here
11
    [% END %]</title
11
    [% END %]</title
12
>
12
>
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
14
<style>
14
<style nonce="[% Koha.CSPNonce | $raw %]">
15
    .sql {
15
    .sql {
16
        display: none;
16
        display: none;
17
    }
17
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-1 / +1 lines)
Lines 383-389 Link Here
383
[% MACRO jsinclude BLOCK %]
383
[% MACRO jsinclude BLOCK %]
384
    [% INCLUDE 'calendar.inc' %]
384
    [% INCLUDE 'calendar.inc' %]
385
    [% INCLUDE 'datatables.inc' %]
385
    [% INCLUDE 'datatables.inc' %]
386
    <script>
386
    <script nonce="[% Koha.CSPNonce | $raw %]">
387
        function changeRemovedDateTrStatus() {
387
        function changeRemovedDateTrStatus() {
388
            var Cellvalue = $("input[name='Cellvalue']:checked").val();
388
            var Cellvalue = $("input[name='Cellvalue']:checked").val();
389
            if(Cellvalue == "deleteditems") {
389
            if(Cellvalue == "deleteditems") {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-2 / +2 lines)
Lines 10-16 Link Here
10
    [% END %]</title
10
    [% END %]</title
11
>
11
>
12
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
13
<style>
13
<style nonce="[% Koha.CSPNonce | $raw %]">
14
    fieldset.rows table {
14
    fieldset.rows table {
15
        clear: none;
15
        clear: none;
16
        margin: 0;
16
        margin: 0;
Lines 336-342 Link Here
336
336
337
[% MACRO jsinclude BLOCK %]
337
[% MACRO jsinclude BLOCK %]
338
    [% INCLUDE 'calendar.inc' %]
338
    [% INCLUDE 'calendar.inc' %]
339
    <script>
339
    <script nonce="[% Koha.CSPNonce | $raw %]">
340
        var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this dictionary definition? This cannot be undone.");
340
        var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this dictionary definition? This cannot be undone.");
341
341
342
        $(document).ready(function () {
342
        $(document).ready(function () {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-2 / +2 lines)
Lines 79-85 Link Here
79
[% INCLUDE 'doc-head-close.inc' %]
79
[% INCLUDE 'doc-head-close.inc' %]
80
[% Asset.css("lib/codemirror/codemirror.min.css") | $raw %]
80
[% Asset.css("lib/codemirror/codemirror.min.css") | $raw %]
81
[% FILTER collapse %]
81
[% FILTER collapse %]
82
    <style>
82
    <style nonce="[% Koha.CSPNonce | $raw %]">
83
        .CodeMirror {
83
        .CodeMirror {
84
            resize: vertical;
84
            resize: vertical;
85
        }
85
        }
Lines 1770-1776 Link Here
1770
    [% Asset.css("lib/codemirror/highlight.css") | $raw %]
1770
    [% Asset.css("lib/codemirror/highlight.css") | $raw %]
1771
    [% Asset.js( "js/mana.js" ) | $raw %]
1771
    [% Asset.js( "js/mana.js" ) | $raw %]
1772
    [% INCLUDE 'select2.inc' %]
1772
    [% INCLUDE 'select2.inc' %]
1773
    <script>
1773
    <script nonce="[% Koha.CSPNonce | $raw %]">
1774
        //  if the report param form has multiselects override default form submission
1774
        //  if the report param form has multiselects override default form submission
1775
        if( $('#report_param_form').find('select[multiple]').length ) {
1775
        if( $('#report_param_form').find('select[multiple]').length ) {
1776
            $('#report_param_form').on('submit', function(e) {
1776
            $('#report_param_form').on('submit', function(e) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt (-1 / +1 lines)
Lines 20-26 Link Here
20
    [% END %]</title
20
    [% END %]</title
21
>
21
>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
<style>
23
<style nonce="[% Koha.CSPNonce | $raw %]">
24
    .sql {
24
    .sql {
25
        display: none;
25
        display: none;
26
    }
26
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt (-1 / +1 lines)
Lines 193-199 Link Here
193
193
194
[% MACRO jsinclude BLOCK %]
194
[% MACRO jsinclude BLOCK %]
195
    [% INCLUDE 'datatables.inc' %]
195
    [% INCLUDE 'datatables.inc' %]
196
    <script>
196
    <script nonce="[% Koha.CSPNonce | $raw %]">
197
        $(document).ready(function() {
197
        $(document).ready(function() {
198
            var table_settings = [% TablesSettings.GetTableSettings( 'reports', 'lostitems', 'lostitems-table', 'json' ) | $raw %];
198
            var table_settings = [% TablesSettings.GetTableSettings( 'reports', 'lostitems', 'lostitems-table', 'json' ) | $raw %];
199
            [% IF csv_profiles.count %]
199
            [% IF csv_profiles.count %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt (-1 / +1 lines)
Lines 100-106 Link Here
100
[% MACRO jsinclude BLOCK %]
100
[% MACRO jsinclude BLOCK %]
101
    [% IF ( do_it ) %]
101
    [% IF ( do_it ) %]
102
        [% INCLUDE 'datatables.inc' %]
102
        [% INCLUDE 'datatables.inc' %]
103
        <script>
103
        <script nonce="[% Koha.CSPNonce | $raw %]">
104
            $(document).ready(function () {
104
            $(document).ready(function () {
105
                $("#itemtypest").kohaTable({
105
                $("#itemtypest").kohaTable({
106
                    dom: "t",
106
                    dom: "t",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/orders_by_budget.tt (-1 / +1 lines)
Lines 168-174 Link Here
168
168
169
[% MACRO jsinclude BLOCK %]
169
[% MACRO jsinclude BLOCK %]
170
    [% INCLUDE 'datatables.inc' %]
170
    [% INCLUDE 'datatables.inc' %]
171
    <script>
171
    <script nonce="[% Koha.CSPNonce | $raw %]">
172
        var table_settings = [% TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table', 'json' ) | $raw %];
172
        var table_settings = [% TablesSettings.GetTableSettings( 'reports', 'orders_by_fund', 'funds-table', 'json' ) | $raw %];
173
        $(document).ready( function () {
173
        $(document).ready( function () {
174
            var funds_table = $("#funds").kohaTable(
174
            var funds_table = $("#funds").kohaTable(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
    [% END %]</title
15
    [% END %]</title
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
<style>
18
<style nonce="[% Koha.CSPNonce | $raw %]">
19
    .sql {
19
    .sql {
20
        display: none;
20
        display: none;
21
    }
21
    }
Lines 397-403 Link Here
397
397
398
[% MACRO jsinclude BLOCK %]
398
[% MACRO jsinclude BLOCK %]
399
    [% INCLUDE 'calendar.inc' %]
399
    [% INCLUDE 'calendar.inc' %]
400
    <script>
400
    <script nonce="[% Koha.CSPNonce | $raw %]">
401
        $(document).ready(function () {
401
        $(document).ready(function () {
402
            // Undo the selection that Branches.all made, since there may be no item with homebranch or holdingbranch
402
            // Undo the selection that Branches.all made, since there may be no item with homebranch or holdingbranch
403
            $("#holdingbranch option").prop("selected", false);
403
            $("#holdingbranch option").prop("selected", false);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
    [% END %]</title
13
    [% END %]</title
14
>
14
>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    .sql {
17
    .sql {
18
        display: none;
18
        display: none;
19
    }
19
    }
Lines 145-151 Link Here
145
145
146
[% MACRO jsinclude BLOCK %]
146
[% MACRO jsinclude BLOCK %]
147
    [% INCLUDE 'datatables.inc' %]
147
    [% INCLUDE 'datatables.inc' %]
148
    <script>
148
    <script nonce="[% Koha.CSPNonce | $raw %]">
149
        $(document).ready(function () {
149
        $(document).ready(function () {
150
            $("#resulttable").kohaTable({
150
            $("#resulttable").kohaTable({
151
                paging: false,
151
                paging: false,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-5 / +5 lines)
Lines 39-45 Link Here
39
>
39
>
40
[% INCLUDE 'doc-head-close.inc' %]
40
[% INCLUDE 'doc-head-close.inc' %]
41
[% FILTER collapse %]
41
[% FILTER collapse %]
42
    <style>
42
    <style nonce="[% Koha.CSPNonce | $raw %]">
43
        a.hold-arrow {
43
        a.hold-arrow {
44
            display: inline-block;
44
            display: inline-block;
45
            padding: 3px;
45
            padding: 3px;
Lines 1612-1618 Link Here
1612
    [% IF multi_hold %]
1612
    [% IF multi_hold %]
1613
        [% SET url_biblio_params = url_biblio_params _ "&amp;multi_hold=1" %]
1613
        [% SET url_biblio_params = url_biblio_params _ "&amp;multi_hold=1" %]
1614
    [% END %]
1614
    [% END %]
1615
    <script>
1615
    <script nonce="[% Koha.CSPNonce | $raw %]">
1616
        $(document).ready(function () {
1616
        $(document).ready(function () {
1617
            hold_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'patron_holds_table', 'json' ) | $raw %];
1617
            hold_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'patron_holds_table', 'json' ) | $raw %];
1618
            $("#patron_holds_table").kohaTable(
1618
            $("#patron_holds_table").kohaTable(
Lines 2073-2092 Link Here
2073
            })
2073
            })
2074
        });
2074
        });
2075
    </script>
2075
    </script>
2076
    <script>
2076
    <script nonce="[% Koha.CSPNonce | $raw %]">
2077
        table_settings = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
2077
        table_settings = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
2078
    </script>
2078
    </script>
2079
    [% UNLESS patron %]
2079
    [% UNLESS patron %]
2080
        [% SET search_results_block_id = 'holds_patronsearch_pane_panel' %]
2080
        [% SET search_results_block_id = 'holds_patronsearch_pane_panel' %]
2081
        [%# adjusting variable for patron-search.inc %]
2081
        [%# adjusting variable for patron-search.inc %]
2082
        [% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
2082
        [% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
2083
        <script>
2083
        <script nonce="[% Koha.CSPNonce | $raw %]">
2084
            $(document).ready(function () {
2084
            $(document).ready(function () {
2085
                $("#holds_patronsearch").on("submit", filter);
2085
                $("#holds_patronsearch").on("submit", filter);
2086
            });
2086
            });
2087
        </script>
2087
        </script>
2088
    [% END %]
2088
    [% END %]
2089
    <script>
2089
    <script nonce="[% Koha.CSPNonce | $raw %]">
2090
        $(".printholdslip").click(function () {
2090
        $(".printholdslip").click(function () {
2091
            var reserve_id = $(this).attr("data-reserve_id");
2091
            var reserve_id = $(this).attr("data-reserve_id");
2092
            window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
2092
            window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt (-1 / +1 lines)
Lines 131-137 Link Here
131
131
132
[% MACRO jsinclude BLOCK %]
132
[% MACRO jsinclude BLOCK %]
133
    [% Asset.js("js/tools-menu.js") | $raw %]
133
    [% Asset.js("js/tools-menu.js") | $raw %]
134
    <script>
134
    <script nonce="[% Koha.CSPNonce | $raw %]">
135
        $(document).ready(function () {
135
        $(document).ready(function () {
136
            $(".delete-comment").on("click", function () {
136
            $(".delete-comment").on("click", function () {
137
                return confirm(_("Are you sure you want to delete this comment?"));
137
                return confirm(_("Are you sure you want to delete this comment?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt (-1 / +1 lines)
Lines 56-62 Link Here
56
<!-- /.main.container-fluid -->
56
<!-- /.main.container-fluid -->
57
57
58
[% MACRO jsinclude BLOCK %]
58
[% MACRO jsinclude BLOCK %]
59
    <script>
59
    <script nonce="[% Koha.CSPNonce | $raw %]">
60
        function GetIt(aqbooksellerid, name) {
60
        function GetIt(aqbooksellerid, name) {
61
            opener.document.f.aqbooksellerid.value = aqbooksellerid;
61
            opener.document.f.aqbooksellerid.value = aqbooksellerid;
62
            opener.document.f.aqbooksellername.value = name;
62
            opener.document.f.aqbooksellername.value = name;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt (-1 / +1 lines)
Lines 139-145 Link Here
139
139
140
[% MACRO jsinclude BLOCK %]
140
[% MACRO jsinclude BLOCK %]
141
    [% INCLUDE 'calendar.inc' %]
141
    [% INCLUDE 'calendar.inc' %]
142
    <script>
142
    <script nonce="[% Koha.CSPNonce | $raw %]">
143
        $(document).ready(function () {
143
        $(document).ready(function () {
144
            $(".renew_subscription").on("click", function (e) {
144
            $(".renew_subscription").on("click", function (e) {
145
                e.preventDefault();
145
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-1 / +1 lines)
Lines 217-223 Link Here
217
[% MACRO jsinclude BLOCK %]
217
[% MACRO jsinclude BLOCK %]
218
    [% INCLUDE 'calendar.inc' %]
218
    [% INCLUDE 'calendar.inc' %]
219
    [% INCLUDE 'datatables.inc' %]
219
    [% INCLUDE 'datatables.inc' %]
220
    <script>
220
    <script nonce="[% Koha.CSPNonce | $raw %]">
221
        var sTable;
221
        var sTable;
222
        $(document).ready(function () {
222
        $(document).ready(function () {
223
            enableSelectedActions();
223
            enableSelectedActions();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt (-1 / +1 lines)
Lines 69-75 Link Here
69
<!-- /.main.container-fluid -->
69
<!-- /.main.container-fluid -->
70
70
71
[% MACRO jsinclude BLOCK %]
71
[% MACRO jsinclude BLOCK %]
72
    <script>
72
    <script nonce="[% Koha.CSPNonce | $raw %]">
73
        $(document).ready(function () {
73
        $(document).ready(function () {
74
            $(".select_title").on("click", function (e) {
74
            $(".select_title").on("click", function (e) {
75
                e.preventDefault();
75
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt (-2 / +2 lines)
Lines 11-17 Link Here
11
    [% END %]</title
11
    [% END %]</title
12
>
12
>
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
14
<style media="print">
14
<style nonce="[% Koha.CSPNonce | $raw %]" media="print">
15
    #ser_routing-preview-slip {
15
    #ser_routing-preview-slip {
16
        min-width: 0;
16
        min-width: 0;
17
        width: auto;
17
        width: auto;
Lines 72-78 Link Here
72
<!-- /.container-fluid -->
72
<!-- /.container-fluid -->
73
73
74
[% MACRO jsinclude BLOCK %]
74
[% MACRO jsinclude BLOCK %]
75
    <script>
75
    <script nonce="[% Koha.CSPNonce | $raw %]">
76
        $(document).ready(function () {
76
        $(document).ready(function () {
77
            $("#print_slip").on("click", function (e) {
77
            $("#print_slip").on("click", function (e) {
78
                e.preventDefault();
78
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview.tt (-1 / +1 lines)
Lines 78-84 Link Here
78
[% END %]
78
[% END %]
79
79
80
[% MACRO jsinclude BLOCK %]
80
[% MACRO jsinclude BLOCK %]
81
    <script>
81
    <script nonce="[% Koha.CSPNonce | $raw %]">
82
        $(document).ready(function () {
82
        $(document).ready(function () {
83
            $("#save_and_preview_form").on("submit", function (e) {
83
            $("#save_and_preview_form").on("submit", function (e) {
84
                var myurl = "routing-preview.pl?op=print&subscriptionid=" + $("#subscriptionid").val() + "&issue=" + $("#issue_escaped").val();
84
                var myurl = "routing-preview.pl?op=print&subscriptionid=" + $("#subscriptionid").val() + "&issue=" + $("#issue_escaped").val();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt (-2 / +2 lines)
Lines 135-141 Link Here
135
[% END %]
135
[% END %]
136
136
137
[% MACRO jsinclude BLOCK %]
137
[% MACRO jsinclude BLOCK %]
138
    <script>
138
    <script nonce="[% Koha.CSPNonce | $raw %]">
139
        $(document).ready(function () {
139
        $(document).ready(function () {
140
            $(".itemrank").on("change", function () {
140
            $(".itemrank").on("change", function () {
141
                var subscriptionid = $(this).data("subscriptionid");
141
                var subscriptionid = $(this).data("subscriptionid");
Lines 170-176 Link Here
170
    [% SET columns = ['cardnumber','name','category','branch','action'] %]
170
    [% SET columns = ['cardnumber','name','category','branch','action'] %]
171
    [% PROCESS patron_search_modal columns => columns, modal_title => t("Add recipients") %]
171
    [% PROCESS patron_search_modal columns => columns, modal_title => t("Add recipients") %]
172
    [% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1 %]
172
    [% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1 %]
173
    <script>
173
    <script nonce="[% Koha.CSPNonce | $raw %]">
174
        $(document).on(
174
        $(document).on(
175
            "hidden.bs.modal",
175
            "hidden.bs.modal",
176
            "#patron_search_modal",
176
            "#patron_search_modal",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-2 / +2 lines)
Lines 341-351 Link Here
341
341
342
[% MACRO jsinclude BLOCK %]
342
[% MACRO jsinclude BLOCK %]
343
    [% INCLUDE 'datatables.inc' %]
343
    [% INCLUDE 'datatables.inc' %]
344
    <script>
344
    <script nonce="[% Koha.CSPNonce | $raw %]">
345
        var subscriptionid = "[% subscriptionid | html %]";
345
        var subscriptionid = "[% subscriptionid | html %]";
346
    </script>
346
    </script>
347
    [% Asset.js("js/serials-toolbar.js") | $raw %]
347
    [% Asset.js("js/serials-toolbar.js") | $raw %]
348
    <script>
348
    <script nonce="[% Koha.CSPNonce | $raw %]">
349
        function deleteIssues(subscriptionid) {
349
        function deleteIssues(subscriptionid) {
350
            var serialschecked = $("form[name='edition'] input[name='serialid']:checked");
350
            var serialschecked = $("form[name='edition'] input[name='serialid']:checked");
351
            if (serialschecked.length > 0) {
351
            if (serialschecked.length > 0) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% Asset.js("js/cataloging.js") | $raw %]
17
[% Asset.js("js/cataloging.js") | $raw %]
18
[% INCLUDE 'calendar.inc' %]
18
[% INCLUDE 'calendar.inc' %]
19
<script>
19
<script nonce="[% Koha.CSPNonce | $raw %]">
20
    //<![CDATA[
20
    //<![CDATA[
21
    $(document).ready(function () {
21
    $(document).ready(function () {
22
        $("#multi_receiving").on("show", function () {
22
        $("#multi_receiving").on("show", function () {
Lines 89-95 Link Here
89
    });
89
    });
90
    //]]>
90
    //]]>
91
</script>
91
</script>
92
<style>
92
<style nonce="[% Koha.CSPNonce | $raw %]">
93
    #serials_edit fieldset.rows label,
93
    #serials_edit fieldset.rows label,
94
    #serials_edit fieldset.rows span.label {
94
    #serials_edit fieldset.rows span.label {
95
        font-size: 100%;
95
        font-size: 100%;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-1 / +1 lines)
Lines 45-51 Link Here
45
[% MACRO jsinclude BLOCK %]
45
[% MACRO jsinclude BLOCK %]
46
    [% INCLUDE 'calendar.inc' %]
46
    [% INCLUDE 'calendar.inc' %]
47
    [% Asset.js("js/serials-toolbar.js") | $raw %]
47
    [% Asset.js("js/serials-toolbar.js") | $raw %]
48
    <script>
48
    <script nonce="[% Koha.CSPNonce | $raw %]">
49
        var subscriptionid = "[% subscriptionid | html %]";
49
        var subscriptionid = "[% subscriptionid | html %]";
50
    </script>
50
    </script>
51
[% END %]
51
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-3 / +3 lines)
Lines 15-21 Link Here
15
    [% END %]</title
15
    [% END %]</title
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
<style>
18
<style nonce="[% Koha.CSPNonce | $raw %]">
19
    input.dt-filter {
19
    input.dt-filter {
20
        width: 100%;
20
        width: 100%;
21
        font-size: 85%;
21
        font-size: 85%;
Lines 281-291 Link Here
281
[% MACRO jsinclude BLOCK %]
281
[% MACRO jsinclude BLOCK %]
282
    [% INCLUDE 'calendar.inc' %]
282
    [% INCLUDE 'calendar.inc' %]
283
    [% INCLUDE 'datatables.inc' %]
283
    [% INCLUDE 'datatables.inc' %]
284
    <script>
284
    <script nonce="[% Koha.CSPNonce | $raw %]">
285
        var subscriptionid = "[% subscriptionid | html %]";
285
        var subscriptionid = "[% subscriptionid | html %]";
286
    </script>
286
    </script>
287
    [% Asset.js("js/serials-toolbar.js") | $raw %]
287
    [% Asset.js("js/serials-toolbar.js") | $raw %]
288
    <script>
288
    <script nonce="[% Koha.CSPNonce | $raw %]">
289
        function itemSelectionBuildEditLink( tab ) {
289
        function itemSelectionBuildEditLink( tab ) {
290
            var subscription_ids = new Array();
290
            var subscription_ids = new Array();
291
            $( "input:checkbox." + tab + ":checked" ).each(function() {
291
            $( "input:checkbox." + tab + ":checked" ).each(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-2 / +2 lines)
Lines 19-25 Link Here
19
    [% END %]</title
19
    [% END %]</title
20
>
20
>
21
[% INCLUDE 'doc-head-close.inc' %]
21
[% INCLUDE 'doc-head-close.inc' %]
22
<style>
22
<style nonce="[% Koha.CSPNonce | $raw %]">
23
    fieldset.rows li.radio {
23
    fieldset.rows li.radio {
24
        width: 100%;
24
        width: 100%;
25
    } /* override staff-global.css */
25
    } /* override staff-global.css */
Lines 596-602 Link Here
596
    [% INCLUDE 'calendar.inc' %]
596
    [% INCLUDE 'calendar.inc' %]
597
    [% INCLUDE 'datatables.inc' %]
597
    [% INCLUDE 'datatables.inc' %]
598
    [% Asset.js("js/mana.js") | $raw %]
598
    [% Asset.js("js/mana.js") | $raw %]
599
    <script>
599
    <script nonce="[% Koha.CSPNonce | $raw %]">
600
        var subscriptionid = "[% subscriptionid | html %]";
600
        var subscriptionid = "[% subscriptionid | html %]";
601
        var irregularity = "[% irregularity | html %]";
601
        var irregularity = "[% irregularity | html %]";
602
        var more_than_one_serial = "[% more_than_one_serial | html %]";
602
        var more_than_one_serial = "[% more_than_one_serial | html %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-2 / +2 lines)
Lines 447-460 Link Here
447
[% END %]
447
[% END %]
448
448
449
[% MACRO jsinclude BLOCK %]
449
[% MACRO jsinclude BLOCK %]
450
    <script>
450
    <script nonce="[% Koha.CSPNonce | $raw %]">
451
        var subscriptionid = "[% subscriptionid | html %]";
451
        var subscriptionid = "[% subscriptionid | html %]";
452
    </script>
452
    </script>
453
    [% Asset.js("js/serials-toolbar.js") | $raw %]
453
    [% Asset.js("js/serials-toolbar.js") | $raw %]
454
    [% Asset.js("js/mana.js") | $raw %]
454
    [% Asset.js("js/mana.js") | $raw %]
455
    [% INCLUDE 'datatables.inc' %]
455
    [% INCLUDE 'datatables.inc' %]
456
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
456
    [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
457
    <script>
457
    <script nonce="[% Koha.CSPNonce | $raw %]">
458
        // the english words used in display purposes
458
        // the english words used in display purposes
459
        var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern",
459
        var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern",
460
        "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
460
        "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt (-1 / +1 lines)
Lines 198-204 Link Here
198
[% END %]
198
[% END %]
199
199
200
[% MACRO jsinclude BLOCK %]
200
[% MACRO jsinclude BLOCK %]
201
    <script>
201
    <script nonce="[% Koha.CSPNonce | $raw %]">
202
        function confirmDelete() {
202
        function confirmDelete() {
203
            return confirm(_("Are you sure you want to delete this subscription frequency?"));
203
            return confirm(_("Are you sure you want to delete this subscription frequency?"));
204
        }
204
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt (-1 / +1 lines)
Lines 330-336 Link Here
330
    [% END %]
330
    [% END %]
331
    [% INCLUDE 'calendar.inc' %]
331
    [% INCLUDE 'calendar.inc' %]
332
    [% INCLUDE 'datatables.inc' %]
332
    [% INCLUDE 'datatables.inc' %]
333
    <script>
333
    <script nonce="[% Koha.CSPNonce | $raw %]">
334
        function confirmDelete() {
334
        function confirmDelete() {
335
            return confirm(_("Are you sure you want to delete this numbering pattern?"));
335
            return confirm(_("Are you sure you want to delete this numbering pattern?"));
336
        }
336
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt (-1 / +1 lines)
Lines 124-130 Link Here
124
124
125
    [% MACRO jsinclude BLOCK %]
125
    [% MACRO jsinclude BLOCK %]
126
        [% INCLUDE 'calendar.inc' %]
126
        [% INCLUDE 'calendar.inc' %]
127
        <script>
127
        <script nonce="[% Koha.CSPNonce | $raw %]">
128
            $(document).ready(function () {
128
            $(document).ready(function () {
129
                $(".close").on("click", function (e) {
129
                $(".close").on("click", function (e) {
130
                    e.preventDefault();
130
                    e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/sip2/sip2.tt (-1 / +1 lines)
Lines 18-24 Link Here
18
[% MACRO jsinclude BLOCK %]
18
[% MACRO jsinclude BLOCK %]
19
    [% INCLUDE 'calendar.inc' %]
19
    [% INCLUDE 'calendar.inc' %]
20
    [% INCLUDE 'datatables.inc' %]
20
    [% INCLUDE 'datatables.inc' %]
21
    <script>
21
    <script nonce="[% Koha.CSPNonce | $raw %]">
22
        const institutions_table_settings = [% TablesSettings.GetTableSettings( 'sip2', 'institutions', 'institutions', 'json' ) | $raw %];
22
        const institutions_table_settings = [% TablesSettings.GetTableSettings( 'sip2', 'institutions', 'institutions', 'json' ) | $raw %];
23
        const accounts_table_settings = [% TablesSettings.GetTableSettings( 'sip2', 'accounts', 'accounts', 'json' ) | $raw %];
23
        const accounts_table_settings = [% TablesSettings.GetTableSettings( 'sip2', 'accounts', 'accounts', 'json' ) | $raw %];
24
        const system_preference_overrides_table_settings = [% TablesSettings.GetTableSettings( 'sip2', 'system_preference_overrides', 'system_preference_overrides', 'json' ) | $raw %];
24
        const system_preference_overrides_table_settings = [% TablesSettings.GetTableSettings( 'sip2', 'system_preference_overrides', 'system_preference_overrides', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-5 / +5 lines)
Lines 31-37 Link Here
31
[% INCLUDE 'doc-head-close.inc' %]
31
[% INCLUDE 'doc-head-close.inc' %]
32
[% IF op == 'else' %]
32
[% IF op == 'else' %]
33
    [% FILTER collapse %]
33
    [% FILTER collapse %]
34
        <style>
34
        <style nonce="[% Koha.CSPNonce | $raw %]">
35
            h4.local_collapse a {
35
            h4.local_collapse a {
36
                font-size: 80%;
36
                font-size: 80%;
37
                text-decoration: none;
37
                text-decoration: none;
Lines 1251-1257 Link Here
1251
1251
1252
[% MACRO jsinclude BLOCK %]
1252
[% MACRO jsinclude BLOCK %]
1253
    [% INCLUDE 'calendar.inc' %]
1253
    [% INCLUDE 'calendar.inc' %]
1254
    <script>
1254
    <script nonce="[% Koha.CSPNonce | $raw %]">
1255
        function select_manager(borrowernumber, borrower) {
1255
        function select_manager(borrowernumber, borrower) {
1256
            let tab = $('#suggestiontabs .active table').data('tab-name');
1256
            let tab = $('#suggestiontabs .active table').data('tab-name');
1257
            if ( tab ) {
1257
            if ( tab ) {
Lines 1326-1332 Link Here
1326
        });
1326
        });
1327
    </script>
1327
    </script>
1328
    [% IF ( op == 'show' || op == 'else' ) %]
1328
    [% IF ( op == 'show' || op == 'else' ) %]
1329
        <script>
1329
        <script nonce="[% Koha.CSPNonce | $raw %]">
1330
            $(document).ready(function () {
1330
            $(document).ready(function () {
1331
                $(".deletesuggestion").on("click", function () {
1331
                $(".deletesuggestion").on("click", function () {
1332
                    return confirm(_("Are you sure you want to delete this suggestion?"));
1332
                    return confirm(_("Are you sure you want to delete this suggestion?"));
Lines 1336-1342 Link Here
1336
    [% END %]
1336
    [% END %]
1337
    [% IF op == 'else' %]
1337
    [% IF op == 'else' %]
1338
        [% INCLUDE 'datatables.inc' %]
1338
        [% INCLUDE 'datatables.inc' %]
1339
        <script>
1339
        <script nonce="[% Koha.CSPNonce | $raw %]">
1340
            $(document).ready(function() {
1340
            $(document).ready(function() {
1341
                [% IF suggestions.size %]
1341
                [% IF suggestions.size %]
1342
                    let suggestionData = [% To.json(suggestions) | $raw %];
1342
                    let suggestionData = [% To.json(suggestions) | $raw %];
Lines 1652-1658 Link Here
1652
        </script>
1652
        </script>
1653
    [% END %]
1653
    [% END %]
1654
    [% IF op == 'save' %]
1654
    [% IF op == 'save' %]
1655
        <script>
1655
        <script nonce="[% Koha.CSPNonce | $raw %]">
1656
            $(document).ready(function(){
1656
            $(document).ready(function(){
1657
                calcNewsuggTotal();
1657
                calcNewsuggTotal();
1658
                $("#quantity,#price,#currency").on("change",function(){
1658
                $("#quantity,#price,#currency").on("change",function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt (-2 / +2 lines)
Lines 13-19 Link Here
13
    [% END %]</title
13
    [% END %]</title
14
>
14
>
15
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
16
<style>
16
<style nonce="[% Koha.CSPNonce | $raw %]">
17
    tr.selected {
17
    tr.selected {
18
        background-color: #ffffcc;
18
        background-color: #ffffcc;
19
    }
19
    }
Lines 151-157 Link Here
151
[% MACRO jsinclude BLOCK %]
151
[% MACRO jsinclude BLOCK %]
152
    [% INCLUDE 'datatables.inc' %]
152
    [% INCLUDE 'datatables.inc' %]
153
    [% Asset.js("js/tools-menu.js") | $raw %]
153
    [% Asset.js("js/tools-menu.js") | $raw %]
154
    <script>
154
    <script nonce="[% Koha.CSPNonce | $raw %]">
155
        $(document).ready(function () {
155
        $(document).ready(function () {
156
            $(".delete").click(function (event) {
156
            $(".delete").click(function (event) {
157
                $(this).parent().parent().parent().addClass("selected");
157
                $(this).parent().parent().parent().addClass("selected");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-1 / +1 lines)
Lines 23-29 Link Here
23
>
23
>
24
[% INCLUDE 'doc-head-close.inc' %]
24
[% INCLUDE 'doc-head-close.inc' %]
25
[% FILTER collapse %]
25
[% FILTER collapse %]
26
    <style>
26
    <style nonce="[% Koha.CSPNonce | $raw %]">
27
        .setlabel {
27
        .setlabel {
28
            background-color: #e8e8e8;
28
            background-color: #e8e8e8;
29
            font-family: courier;
29
            font-family: courier;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt (-1 / +1 lines)
Lines 65-71 Link Here
65
[% MACRO jsinclude BLOCK %]
65
[% MACRO jsinclude BLOCK %]
66
    [% Asset.js("js/tools-menu.js") | $raw %]
66
    [% Asset.js("js/tools-menu.js") | $raw %]
67
    [% INCLUDE 'datatables.inc' %]
67
    [% INCLUDE 'datatables.inc' %]
68
    <script>
68
    <script nonce="[% Koha.CSPNonce | $raw %]">
69
        $(document).ready(function () {
69
        $(document).ready(function () {
70
            $("#files").kohaTable({
70
            $("#files").kohaTable({
71
                columnDefs: [{ targets: [-1], orderSequence: ["desc", "asc"], searchable: false }],
71
                columnDefs: [{ targets: [-1], orderSequence: ["desc", "asc"], searchable: false }],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-7 / +7 lines)
Lines 58-64 Link Here
58
    [% SET editmode = "text" %]
58
    [% SET editmode = "text" %]
59
    [% Asset.css("lib/codemirror/codemirror.css") | $raw %]
59
    [% Asset.css("lib/codemirror/codemirror.css") | $raw %]
60
    [% Asset.css("lib/codemirror/lint.min.css") | $raw %]
60
    [% Asset.css("lib/codemirror/lint.min.css") | $raw %]
61
    <style>
61
    <style nonce="[% Koha.CSPNonce | $raw %]">
62
        .CodeMirror {
62
        .CodeMirror {
63
            resize: vertical;
63
            resize: vertical;
64
            z-index: 0;
64
            z-index: 0;
Lines 68-74 Link Here
68
[% IF category == 'record_display' %]
68
[% IF category == 'record_display' %]
69
    [% editmode = "text" %]
69
    [% editmode = "text" %]
70
[% END %]
70
[% END %]
71
<style>
71
<style nonce="[% Koha.CSPNonce | $raw %]">
72
    .syspref-link::before {
72
    .syspref-link::before {
73
        content: " | ";
73
        content: " | ";
74
    }
74
    }
Lines 597-603 Link Here
597
    [% INCLUDE 'calendar.inc' %]
597
    [% INCLUDE 'calendar.inc' %]
598
    [% INCLUDE 'select2.inc' %]
598
    [% INCLUDE 'select2.inc' %]
599
    [% Asset.js("js/tools-menu.js") | $raw %]
599
    [% Asset.js("js/tools-menu.js") | $raw %]
600
    <script>
600
    <script nonce="[% Koha.CSPNonce | $raw %]">
601
        $("#saveandcontinue").on("click", function (e) {
601
        $("#saveandcontinue").on("click", function (e) {
602
            e.preventDefault();
602
            e.preventDefault();
603
            $("#redirect").val("just_save");
603
            $("#redirect").val("just_save");
Lines 606-612 Link Here
606
    </script>
606
    </script>
607
    [% IF additional_contents.count %]
607
    [% IF additional_contents.count %]
608
        [% INCLUDE 'datatables.inc' %]
608
        [% INCLUDE 'datatables.inc' %]
609
        <script>
609
        <script nonce="[% Koha.CSPNonce | $raw %]">
610
            $(".preview_news").click(function () {
610
            $(".preview_news").click(function () {
611
                modalNumber = $(this).attr("data-number");
611
                modalNumber = $(this).attr("data-number");
612
                $('.modal[data-number="' + modalNumber + '"]').modal("show");
612
                $('.modal[data-number="' + modalNumber + '"]').modal("show");
Lines 684-690 Link Here
684
            });
684
            });
685
        </script>
685
        </script>
686
    [% ELSE %]
686
    [% ELSE %]
687
        <script>
687
        <script nonce="[% Koha.CSPNonce | $raw %]">
688
            function showLocationNotes( location ){
688
            function showLocationNotes( location ){
689
                $(".customization_note").hide();
689
                $(".customization_note").hide();
690
                $( "#" + location + "_notes" ).show();
690
                $( "#" + location + "_notes" ).show();
Lines 736-742 Link Here
736
        [% Asset.js( "lib/codemirror/lint.min.js" ) | $raw %]
736
        [% Asset.js( "lib/codemirror/lint.min.js" ) | $raw %]
737
        [% Asset.js( "lib/linters/htmlhint.min.js" ) | $raw %]
737
        [% Asset.js( "lib/linters/htmlhint.min.js" ) | $raw %]
738
        [% Asset.js( "lib/codemirror/html-lint.min.js" ) | $raw %]
738
        [% Asset.js( "lib/codemirror/html-lint.min.js" ) | $raw %]
739
        <script>
739
        <script nonce="[% Koha.CSPNonce | $raw %]">
740
            let editors = new Object(); /* Keeps track of initialized CodeMirror instances */
740
            let editors = new Object(); /* Keeps track of initialized CodeMirror instances */
741
            $(document).ready(function () {
741
            $(document).ready(function () {
742
                if ($("#tabs .tab-pane.active").length < 1) {
742
                if ($("#tabs .tab-pane.active").length < 1) {
Lines 775-781 Link Here
775
    [% ELSE %]
775
    [% ELSE %]
776
        [% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
776
        [% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
777
        [% INCLUDE 'str/tinymce_i18n.inc' %]
777
        [% INCLUDE 'str/tinymce_i18n.inc' %]
778
        <script>
778
        <script nonce="[% Koha.CSPNonce | $raw %]">
779
            $(document).ready(function(){
779
            $(document).ready(function(){
780
                if( $("#tabs").length > 0 && $("#tabs .tab-pane.active").length < 1 ){
780
                if( $("#tabs").length > 0 && $("#tabs .tab-pane.active").length < 1 ){
781
                    /* Activate first tab and initialize its tinyMCE instance */
781
                    /* Activate first tab and initialize its tinyMCE instance */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt (-1 / +1 lines)
Lines 272-278 Link Here
272
[% MACRO jsinclude BLOCK %]
272
[% MACRO jsinclude BLOCK %]
273
    [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
273
    [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
274
    [% IF op == 'edit_form' %]
274
    [% IF op == 'edit_form' %]
275
        <script>
275
        <script nonce="[% Koha.CSPNonce | $raw %]">
276
            $(document).ready(function() {
276
            $(document).ready(function() {
277
                  [% IF rules.size > 0 %]
277
                  [% IF rules.size > 0 %]
278
                      $("#norules").hide();
278
                      $("#norules").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-2 / +2 lines)
Lines 22-28 Link Here
22
>
22
>
23
[% INCLUDE 'doc-head-close.inc' %]
23
[% INCLUDE 'doc-head-close.inc' %]
24
<!--[if IE]>
24
<!--[if IE]>
25
    <style>
25
    <style nonce="[% Koha.CSPNonce | $raw %]">
26
        #selections {
26
        #selections {
27
            display: none;
27
            display: none;
28
        }
28
        }
Lines 236-242 Link Here
236
    [% INCLUDE 'datatables.inc' %]
236
    [% INCLUDE 'datatables.inc' %]
237
    [% Asset.js("js/pages/batchMod.js") | $raw %]
237
    [% Asset.js("js/pages/batchMod.js") | $raw %]
238
    [% Asset.js("js/browser.js") | $raw %]
238
    [% Asset.js("js/browser.js") | $raw %]
239
    <script>
239
    <script nonce="[% Koha.CSPNonce | $raw %]">
240
        [% IF searchid %]
240
        [% IF searchid %]
241
            browser = KOHA.browser('[% searchid | html %]');
241
            browser = KOHA.browser('[% searchid | html %]');
242
            browser.show_back_link();
242
            browser.show_back_link();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-2 / +2 lines)
Lines 21-27 Link Here
21
    [% END %]</title
21
    [% END %]</title
22
>
22
>
23
[% INCLUDE 'doc-head-close.inc' %]
23
[% INCLUDE 'doc-head-close.inc' %]
24
<style>
24
<style nonce="[% Koha.CSPNonce | $raw %]">
25
    input[type="checkbox"] {
25
    input[type="checkbox"] {
26
        margin: 0 0.5em;
26
        margin: 0 0.5em;
27
    }
27
    }
Lines 296-302 Link Here
296
    [% Asset.js("js/pages/batchMod.js") | $raw %]
296
    [% Asset.js("js/pages/batchMod.js") | $raw %]
297
    [% INCLUDE 'select2.inc' %]
297
    [% INCLUDE 'select2.inc' %]
298
    [% INCLUDE 'calendar.inc' %]
298
    [% INCLUDE 'calendar.inc' %]
299
    <script>
299
    <script nonce="[% Koha.CSPNonce | $raw %]">
300
        // Prepare array of all column headers, incrementing each index by
300
        // Prepare array of all column headers, incrementing each index by
301
        // two to accommodate control and title columns
301
        // two to accommodate control and title columns
302
        var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count | html %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);
302
        var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count | html %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-1 / +1 lines)
Lines 263-269 Link Here
263
263
264
[% MACRO jsinclude BLOCK %]
264
[% MACRO jsinclude BLOCK %]
265
    [% INCLUDE 'datatables.inc' %]
265
    [% INCLUDE 'datatables.inc' %]
266
    <script>
266
    <script nonce="[% Koha.CSPNonce | $raw %]">
267
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
267
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
268
        $(document).ready(function() {
268
        $(document).ready(function() {
269
269
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt (-1 / +1 lines)
Lines 250-256 Link Here
250
    [% INCLUDE 'datatables.inc' %]
250
    [% INCLUDE 'datatables.inc' %]
251
    [% INCLUDE 'select2.inc' %]
251
    [% INCLUDE 'select2.inc' %]
252
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
252
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
253
    <script>
253
    <script nonce="[% Koha.CSPNonce | $raw %]">
254
        $(document).ready(function () {
254
        $(document).ready(function () {
255
            $("#selectall").click(function (e) {
255
            $("#selectall").click(function (e) {
256
                e.preventDefault();
256
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt (-1 / +1 lines)
Lines 245-251 Link Here
245
    [% INCLUDE 'select2.inc' %]
245
    [% INCLUDE 'select2.inc' %]
246
    [% INCLUDE 'js-biblio-format.inc' %]
246
    [% INCLUDE 'js-biblio-format.inc' %]
247
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
247
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
248
    <script>
248
    <script nonce="[% Koha.CSPNonce | $raw %]">
249
        let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %];
249
        let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %];
250
        let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %];
250
        let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %];
251
        let hold_ids_from_sql = [% IF reserve_ids_list  %] [% reserve_ids_list  | $raw %] [% ELSE %] [] [% END %];
251
        let hold_ids_from_sql = [% IF reserve_ids_list  %] [% reserve_ids_list  | $raw %] [% ELSE %] [] [% END %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-1 / +1 lines)
Lines 319-325 Link Here
319
[% MACRO jsinclude BLOCK %]
319
[% MACRO jsinclude BLOCK %]
320
    [% INCLUDE 'datatables.inc' %]
320
    [% INCLUDE 'datatables.inc' %]
321
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
321
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
322
    <script>
322
    <script nonce="[% Koha.CSPNonce | $raw %]">
323
        function update_tab_display(){
323
        function update_tab_display(){
324
            let selected_type = $('input[name="recordtype"]:checked').val();
324
            let selected_type = $('input[name="recordtype"]:checked').val();
325
            if (selected_type == 'authority') {
325
            if (selected_type == 'authority') {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt (-1 / +1 lines)
Lines 263-269 Link Here
263
[% MACRO jsinclude BLOCK %]
263
[% MACRO jsinclude BLOCK %]
264
    [% Asset.js("js/tools-menu.js") | $raw %]
264
    [% Asset.js("js/tools-menu.js") | $raw %]
265
    [% INCLUDE 'calendar.inc' %]
265
    [% INCLUDE 'calendar.inc' %]
266
    <script>
266
    <script nonce="[% Koha.CSPNonce | $raw %]">
267
        $(document).ready(function(){
267
        $(document).ready(function(){
268
            $("#delete_patrons_form").on("submit",function(){
268
            $("#delete_patrons_form").on("submit",function(){
269
                return checkForm( this );
269
                return checkForm( this );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt (-1 / +1 lines)
Lines 355-361 Link Here
355
355
356
[% MACRO jsinclude BLOCK %]
356
[% MACRO jsinclude BLOCK %]
357
    [% Asset.js("js/tools-menu.js") | $raw %]
357
    [% Asset.js("js/tools-menu.js") | $raw %]
358
    <script>
358
    <script nonce="[% Koha.CSPNonce | $raw %]">
359
        function reloadPage(p) {
359
        function reloadPage(p) {
360
            var id = p.value;
360
            var id = p.value;
361
            if (id != 0) {
361
            if (id != 0) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-2 / +2 lines)
Lines 12-18 Link Here
12
    [% END %]</title
12
    [% END %]</title
13
>
13
>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
<style>
15
<style nonce="[% Koha.CSPNonce | $raw %]">
16
    fieldset.rows li {
16
    fieldset.rows li {
17
        display: flex;
17
        display: flex;
18
    }
18
    }
Lines 329-335 Link Here
329
[% MACRO jsinclude BLOCK %]
329
[% MACRO jsinclude BLOCK %]
330
    [% INCLUDE 'calendar.inc' %]
330
    [% INCLUDE 'calendar.inc' %]
331
    [% INCLUDE 'select2.inc' %]
331
    [% INCLUDE 'select2.inc' %]
332
    <script>
332
    <script nonce="[% Koha.CSPNonce | $raw %]">
333
        $(document).ready(function () {
333
        $(document).ready(function () {
334
            const output_format = $("#output_format");
334
            const output_format = $("#output_format");
335
            const csv_profiles = $("li.csv_profiles");
335
            const csv_profiles = $("li.csv_profiles");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt (-1 / +1 lines)
Lines 425-431 Link Here
425
    [% INCLUDE 'calendar.inc' %]
425
    [% INCLUDE 'calendar.inc' %]
426
    [% INCLUDE 'datatables.inc' %]
426
    [% INCLUDE 'datatables.inc' %]
427
    [% Asset.js("js/tools-menu.js") | $raw %]
427
    [% Asset.js("js/tools-menu.js") | $raw %]
428
    <script>
428
    <script nonce="[% Koha.CSPNonce | $raw %]">
429
        var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
429
        var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
430
430
431
        /* Creates all the structures to deal with all different kinds of holidays */
431
        /* Creates all the structures to deal with all different kinds of holidays */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt (-2 / +2 lines)
Lines 16-22 Link Here
16
    [% END %]</title
16
    [% END %]</title
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
<style>
19
<style nonce="[% Koha.CSPNonce | $raw %]">
20
    label.description {
20
    label.description {
21
        width: 20em;
21
        width: 20em;
22
    }
22
    }
Lines 426-432 Link Here
426
    [% Asset.js("js/tools-menu.js") | $raw %]
426
    [% Asset.js("js/tools-menu.js") | $raw %]
427
    [% INCLUDE 'str/members-menu.inc' %]
427
    [% INCLUDE 'str/members-menu.inc' %]
428
    [% Asset.js("js/members-menu.js") | $raw %]
428
    [% Asset.js("js/members-menu.js") | $raw %]
429
    <script>
429
    <script nonce="[% Koha.CSPNonce | $raw %]">
430
        $(document).ready(function() {
430
        $(document).ready(function() {
431
            [%# Make date fields have the datepicker %]
431
            [%# Make date fields have the datepicker %]
432
            $("#dateenrolled, #dateexpiry, #dateofbirth").flatpickr({
432
            $("#dateenrolled, #dateexpiry, #dateofbirth").flatpickr({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-2 / +2 lines)
Lines 20-26 Link Here
20
>
20
>
21
[% INCLUDE 'doc-head-close.inc' %]
21
[% INCLUDE 'doc-head-close.inc' %]
22
[% FILTER collapse %]
22
[% FILTER collapse %]
23
    <style>
23
    <style nonce="[% Koha.CSPNonce | $raw %]">
24
        .branchgridrow {
24
        .branchgridrow {
25
            display: flex;
25
            display: flex;
26
            flex-wrap: wrap;
26
            flex-wrap: wrap;
Lines 407-413 Link Here
407
[% MACRO jsinclude BLOCK %]
407
[% MACRO jsinclude BLOCK %]
408
    [% INCLUDE 'datatables.inc' %]
408
    [% INCLUDE 'datatables.inc' %]
409
    [% INCLUDE 'calendar.inc' %]
409
    [% INCLUDE 'calendar.inc' %]
410
    <script>
410
    <script nonce="[% Koha.CSPNonce | $raw %]">
411
        function checkForm() {
411
        function checkForm() {
412
            if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) {
412
            if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) {
413
                alert(_("You have uploaded a barcode file and scanned barcodes at the same time. Please choose one of the two options."));
413
                alert(_("You have uploaded a barcode file and scanned barcodes at the same time. Please choose one of the two options."));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-2 / +2 lines)
Lines 36-42 Link Here
36
>
36
>
37
[% INCLUDE 'doc-head-close.inc' %]
37
[% INCLUDE 'doc-head-close.inc' %]
38
[% FILTER collapse %]
38
[% FILTER collapse %]
39
    <style>
39
    <style nonce="[% Koha.CSPNonce | $raw %]">
40
        #preview_template .modal-dialog {
40
        #preview_template .modal-dialog {
41
            width: 80%;
41
            width: 80%;
42
        }
42
        }
Lines 845-851 Link Here
845
    [% Asset.js("js/tools-menu.js") | $raw %]
845
    [% Asset.js("js/tools-menu.js") | $raw %]
846
    [% INCLUDE 'datatables.inc' %]
846
    [% INCLUDE 'datatables.inc' %]
847
    [% Asset.js("lib/jquery/plugins/jquery.insertatcaret.js") | $raw %]
847
    [% Asset.js("lib/jquery/plugins/jquery.insertatcaret.js") | $raw %]
848
    <script>
848
    <script nonce="[% Koha.CSPNonce | $raw %]">
849
        var no_op_set = '[% no_op_set | html %]';
849
        var no_op_set = '[% no_op_set | html %]';
850
        var interface = '[% interface | html %]';
850
        var interface = '[% interface | html %]';
851
        var theme = '[% theme | html %]';
851
        var theme = '[% theme | html %]';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-2 / +2 lines)
Lines 21-27 Link Here
21
>
21
>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
[% Asset.css("css/humanmsg.css") | $raw %]
23
[% Asset.css("css/humanmsg.css") | $raw %]
24
<style>
24
<style nonce="[% Koha.CSPNonce | $raw %]">
25
    span.change-status {
25
    span.change-status {
26
        font-style: italic;
26
        font-style: italic;
27
        color: #666;
27
        color: #666;
Lines 457-463 Link Here
457
[% MACRO jsinclude BLOCK %]
457
[% MACRO jsinclude BLOCK %]
458
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
458
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
459
    [% INCLUDE 'datatables.inc' %]
459
    [% INCLUDE 'datatables.inc' %]
460
    <script>
460
    <script nonce="[% Koha.CSPNonce | $raw %]">
461
        $(document).ready(function() {
461
        $(document).ready(function() {
462
            $("#staged-record-matching-rules select").change(function() {
462
            $("#staged-record-matching-rules select").change(function() {
463
                var str = $(this).attr("id");
463
                var str = $(this).attr("id");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-2 / +2 lines)
Lines 25-31 Link Here
25
>
25
>
26
[% INCLUDE 'doc-head-close.inc' %]
26
[% INCLUDE 'doc-head-close.inc' %]
27
[% FILTER collapse %]
27
[% FILTER collapse %]
28
    <style>
28
    <style nonce="[% Koha.CSPNonce | $raw %]">
29
        #add_action {
29
        #add_action {
30
            display: none;
30
            display: none;
31
        }
31
        }
Lines 379-385 Link Here
379
379
380
[% MACRO jsinclude BLOCK %]
380
[% MACRO jsinclude BLOCK %]
381
    [% INCLUDE 'datatables.inc' %]
381
    [% INCLUDE 'datatables.inc' %]
382
    <script>
382
    <script nonce="[% Koha.CSPNonce | $raw %]">
383
        table_settings = [% TablesSettings.GetTableSettings('tools', 'marc-modification-templates', 'templatest', 'json') | $raw %];
383
        table_settings = [% TablesSettings.GetTableSettings('tools', 'marc-modification-templates', 'templatest', 'json') | $raw %];
384
        [% IF ActionsLoop %]
384
        [% IF ActionsLoop %]
385
            var mmtas = [% ActionsLoop.json | $raw %]
385
            var mmtas = [% ActionsLoop.json | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-1 / +1 lines)
Lines 481-487 Link Here
481
    [% INCLUDE 'datatables.inc' %]
481
    [% INCLUDE 'datatables.inc' %]
482
    [% Asset.js("js/tools-menu.js") | $raw %]
482
    [% Asset.js("js/tools-menu.js") | $raw %]
483
    [% Asset.js("js/members-patron-selections.js") | $raw %]
483
    [% Asset.js("js/members-patron-selections.js") | $raw %]
484
    <script>
484
    <script nonce="[% Koha.CSPNonce | $raw %]">
485
        var patron_attributes_lib = new Array();
485
        var patron_attributes_lib = new Array();
486
        var patron_attributes_values = new Array();
486
        var patron_attributes_values = new Array();
487
487
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt (-1 / +1 lines)
Lines 175-181 Link Here
175
[% MACRO jsinclude BLOCK %]
175
[% MACRO jsinclude BLOCK %]
176
    [% Asset.js("js/tools-menu.js") | $raw %]
176
    [% Asset.js("js/tools-menu.js") | $raw %]
177
    [% INCLUDE 'datatables.inc' %]
177
    [% INCLUDE 'datatables.inc' %]
178
    <script>
178
    <script nonce="[% Koha.CSPNonce | $raw %]">
179
        var tab_map = { 0: _("First"), 1: _("Second"), 2: _("Third") };
179
        var tab_map = { 0: _("First"), 1: _("Second"), 2: _("Third") };
180
        $(document).ready(function () {
180
        $(document).ready(function () {
181
            $("#selectlibrary").find("input:submit").hide();
181
            $("#selectlibrary").find("input:submit").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt (-1 / +1 lines)
Lines 202-208 Link Here
202
    [% Asset.js("js/tools-menu.js") | $raw %]
202
    [% Asset.js("js/tools-menu.js") | $raw %]
203
    [% INCLUDE 'str/members-menu.inc' %]
203
    [% INCLUDE 'str/members-menu.inc' %]
204
    [% Asset.js("js/members-menu.js") | $raw %]
204
    [% Asset.js("js/members-menu.js") | $raw %]
205
    <script>
205
    <script nonce="[% Koha.CSPNonce | $raw %]">
206
        $(document).ready(function () {
206
        $(document).ready(function () {
207
            $("#zipfile").click(function () {
207
            $("#zipfile").click(function () {
208
                $("#cardnum").hide();
208
                $("#cardnum").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt (-1 / +1 lines)
Lines 140-146 Link Here
140
[% MACRO jsinclude BLOCK %]
140
[% MACRO jsinclude BLOCK %]
141
    [% INCLUDE 'calendar.inc' %]
141
    [% INCLUDE 'calendar.inc' %]
142
    [% INCLUDE 'datatables.inc' %]
142
    [% INCLUDE 'datatables.inc' %]
143
    <script>
143
    <script nonce="[% Koha.CSPNonce | $raw %]">
144
        $(document).ready(function () {
144
        $(document).ready(function () {
145
            $("#problemreportstable").kohaTable({
145
            $("#problemreportstable").kohaTable({
146
                order: [[1, "asc"]],
146
                order: [[1, "asc"]],
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt (-1 / +1 lines)
Lines 92-98 Link Here
92
[% MACRO jsinclude BLOCK %]
92
[% MACRO jsinclude BLOCK %]
93
    [% Asset.js("js/tools-menu.js") | $raw %]
93
    [% Asset.js("js/tools-menu.js") | $raw %]
94
    [% INCLUDE 'datatables.inc' %]
94
    [% INCLUDE 'datatables.inc' %]
95
    <script>
95
    <script nonce="[% Koha.CSPNonce | $raw %]">
96
        let table_dt; //DataTable object
96
        let table_dt; //DataTable object
97
        $(document).ready(function () {
97
        $(document).ready(function () {
98
            $("#cancel_upload").on("click", function (e) {
98
            $("#cancel_upload").on("click", function (e) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt (-1 / +1 lines)
Lines 169-175 Link Here
169
[% MACRO jsinclude BLOCK %]
169
[% MACRO jsinclude BLOCK %]
170
    [% Asset.js("js/tools-menu.js") | $raw %]
170
    [% Asset.js("js/tools-menu.js") | $raw %]
171
    [% INCLUDE 'datatables.inc' %]
171
    [% INCLUDE 'datatables.inc' %]
172
    <script>
172
    <script nonce="[% Koha.CSPNonce | $raw %]">
173
        $(document).ready(function () {
173
        $(document).ready(function () {
174
            var quotes_url = "/api/v1/quotes";
174
            var quotes_url = "/api/v1/quotes";
175
            var quotes = $("#quotes").kohaTable({
175
            var quotes = $("#quotes").kohaTable({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt (-1 / +1 lines)
Lines 122-128 Link Here
122
[% MACRO jsinclude BLOCK %]
122
[% MACRO jsinclude BLOCK %]
123
    [% Asset.js("js/tools-menu.js") | $raw %]
123
    [% Asset.js("js/tools-menu.js") | $raw %]
124
    [% INCLUDE 'calendar.inc' %]
124
    [% INCLUDE 'calendar.inc' %]
125
    <script>
125
    <script nonce="[% Koha.CSPNonce | $raw %]">
126
        $(document).ready(function () {
126
        $(document).ready(function () {
127
            $("#starttime").on("blur", function () {
127
            $("#starttime").on("blur", function () {
128
                var time = $(this).val();
128
                var time = $(this).val();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt (-2 / +2 lines)
Lines 11-17 Link Here
11
    [% END %]</title
11
    [% END %]</title
12
>
12
>
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
14
<style>
14
<style nonce="[% Koha.CSPNonce | $raw %]">
15
    ins {
15
    ins {
16
        background-color: #e6ffe6;
16
        background-color: #e6ffe6;
17
    }
17
    }
Lines 95-101 Link Here
95
[% MACRO jsinclude BLOCK %]
95
[% MACRO jsinclude BLOCK %]
96
    [% Asset.js("js/tools-menu.js") | $raw %]
96
    [% Asset.js("js/tools-menu.js") | $raw %]
97
    [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
97
    [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
98
    <script>
98
    <script nonce="[% Koha.CSPNonce | $raw %]">
99
        $(document).ready(function () {
99
        $(document).ready(function () {
100
            var diff1 = $("#col1 pre").text();
100
            var diff1 = $("#col1 pre").text();
101
            var diff2 = $("#col2 pre").text();
101
            var diff2 = $("#col2 pre").text();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
    [% END %]</title
15
    [% END %]</title
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
<style>
18
<style nonce="[% Koha.CSPNonce | $raw %]">
19
    #fileuploadstatus,
19
    #fileuploadstatus,
20
    #fileuploadfailed,
20
    #fileuploadfailed,
21
    #fileuploadcancel {
21
    #fileuploadcancel {
Lines 264-270 Link Here
264
264
265
    [% INCLUDE 'str/job_progress.inc' job_id=job_id %]
265
    [% INCLUDE 'str/job_progress.inc' job_id=job_id %]
266
    [% Asset.js("js/job_progress.js") | $raw %]
266
    [% Asset.js("js/job_progress.js") | $raw %]
267
    <script>
267
    <script nonce="[% Koha.CSPNonce | $raw %]">
268
        var xhr;
268
        var xhr;
269
        var PROFILE_SAVE_MSG = _("Profile saved");
269
        var PROFILE_SAVE_MSG = _("Profile saved");
270
        var PROFILE_DEL_MSG = _("Profile deleted");
270
        var PROFILE_DEL_MSG = _("Profile deleted");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-2 / +2 lines)
Lines 36-42 Link Here
36
    [% END %]</title
36
    [% END %]</title
37
>
37
>
38
[% INCLUDE 'doc-head-close.inc' %]
38
[% INCLUDE 'doc-head-close.inc' %]
39
<style>
39
<style nonce="[% Koha.CSPNonce | $raw %]">
40
    i.drag_handle {
40
    i.drag_handle {
41
        color: #999;
41
        color: #999;
42
    }
42
    }
Lines 719-725 Link Here
719
    [% INCLUDE 'datatables.inc' %]
719
    [% INCLUDE 'datatables.inc' %]
720
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
720
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
721
    [% Asset.js("js/pages/stockrotation.js") | $raw %]
721
    [% Asset.js("js/pages/stockrotation.js") | $raw %]
722
    <script>
722
    <script nonce="[% Koha.CSPNonce | $raw %]">
723
        var stock_rotation_items_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %];
723
        var stock_rotation_items_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %];
724
        var stock_rotation_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %];
724
        var stock_rotation_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %];
725
        $("#addStageModal, #addItemsModal").on("shown.bs.modal", function(){
725
        $("#addStageModal, #addItemsModal").on("shown.bs.modal", function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt (-2 / +2 lines)
Lines 17-23 Link Here
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
[% FILTER collapse %]
19
[% FILTER collapse %]
20
    <style>
20
    <style nonce="[% Koha.CSPNonce | $raw %]">
21
        #fileuploadstatus,
21
        #fileuploadstatus,
22
        #fileuploadfailed,
22
        #fileuploadfailed,
23
        #jobpanel,
23
        #jobpanel,
Lines 310-316 Link Here
310
    <!-- /.row -->
310
    <!-- /.row -->
311
[% END %]
311
[% END %]
312
[% MACRO jsinclude BLOCK %]
312
[% MACRO jsinclude BLOCK %]
313
    <script>
313
    <script nonce="[% Koha.CSPNonce | $raw %]">
314
        var interface = "[% interface | html %]";
314
        var interface = "[% interface | html %]";
315
        var theme = "[% theme | html %]";
315
        var theme = "[% theme | html %]";
316
        var biblionumber = "[% biblionumber | html %]";
316
        var biblionumber = "[% biblionumber | html %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-2 / +2 lines)
Lines 248-254 Link Here
248
    <!-- /.page-section -->
248
    <!-- /.page-section -->
249
[% END %]
249
[% END %]
250
250
251
<style>
251
<style nonce="[% Koha.CSPNonce | $raw %]">
252
    #fileuploadstatus,
252
    #fileuploadstatus,
253
    #fileuploadfailed {
253
    #fileuploadfailed {
254
        display: none;
254
        display: none;
Lines 360-366 Link Here
360
    [% Asset.js("js/tools-menu.js") | $raw %]
360
    [% Asset.js("js/tools-menu.js") | $raw %]
361
    [% INCLUDE 'datatables.inc' %]
361
    [% INCLUDE 'datatables.inc' %]
362
    [% Asset.js("js/file-upload.js") | $raw %]
362
    [% Asset.js("js/file-upload.js") | $raw %]
363
    <script>
363
    <script nonce="[% Koha.CSPNonce | $raw %]">
364
        function StartUpload() {
364
        function StartUpload() {
365
            if( $('#fileToUpload').prop('files').length == 0 ) return;
365
            if( $('#fileToUpload').prop('files').length == 0 ) return;
366
            $('#fileToUpload').prop('disabled',true);
366
            $('#fileToUpload').prop('disabled',true);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +2 lines)
Lines 21-27 Link Here
21
[% INCLUDE 'doc-head-close.inc' %]
21
[% INCLUDE 'doc-head-close.inc' %]
22
[% Asset.css("css/humanmsg.css") | $raw %]
22
[% Asset.css("css/humanmsg.css") | $raw %]
23
[% FILTER collapse %]
23
[% FILTER collapse %]
24
    <style>
24
    <style nonce="[% Koha.CSPNonce | $raw %]">
25
        fieldset.rows label.viewlog {
25
        fieldset.rows label.viewlog {
26
            float: none;
26
            float: none;
27
            font-weight: normal;
27
            font-weight: normal;
Lines 471-477 Link Here
471
        [% Asset.js("js/members-menu.js") | $raw %]
471
        [% Asset.js("js/members-menu.js") | $raw %]
472
    [% END %]
472
    [% END %]
473
    [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
473
    [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
474
    <script>
474
    <script nonce="[% Koha.CSPNonce | $raw %]">
475
        var table_settings = [% TablesSettings.GetTableSettings('tools', 'logviewer', 'logst', 'json') | $raw %];
475
        var table_settings = [% TablesSettings.GetTableSettings('tools', 'logviewer', 'logst', 'json') | $raw %];
476
        var CAN_user_parameters_manage_sysprefs = "[% CAN_user_parameters_manage_sysprefs | html %]";
476
        var CAN_user_parameters_manage_sysprefs = "[% CAN_user_parameters_manage_sysprefs | html %]";
477
    </script>
477
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt (-1 / +1 lines)
Lines 8-14 Link Here
8
    [% END %]</title
8
    [% END %]</title
9
>
9
>
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
<style>
11
<style nonce="[% Koha.CSPNonce | $raw %]">
12
    fieldset.rows {
12
    fieldset.rows {
13
        float: none;
13
        float: none;
14
    }
14
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-4 / +4 lines)
Lines 27-33 Link Here
27
    [% END %]</title
27
    [% END %]</title
28
>
28
>
29
[% INCLUDE 'doc-head-close.inc' %]
29
[% INCLUDE 'doc-head-close.inc' %]
30
<style>
30
<style nonce="[% Koha.CSPNonce | $raw %]">
31
    textarea {
31
    textarea {
32
        width: 100%;
32
        width: 100%;
33
    }
33
    }
Lines 626-632 Link Here
626
[% MACRO jsinclude BLOCK %]
626
[% MACRO jsinclude BLOCK %]
627
    [% INCLUDE 'datatables.inc' %]
627
    [% INCLUDE 'datatables.inc' %]
628
    [% IF print %]
628
    [% IF print %]
629
        <script>
629
        <script nonce="[% Koha.CSPNonce | $raw %]">
630
            $(document).ready(function () {
630
            $(document).ready(function () {
631
                window.print();
631
                window.print();
632
                window.onafterprint = function () {
632
                window.onafterprint = function () {
Lines 638-644 Link Here
638
            });
638
            });
639
        </script>
639
        </script>
640
    [% END #/print %]
640
    [% END #/print %]
641
    <script>
641
    <script nonce="[% Koha.CSPNonce | $raw %]">
642
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
642
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
643
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the list?");
643
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the list?");
644
        var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
644
        var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
Lines 959-965 Link Here
959
        [% END %]
959
        [% END %]
960
    </script>
960
    </script>
961
    [% IF op == 'transfer' %]
961
    [% IF op == 'transfer' %]
962
        <script>
962
        <script nonce="[% Koha.CSPNonce | $raw %]">
963
            $(document).ready(function () {
963
            $(document).ready(function () {
964
                patron_autocomplete($("#find_patron"), {
964
                patron_autocomplete($("#find_patron"), {
965
                    "on-select-add-to": {
965
                    "on-select-add-to": {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc (-2 / +2 lines)
Lines 1-7 Link Here
1
[% USE Asset %]
1
[% USE Asset %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE raw %]
3
[% USE raw %]
4
<script>
4
<script nonce="[% Koha.CSPNonce | $raw %]">
5
    var flatpickr_weekdays = {
5
    var flatpickr_weekdays = {
6
        shorthand: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
6
        shorthand: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
7
        longhand: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]
7
        longhand: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]
Lines 60-66 Link Here
60
[% Asset.js("lib/flatpickr/flatpickr.min.js") | $raw %]
60
[% Asset.js("lib/flatpickr/flatpickr.min.js") | $raw %]
61
[% Asset.js("lib/maskito/maskito.core.js") | $raw %]
61
[% Asset.js("lib/maskito/maskito.core.js") | $raw %]
62
[% Asset.js("lib/maskito/maskito.kit.js") | $raw %]
62
[% Asset.js("lib/maskito/maskito.kit.js") | $raw %]
63
<script>
63
<script nonce="[% Koha.CSPNonce | $raw %]">
64
    flatpickr.l10ns.default.weekdays = flatpickr_weekdays;
64
    flatpickr.l10ns.default.weekdays = flatpickr_weekdays;
65
    flatpickr.l10ns.default.months = flatpickr_months;
65
    flatpickr.l10ns.default.months = flatpickr_months;
66
    flatpickr.setDefaults({
66
    flatpickr.setDefaults({
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-4 / +4 lines)
Lines 48-59 Link Here
48
[% END %]
48
[% END %]
49
[% IF ( Koha.Preference('OPACUserCSS') ) %]
49
[% IF ( Koha.Preference('OPACUserCSS') ) %]
50
    <!-- prettier-ignore-start -->
50
    <!-- prettier-ignore-start -->
51
    <style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>
51
    <style nonce="[% Koha.CSPNonce | $raw %]">[% Koha.Preference('OPACUserCSS') | $raw %]</style>
52
    <!-- prettier-ignore-end -->
52
    <!-- prettier-ignore-end -->
53
[% END %]
53
[% END %]
54
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
54
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
55
    <!-- prettier-ignore-start -->
55
    <!-- prettier-ignore-start -->
56
    <style>
56
    <style nonce="[% Koha.CSPNonce | $raw %]">
57
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
57
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
58
    </style>
58
    </style>
59
    <!-- prettier-ignore-end -->
59
    <!-- prettier-ignore-end -->
Lines 62-68 Link Here
62
    [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
62
    [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
63
    [% IF SCOUserCSS %]
63
    [% IF SCOUserCSS %]
64
        <!-- prettier-ignore-start -->
64
        <!-- prettier-ignore-start -->
65
        <style>[% SCOUserCSS | $raw %]</style>
65
        <style nonce="[% Koha.CSPNonce | $raw %]">[% SCOUserCSS | $raw %]</style>
66
        <!-- prettier-ignore-end -->
66
        <!-- prettier-ignore-end -->
67
    [% END %]
67
    [% END %]
68
[% END %]
68
[% END %]
Lines 73-79 Link Here
73
[% FILTER collapse %]
73
[% FILTER collapse %]
74
    [% PROCESS cssinclude %]
74
    [% PROCESS cssinclude %]
75
[% END %]
75
[% END %]
76
<script>
76
<script nonce="[% Koha.CSPNonce | $raw %]">
77
    var Koha = {};
77
    var Koha = {};
78
    function _(s) { return s } // dummy function for gettext
78
    function _(s) { return s } // dummy function for gettext
79
    const is_logged_in = [% IF logged_in_user %]true[% ELSE %]false[% END %]
79
    const is_logged_in = [% IF logged_in_user %]true[% ELSE %]false[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/greybox.inc (-1 / +1 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
<script>
3
<script nonce="[% Koha.CSPNonce | $raw %]">
4
    var GB_ROOT_DIR = "[% interface | html %]/lib/greybox/";
4
    var GB_ROOT_DIR = "[% interface | html %]/lib/greybox/";
5
</script>
5
</script>
6
[% Asset.js("lib/greybox/AJS.js") | $raw %]
6
[% Asset.js("lib/greybox/AJS.js") | $raw %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc (-1 / +1 lines)
Lines 135-141 Link Here
135
    <p>Unknown stage. This should not have happened. </p>
135
    <p>Unknown stage. This should not have happened. </p>
136
[% END %]
136
[% END %]
137
[% BLOCK backend_jsinclude %]
137
[% BLOCK backend_jsinclude %]
138
    <script>
138
    <script nonce="[% Koha.CSPNonce | $raw %]">
139
        var core = [ [% whole.core | $raw %] ];
139
        var core = [ [% whole.core | $raw %] ];
140
        // <![CDATA[]
140
        // <![CDATA[]
141
        [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
141
        [% INCLUDE "ill/backends/Standard/shared/shared.js" %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/custom_fields.inc (-1 / +1 lines)
Lines 25-31 Link Here
25
    </button>
25
    </button>
26
</fieldset>
26
</fieldset>
27
27
28
<style>
28
<style nonce="[% Koha.CSPNonce | $raw %]">
29
    .custom-field-input {
29
    .custom-field-input {
30
        width: 25%;
30
        width: 25%;
31
        display: inline-block;
31
        display: inline-block;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-biblio-format.inc (-2 / +1 lines)
Lines 1-5 Link Here
1
1
<script nonce="[% Koha.CSPNonce | $raw %]">
2
<script>
3
    (function () {
2
    (function () {
4
        /**
3
        /**
5
         * Format the biblio response from a Koha RESTful API request.
4
         * Format the biblio response from a Koha RESTful API request.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc (-2 / +2 lines)
Lines 5-16 Link Here
5
[% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
5
[% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
6
[% Asset.js("lib/dayjs/plugin/timezone.js") | $raw %]
6
[% Asset.js("lib/dayjs/plugin/timezone.js") | $raw %]
7
[% Asset.js("lib/dayjs/plugin/utc.js") | $raw %]
7
[% Asset.js("lib/dayjs/plugin/utc.js") | $raw %]
8
<script>
8
<script nonce="[% Koha.CSPNonce | $raw %]">
9
    dayjs.extend(window.dayjs_plugin_utc);
9
    dayjs.extend(window.dayjs_plugin_utc);
10
    dayjs.extend(window.dayjs_plugin_timezone);
10
    dayjs.extend(window.dayjs_plugin_timezone);
11
</script>
11
</script>
12
<!-- js-date-format.inc -->
12
<!-- js-date-format.inc -->
13
<script>
13
<script nonce="[% Koha.CSPNonce | $raw %]">
14
    (function() {
14
    (function() {
15
        var def_date_format = '[% Koha.Preference('dateformat') | html %]';
15
        var def_date_format = '[% Koha.Preference('dateformat') | html %]';
16
        var def_time_format = '[% Koha.Preference('TimeFormat') | html %]';
16
        var def_time_format = '[% Koha.Preference('TimeFormat') | html %]';
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-9 / +9 lines)
Lines 98-104 Link Here
98
[% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %]
98
[% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %]
99
[% Asset.js("lib/fontfaceobserver/fontfaceobserver.min.js") | $raw %]
99
[% Asset.js("lib/fontfaceobserver/fontfaceobserver.min.js") | $raw %]
100
[% Asset.js("lib/enquire/enquire.min.js") | $raw %]
100
[% Asset.js("lib/enquire/enquire.min.js") | $raw %]
101
<script>
101
<script nonce="[% Koha.CSPNonce | $raw %]">
102
    let logged_in_user_id = "[% logged_in_user.borrowernumber | html %]";
102
    let logged_in_user_id = "[% logged_in_user.borrowernumber | html %]";
103
</script>
103
</script>
104
[% Asset.js("js/global.js") | $raw %]
104
[% Asset.js("js/global.js") | $raw %]
Lines 106-112 Link Here
106
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
106
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
107
    [% Asset.js("js/amazonimages.js") | $raw %]
107
    [% Asset.js("js/amazonimages.js") | $raw %]
108
[% END %]
108
[% END %]
109
<script>
109
<script nonce="[% Koha.CSPNonce | $raw %]">
110
    [% IF (query_desc) %]
110
    [% IF (query_desc) %]
111
        var query_desc = "[% query_desc | html %]";
111
        var query_desc = "[% query_desc | html %]";
112
        var querystring = "[% querystring | html %]";
112
        var querystring = "[% querystring | html %]";
Lines 142-148 Link Here
142
[% ELSIF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
142
[% ELSIF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
143
    [% Asset.js("js/basket.js") | $raw %]
143
    [% Asset.js("js/basket.js") | $raw %]
144
[% ELSE %]
144
[% ELSE %]
145
    <script>
145
    <script nonce="[% Koha.CSPNonce | $raw %]">
146
        var readCookie;
146
        var readCookie;
147
    </script>
147
    </script>
148
[% END %]
148
[% END %]
Lines 161-167 Link Here
161
161
162
[% IF ( BakerTaylorEnabled ) %]
162
[% IF ( BakerTaylorEnabled ) %]
163
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
163
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
164
    <script>
164
    <script nonce="[% Koha.CSPNonce | $raw %]">
165
        $(window).load(function () {
165
        $(window).load(function () {
166
            bt_verify_images();
166
            bt_verify_images();
167
        });
167
        });
Lines 169-175 Link Here
169
[% END %]
169
[% END %]
170
170
171
[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
171
[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
172
    <script>
172
    <script nonce="[% Koha.CSPNonce | $raw %]">
173
        $("#news-branch-select").change(function () {
173
        $("#news-branch-select").change(function () {
174
            $("#news-branch-select").submit();
174
            $("#news-branch-select").submit();
175
        });
175
        });
Lines 178-184 Link Here
178
178
179
[% Asset.js("lib/js-cookie/js.cookie-3.0.1.min.js") | $raw %]
179
[% Asset.js("lib/js-cookie/js.cookie-3.0.1.min.js") | $raw %]
180
[% Asset.js("js/show-password-toggle.js") | $raw %]
180
[% Asset.js("js/show-password-toggle.js") | $raw %]
181
<script>
181
<script nonce="[% Koha.CSPNonce | $raw %]">
182
    $(document).ready(function () {
182
    $(document).ready(function () {
183
        if ($("#searchsubmit").length) {
183
        if ($("#searchsubmit").length) {
184
            $(document).on("click", "#searchsubmit", function (e) {
184
            $(document).on("click", "#searchsubmit", function (e) {
Lines 193-211 Link Here
193
[% INCLUDE 'js-biblio-format.inc' %]
193
[% INCLUDE 'js-biblio-format.inc' %]
194
[% PROCESS jsinclude %]
194
[% PROCESS jsinclude %]
195
[% IF ( Koha.Preference('OPACUserJS') ) %]
195
[% IF ( Koha.Preference('OPACUserJS') ) %]
196
    <script>
196
    <script nonce="[% Koha.CSPNonce | $raw %]">
197
        [% Koha.Preference('OPACUserJS') | $raw %]
197
        [% Koha.Preference('OPACUserJS') | $raw %]
198
    </script>
198
    </script>
199
[% END %]
199
[% END %]
200
[% IF Branches.GetBranchSpecificJS( Branches.GetLoggedInBranchcode() || default_branch) %]
200
[% IF Branches.GetBranchSpecificJS( Branches.GetLoggedInBranchcode() || default_branch) %]
201
    <script>
201
    <script nonce="[% Koha.CSPNonce | $raw %]">
202
        [% Branches.GetBranchSpecificJS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
202
        [% Branches.GetBranchSpecificJS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
203
    </script>
203
    </script>
204
[% END %]
204
[% END %]
205
[% IF SCO_login %]
205
[% IF SCO_login %]
206
    [% SET SCOUserJS = Koha.Preference('SCOUserJS') %]
206
    [% SET SCOUserJS = Koha.Preference('SCOUserJS') %]
207
    [% IF ( SCOUserJS ) %]
207
    [% IF ( SCOUserJS ) %]
208
        <script>
208
        <script nonce="[% Koha.CSPNonce | $raw %]">
209
            [% SCOUserJS | $raw %]
209
            [% SCOUserJS | $raw %]
210
        </script>
210
        </script>
211
    [% END %]
211
    [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/password_check.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    var pwd_title = "";
3
    var pwd_title = "";
4
    var pattern_title = "";
4
    var pattern_title = "";
5
    var new_password_node_name = "[% new_password | html %]";
5
    var new_password_node_name = "[% new_password | html %]";
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    [% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
3
    [% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
4
        [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
4
        [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
5
    [% ELSE %]
5
    [% ELSE %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/validator-strings.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<!-- validator-strings.inc -->
1
<!-- validator-strings.inc -->
2
<script>
2
<script nonce="[% Koha.CSPNonce | $raw %]">
3
    $(document).ready(function () {
3
    $(document).ready(function () {
4
        jQuery.extend(jQuery.validator.messages, {
4
        jQuery.extend(jQuery.validator.messages, {
5
            required: _("This field is required."),
5
            required: _("This field is required."),
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt (-1 / +1 lines)
Lines 66-72 Link Here
66
        </tbody>
66
        </tbody>
67
    </table>
67
    </table>
68
[% END %]
68
[% END %]
69
<script>
69
<script nonce="[% Koha.CSPNonce | $raw %]">
70
    function loadEnrollmentForm( id ) {
70
    function loadEnrollmentForm( id ) {
71
        $("body").css("cursor", "progress");
71
        $("body").css("cursor", "progress");
72
        $('#opac-user-clubs_panel').load('/cgi-bin/koha/clubs/enroll.pl?borrowernumber=[% borrower.borrowernumber | html %]&id=' + id, function() {
72
        $('#opac-user-clubs_panel').load('/cgi-bin/koha/clubs/enroll.pl?borrowernumber=[% borrower.borrowernumber | html %]&id=' + id, function() {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/enroll.tt (-1 / +1 lines)
Lines 32-38 Link Here
32
        </fieldset>
32
        </fieldset>
33
    </form>
33
    </form>
34
</div>
34
</div>
35
<script>
35
<script nonce="[% Koha.CSPNonce | $raw %]">
36
    function addEnrollment() {
36
    function addEnrollment() {
37
        $("body").css("cursor", "progress");
37
        $("body").css("cursor", "progress");
38
        let data = $( "#patron-enrollment-form" ).serialize();
38
        let data = $( "#patron-enrollment-form" ).serialize();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt (-1 / +1 lines)
Lines 16-22 Link Here
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% BLOCK cssinclude %]
18
[% BLOCK cssinclude %]
19
    <style>
19
    <style nonce="[% Koha.CSPNonce | $raw %]">
20
        .navbar-expand {
20
        .navbar-expand {
21
            justify-content: space-between;
21
            justify-content: space-between;
22
        }
22
        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt (-1 / +1 lines)
Lines 197-203 Link Here
197
    [% IF Koha.Preference('OpacCatalogConcerns') %]
197
    [% IF Koha.Preference('OpacCatalogConcerns') %]
198
        [% Asset.js("js/modals/catalog_concern.js") | $raw %]
198
        [% Asset.js("js/modals/catalog_concern.js") | $raw %]
199
    [% END %]
199
    [% END %]
200
    <script>
200
    <script nonce="[% Koha.CSPNonce | $raw %]">
201
        $(document).ready(function(){
201
        $(document).ready(function(){
202
            var loaded = 0;
202
            var loaded = 0;
203
            var toggle = 0;
203
            var toggle = 0;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt (-1 / +1 lines)
Lines 83-89 Link Here
83
[% INCLUDE 'opac-bottom.inc' %]
83
[% INCLUDE 'opac-bottom.inc' %]
84
[% BLOCK jsinclude %]
84
[% BLOCK jsinclude %]
85
    [% INCLUDE 'datatables.inc' %]
85
    [% INCLUDE 'datatables.inc' %]
86
    <script>
86
    <script nonce="[% Koha.CSPNonce | $raw %]">
87
        $( document ).ready(function() {
87
        $( document ).ready(function() {
88
88
89
            var txtActivefilter = _("Filter paid transactions");
89
            var txtActivefilter = _("Filter paid transactions");
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt (-2 / +2 lines)
Lines 10-16 Link Here
10
>
10
>
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% BLOCK cssinclude %]
12
[% BLOCK cssinclude %]
13
    <style>
13
    <style nonce="[% Koha.CSPNonce | $raw %]">
14
        form {
14
        form {
15
            margin-left: 3rem;
15
            margin-left: 3rem;
16
        }
16
        }
Lines 188-194 Link Here
188
188
189
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
189
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
190
[% BLOCK jsinclude %]
190
[% BLOCK jsinclude %]
191
    <script>
191
    <script nonce="[% Koha.CSPNonce | $raw %]">
192
        $(document).ready(function() {
192
        $(document).ready(function() {
193
            [% IF WINDOW_PARENT_RELOAD %]
193
            [% IF WINDOW_PARENT_RELOAD %]
194
                opener.location.reload();
194
                opener.location.reload();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-2 / +2 lines)
Lines 14-20 Link Here
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% BLOCK cssinclude %]
15
[% BLOCK cssinclude %]
16
    [% FILTER collapse %]
16
    [% FILTER collapse %]
17
        <style>
17
        <style nonce="[% Koha.CSPNonce | $raw %]">
18
            .adv-search-grid {
18
            .adv-search-grid {
19
                display: grid;
19
                display: grid;
20
                gap: 0.5rem;
20
                gap: 0.5rem;
Lines 525-531 Link Here
525
525
526
[% BLOCK jsinclude %]
526
[% BLOCK jsinclude %]
527
    [% Asset.js("lib/jquery/plugins/jquery.deserialize.min.js") | $raw %]
527
    [% Asset.js("lib/jquery/plugins/jquery.deserialize.min.js") | $raw %]
528
    <script>
528
    <script nonce="[% Koha.CSPNonce | $raw %]">
529
        window.addEventListener('pageshow', function( e ){
529
        window.addEventListener('pageshow', function( e ){
530
            $('.form-control:visible').prop('disabled' , false );
530
            $('.form-control:visible').prop('disabled' , false );
531
        });
531
        });
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-alert-subscriptions.tt (-1 / +1 lines)
Lines 99-105 Link Here
99
[% INCLUDE 'opac-bottom.inc' %]
99
[% INCLUDE 'opac-bottom.inc' %]
100
[% BLOCK jsinclude %]
100
[% BLOCK jsinclude %]
101
    [% INCLUDE 'datatables.inc' %]
101
    [% INCLUDE 'datatables.inc' %]
102
    <script>
102
    <script nonce="[% Koha.CSPNonce | $raw %]">
103
        $(document).ready(function () {
103
        $(document).ready(function () {
104
            $("#subscriptions").kohaTable();
104
            $("#subscriptions").kohaTable();
105
            $(".unsubscribe").submit(function () {
105
            $(".unsubscribe").submit(function () {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt (-1 / +1 lines)
Lines 95-101 Link Here
95
[% INCLUDE 'opac-bottom.inc' %]
95
[% INCLUDE 'opac-bottom.inc' %]
96
[% BLOCK jsinclude %]
96
[% BLOCK jsinclude %]
97
    [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
97
    [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
98
    <script>
98
    <script nonce="[% Koha.CSPNonce | $raw %]">
99
        $(document).ready(function() {
99
        $(document).ready(function() {
100
            [% IF ( displayhierarchy ) %]
100
            [% IF ( displayhierarchy ) %]
101
                $('#hierarchies').jstree({
101
                $('#hierarchies').jstree({
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt (-1 / +1 lines)
Lines 214-220 Link Here
214
    [% IF ( displayhierarchy ) %]
214
    [% IF ( displayhierarchy ) %]
215
        [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
215
        [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
216
    [% END %]
216
    [% END %]
217
    <script>
217
    <script nonce="[% Koha.CSPNonce | $raw %]">
218
        $(document).ready(function() {
218
        $(document).ready(function() {
219
            [% IF ( displayhierarchy ) %]
219
            [% IF ( displayhierarchy ) %]
220
                $('#hierarchies').jstree({
220
                $('#hierarchies').jstree({
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-1 / +1 lines)
Lines 305-311 Link Here
305
305
306
[% INCLUDE 'opac-bottom.inc' %]
306
[% INCLUDE 'opac-bottom.inc' %]
307
[% BLOCK jsinclude %]
307
[% BLOCK jsinclude %]
308
    <script>
308
    <script nonce="[% Koha.CSPNonce | $raw %]">
309
        // Hide circular 'Log in to Your Account' link in opac-auth.pl
309
        // Hide circular 'Log in to Your Account' link in opac-auth.pl
310
        $(document).ready(function () {
310
        $(document).ready(function () {
311
            if ($("#auth")) {
311
            if ($("#auth")) {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt (-1 / +1 lines)
Lines 119-125 Link Here
119
[% INCLUDE 'opac-bottom.inc' %]
119
[% INCLUDE 'opac-bottom.inc' %]
120
[% BLOCK jsinclude %]
120
[% BLOCK jsinclude %]
121
    [% INCLUDE 'datatables.inc' %]
121
    [% INCLUDE 'datatables.inc' %]
122
    <script type="text/JavaScript">
122
    <script nonce="[% Koha.CSPNonce | $raw %]" type="text/JavaScript">
123
        $(document).ready(function () {
123
        $(document).ready(function () {
124
            $(".table").kohaTable({
124
            $(".table").kohaTable({
125
                searching: false,
125
                searching: false,
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (-2 / +2 lines)
Lines 19-25 Link Here
19
[% INCLUDE 'doc-head-close.inc' %]
19
[% INCLUDE 'doc-head-close.inc' %]
20
[% BLOCK cssinclude %]
20
[% BLOCK cssinclude %]
21
    [% FILTER collapse %]
21
    [% FILTER collapse %]
22
        <style>
22
        <style nonce="[% Koha.CSPNonce | $raw %]">
23
            .item-status,
23
            .item-status,
24
            .dt-buttons {
24
            .dt-buttons {
25
                display: inline;
25
                display: inline;
Lines 443-449 Link Here
443
443
444
[% BLOCK jsinclude %]
444
[% BLOCK jsinclude %]
445
    [% INCLUDE 'datatables.inc' %]
445
    [% INCLUDE 'datatables.inc' %]
446
    <script>
446
    <script nonce="[% Koha.CSPNonce | $raw %]">
447
        [% IF ( TagsInputEnabled && loggedinusername ) %]
447
        [% IF ( TagsInputEnabled && loggedinusername ) %]
448
            function tagSelected() {
448
            function tagSelected() {
449
                var bibs = document.getElementById('records').value;
449
                var bibs = document.getElementById('records').value;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt (-1 / +1 lines)
Lines 138-144 Link Here
138
[% INCLUDE 'opac-bottom.inc' %]
138
[% INCLUDE 'opac-bottom.inc' %]
139
[% BLOCK jsinclude %]
139
[% BLOCK jsinclude %]
140
    [% INCLUDE 'datatables.inc' %]
140
    [% INCLUDE 'datatables.inc' %]
141
    <script>
141
    <script nonce="[% Koha.CSPNonce | $raw %]">
142
        $(document).ready(function() {
142
        $(document).ready(function() {
143
            table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %];
143
            table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %];
144
            $("#course-items-table").kohaTable(
144
            $("#course-items-table").kohaTable(
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt (-1 / +1 lines)
Lines 83-89 Link Here
83
[% INCLUDE 'opac-bottom.inc' %]
83
[% INCLUDE 'opac-bottom.inc' %]
84
[% BLOCK jsinclude %]
84
[% BLOCK jsinclude %]
85
    [% INCLUDE 'datatables.inc' %]
85
    [% INCLUDE 'datatables.inc' %]
86
    <script>
86
    <script nonce="[% Koha.CSPNonce | $raw %]">
87
        $(document).ready(function() {
87
        $(document).ready(function() {
88
            table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_list', 'course_reserves_table', 'json' ) | $raw %]
88
            table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_list', 'course_reserves_table', 'json' ) | $raw %]
89
            $("#course_reserves_table").kohaTable(
89
            $("#course_reserves_table").kohaTable(
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt (-4 / +4 lines)
Lines 16-22 Link Here
16
    [% END %]</title
16
    [% END %]</title
17
>
17
>
18
[% FILTER collapse %]
18
[% FILTER collapse %]
19
    <style>
19
    <style nonce="[% Koha.CSPNonce | $raw %]">
20
        .pickup_time input[type="radio"] {
20
        .pickup_time input[type="radio"] {
21
            display: none;
21
            display: none;
22
        }
22
        }
Lines 280-294 Link Here
280
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
280
    [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %]
281
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
281
    [% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %]
282
    [% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %]
282
    [% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %]
283
    <script>
283
    <script nonce="[% Koha.CSPNonce | $raw %]">
284
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
284
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
285
    </script>
285
    </script>
286
    <script>
286
    <script nonce="[% Koha.CSPNonce | $raw %]">
287
        dayjs.extend(window.dayjs_plugin_customParseFormat);
287
        dayjs.extend(window.dayjs_plugin_customParseFormat);
288
    </script>
288
    </script>
289
    [% INCLUDE 'calendar.inc' %]
289
    [% INCLUDE 'calendar.inc' %]
290
    [% INCLUDE 'datatables.inc' %]
290
    [% INCLUDE 'datatables.inc' %]
291
    <script>
291
    <script nonce="[% Koha.CSPNonce | $raw %]">
292
        [% SET pickup_exists_in = [] %]
292
        [% SET pickup_exists_in = [] %]
293
        [% FOR p IN patron_curbside_pickups %]
293
        [% FOR p IN patron_curbside_pickups %]
294
            [% UNLESS p.delivered_by  %]
294
            [% UNLESS p.delivered_by  %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 48-54 Link Here
48
[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
48
[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
49
[% INCLUDE 'doc-head-close.inc' %]
49
[% INCLUDE 'doc-head-close.inc' %]
50
[% FILTER collapse %]
50
[% FILTER collapse %]
51
    <style>
51
    <style nonce="[% Koha.CSPNonce | $raw %]">
52
        .component_part {
52
        .component_part {
53
            padding: 0.5rem 0.9rem;
53
            padding: 0.5rem 0.9rem;
54
            border-bottom: 1px solid #bcbcbc;
54
            border-bottom: 1px solid #bcbcbc;
Lines 1640-1646 Link Here
1640
    [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1640
    [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1641
1641
1642
    [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1642
    [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1643
        <script>
1643
        <script nonce="[% Koha.CSPNonce | $raw %]">
1644
            var interface = "[% interface | html %]";
1644
            var interface = "[% interface | html %]";
1645
            var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1645
            var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1646
        </script>
1646
        </script>
Lines 1650-1656 Link Here
1650
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
1650
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
1651
        [% Asset.js("js/openlibrary.js") | $raw %]
1651
        [% Asset.js("js/openlibrary.js") | $raw %]
1652
    [% END %]
1652
    [% END %]
1653
    <script>
1653
    <script nonce="[% Koha.CSPNonce | $raw %]">
1654
        window.emojiPicker = new EmojiPicker({
1654
        window.emojiPicker = new EmojiPicker({
1655
        emojiable_selector: '[data-emojiable=true]',
1655
        emojiable_selector: '[data-emojiable=true]',
1656
        assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1656
        assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-downloadshelf.tt (-2 / +2 lines)
Lines 83-89 Link Here
83
                                </fieldset>
83
                                </fieldset>
84
                            </form>
84
                            </form>
85
                            [% IF ( modal ) %]
85
                            [% IF ( modal ) %]
86
                                <script>
86
                                <script nonce="[% Koha.CSPNonce | $raw %]">
87
                                    $(document).ready(function () {
87
                                    $(document).ready(function () {
88
                                        $("#userdownloadshelf form").on("submit", function (e) {
88
                                        $("#userdownloadshelf form").on("submit", function (e) {
89
                                            if ($("#dlformat").val() == "") {
89
                                            if ($("#dlformat").val() == "") {
Lines 115-121 Link Here
115
<!-- / .main -->
115
<!-- / .main -->
116
[% INCLUDE 'opac-bottom.inc' %]
116
[% INCLUDE 'opac-bottom.inc' %]
117
[% BLOCK jsinclude %]
117
[% BLOCK jsinclude %]
118
    <script>
118
    <script nonce="[% Koha.CSPNonce | $raw %]">
119
        $(document).ready(function () {
119
        $(document).ready(function () {
120
            $("#userdownloadshelf form").on("submit", function (e) {
120
            $("#userdownloadshelf form").on("submit", function (e) {
121
                if ($("#dlformat").val() == "") {
121
                if ($("#dlformat").val() == "") {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt (-2 / +2 lines)
Lines 18-24 Link Here
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
[% BLOCK cssinclude %]
19
[% BLOCK cssinclude %]
20
    [% FILTER collapse %]
20
    [% FILTER collapse %]
21
        <style>
21
        <style nonce="[% Koha.CSPNonce | $raw %]">
22
            div.tabsub {
22
            div.tabsub {
23
                clear: both;
23
                clear: both;
24
            }
24
            }
Lines 190-196 Link Here
190
[% INCLUDE 'opac-bottom.inc' %]
190
[% INCLUDE 'opac-bottom.inc' %]
191
[% BLOCK jsinclude %]
191
[% BLOCK jsinclude %]
192
    [% INCLUDE 'datatables.inc' %]
192
    [% INCLUDE 'datatables.inc' %]
193
    <script>
193
    <script nonce="[% Koha.CSPNonce | $raw %]">
194
        $(document).ready(function(){
194
        $(document).ready(function(){
195
            showlayer([% yearmin | html %]);
195
            showlayer([% yearmin | html %]);
196
            $("a.tabsubs:first").addClass("currentsubtab");
196
            $("a.tabsubs:first").addClass("currentsubtab");
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-holdshistory.tt (-2 / +2 lines)
Lines 20-26 Link Here
20
>
20
>
21
[% INCLUDE 'doc-head-close.inc' %]
21
[% INCLUDE 'doc-head-close.inc' %]
22
[% BLOCK cssinclude %]
22
[% BLOCK cssinclude %]
23
    <style>
23
    <style nonce="[% Koha.CSPNonce | $raw %]">
24
        .controls .paginate_button {
24
        .controls .paginate_button {
25
            font-family: "FontAwesome";
25
            font-family: "FontAwesome";
26
            text-decoration: none;
26
            text-decoration: none;
Lines 191-197 Link Here
191
[% INCLUDE 'opac-bottom.inc' %]
191
[% INCLUDE 'opac-bottom.inc' %]
192
[% BLOCK jsinclude %]
192
[% BLOCK jsinclude %]
193
    [% INCLUDE 'datatables.inc' %]
193
    [% INCLUDE 'datatables.inc' %]
194
    <script>
194
    <script nonce="[% Koha.CSPNonce | $raw %]">
195
        $(document).ready(function () {
195
        $(document).ready(function () {
196
            $("#sort").change(function () {
196
            $("#sort").change(function () {
197
                $("#sortform").submit();
197
                $("#sortform").submit();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-idref.tt (-2 / +2 lines)
Lines 10-16 Link Here
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% BLOCK cssinclude %]
12
[% BLOCK cssinclude %]
13
    <style>
13
    <style nonce="[% Koha.CSPNonce | $raw %]">
14
        #idref h2.role {
14
        #idref h2.role {
15
            background-color: #dddeee;
15
            background-color: #dddeee;
16
            cursor: pointer;
16
            cursor: pointer;
Lines 57-63 Link Here
57
</main>
57
</main>
58
[% BLOCK jsinclude %]
58
[% BLOCK jsinclude %]
59
    [% INCLUDE 'datatables.inc' %]
59
    [% INCLUDE 'datatables.inc' %]
60
    <script>
60
    <script nonce="[% Koha.CSPNonce | $raw %]">
61
        $(document).ready(function () {
61
        $(document).ready(function () {
62
            $("table").kohaTable({
62
            $("table").kohaTable({
63
                filter: false,
63
                filter: false,
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-2 / +2 lines)
Lines 406-412 Link Here
406
406
407
[% BLOCK jsinclude %]
407
[% BLOCK jsinclude %]
408
    [% INCLUDE 'datatables.inc' %]
408
    [% INCLUDE 'datatables.inc' %]
409
    <script>
409
    <script nonce="[% Koha.CSPNonce | $raw %]">
410
        function display_extended_attribute(row, type) {
410
        function display_extended_attribute(row, type) {
411
            var arr = $.grep(row.extended_attributes, ( x => x.type === type ));
411
            var arr = $.grep(row.extended_attributes, ( x => x.type === type ));
412
            if (arr.length > 0) {
412
            if (arr.length > 0) {
Lines 519-525 Link Here
519
    </script>
519
    </script>
520
    [% IF op == 'availability' %]
520
    [% IF op == 'availability' %]
521
        [% Asset.js("js/ill-availability.js") | $raw %]
521
        [% Asset.js("js/ill-availability.js") | $raw %]
522
        <script>
522
        <script nonce="[% Koha.CSPNonce | $raw %]">
523
            $(document).ready(function () {
523
            $(document).ready(function () {
524
                window.doSearch();
524
                window.doSearch();
525
            });
525
            });
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt (-2 / +2 lines)
Lines 15-21 Link Here
15
>
15
>
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% BLOCK cssinclude %]
17
[% BLOCK cssinclude %]
18
    <style>
18
    <style nonce="[% Koha.CSPNonce | $raw %]">
19
        #largeCoverImg {
19
        #largeCoverImg {
20
            border: 1px solid #cccccc;
20
            border: 1px solid #cccccc;
21
            display: block;
21
            display: block;
Lines 121-127 Link Here
121
121
122
[% INCLUDE 'opac-bottom.inc' %]
122
[% INCLUDE 'opac-bottom.inc' %]
123
[% BLOCK jsinclude %]
123
[% BLOCK jsinclude %]
124
    <script>
124
    <script nonce="[% Koha.CSPNonce | $raw %]">
125
        $(document).ready(function(){
125
        $(document).ready(function(){
126
            $("#largeCoverImg").attr("src","[% interface | html %]/[% theme | html %]/images/loading.gif");
126
            $("#largeCoverImg").attr("src","[% interface | html %]/[% theme | html %]/images/loading.gif");
127
            showCover([% imagenumber | html %]);
127
            showCover([% imagenumber | html %]);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
>
21
>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
[% BLOCK cssinclude %]
23
[% BLOCK cssinclude %]
24
    <style>
24
    <style nonce="[% Koha.CSPNonce | $raw %]">
25
        .section_library {
25
        .section_library {
26
            margin-top: 1rem;
26
            margin-top: 1rem;
27
            margin-bottom: 1rem;
27
            margin-bottom: 1rem;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +1 lines)
Lines 1389-1395 Link Here
1389
    [% INCLUDE 'validator-strings.inc' %]
1389
    [% INCLUDE 'validator-strings.inc' %]
1390
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
1390
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
1391
    [% INCLUDE 'calendar.inc' %]
1391
    [% INCLUDE 'calendar.inc' %]
1392
    <script>
1392
    <script nonce="[% Koha.CSPNonce | $raw %]">
1393
        $(document).ready(function() {
1393
        $(document).ready(function() {
1394
                [% IF op == 'edit' && !OPACPatronDetails %]
1394
                [% IF op == 'edit' && !OPACPatronDetails %]
1395
                    $("#memberentry-form :input").attr('readonly', true);
1395
                    $("#memberentry-form :input").attr('readonly', true);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-1 / +1 lines)
Lines 361-367 Link Here
361
[% INCLUDE 'opac-bottom.inc' %]
361
[% INCLUDE 'opac-bottom.inc' %]
362
[% BLOCK jsinclude %]
362
[% BLOCK jsinclude %]
363
    [% INCLUDE 'datatables.inc' %]
363
    [% INCLUDE 'datatables.inc' %]
364
    <script>
364
    <script nonce="[% Koha.CSPNonce | $raw %]">
365
        $(document).ready(function(){
365
        $(document).ready(function(){
366
            function toggle_digest(id){
366
            function toggle_digest(id){
367
                let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
367
                let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt (-1 / +1 lines)
Lines 83-89 Link Here
83
[% INCLUDE 'opac-bottom.inc' %]
83
[% INCLUDE 'opac-bottom.inc' %]
84
[% BLOCK jsinclude %]
84
[% BLOCK jsinclude %]
85
    [% Asset.js("js/overdrive.js") | $raw %]
85
    [% Asset.js("js/overdrive.js") | $raw %]
86
    <script>
86
    <script nonce="[% Koha.CSPNonce | $raw %]">
87
        [%- IF Koha.Preference('OverDrivePasswordRequired') -%]
87
        [%- IF Koha.Preference('OverDrivePasswordRequired') -%]
88
            var OD_password_required = 1;
88
            var OD_password_required = 1;
89
        [%- ELSE -%]
89
        [%- ELSE -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt (-1 / +1 lines)
Lines 130-136 Link Here
130
[% BLOCK jsinclude %]
130
[% BLOCK jsinclude %]
131
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
131
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
132
    [% PROCESS 'password_check.inc' new_password => 'Newkey', minPasswordLength => logged_in_user.category.effective_min_password_length, RequireStrongPassword => logged_in_user.category.effective_require_strong_password %]
132
    [% PROCESS 'password_check.inc' new_password => 'Newkey', minPasswordLength => logged_in_user.category.effective_min_password_length, RequireStrongPassword => logged_in_user.category.effective_require_strong_password %]
133
    <script>
133
    <script nonce="[% Koha.CSPNonce | $raw %]">
134
        $(document).ready(function () {
134
        $(document).ready(function () {
135
            $("#mainform").validate({
135
            $("#mainform").validate({
136
                rules: {
136
                rules: {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
        [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
21
        [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
22
        [% PROCESS 'password_check.inc' new_password => 'newPassword', minPasswordLength => minPasswordLength, RequireStrongPassword => RequireStrongPassword %]
22
        [% PROCESS 'password_check.inc' new_password => 'newPassword', minPasswordLength => minPasswordLength, RequireStrongPassword => RequireStrongPassword %]
23
    [% END %]
23
    [% END %]
24
    <script>
24
    <script nonce="[% Koha.CSPNonce | $raw %]">
25
        $(function() {
25
        $(function() {
26
                $("#CheckAll").click(function(){
26
                $("#CheckAll").click(function(){
27
                        $("[name=deleteRequest]").attr('checked', true);
27
                        $("[name=deleteRequest]").attr('checked', true);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt (-1 / +1 lines)
Lines 97-103 Link Here
97
97
98
[% INCLUDE 'opac-bottom.inc' %]
98
[% INCLUDE 'opac-bottom.inc' %]
99
[% BLOCK jsinclude %]
99
[% BLOCK jsinclude %]
100
    <script>
100
    <script nonce="[% Koha.CSPNonce | $raw %]">
101
        $(document).ready(function () {
101
        $(document).ready(function () {
102
            // Initially no choice is made or no change, so disable button
102
            // Initially no choice is made or no change, so disable button
103
            $("#saveconsent").prop("disabled", true);
103
            $("#saveconsent").prop("disabled", true);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-1 / +1 lines)
Lines 228-234 Link Here
228
[% INCLUDE 'opac-bottom.inc' %]
228
[% INCLUDE 'opac-bottom.inc' %]
229
[% BLOCK jsinclude %]
229
[% BLOCK jsinclude %]
230
    [% INCLUDE 'datatables.inc' %]
230
    [% INCLUDE 'datatables.inc' %]
231
    <script>
231
    <script nonce="[% Koha.CSPNonce | $raw %]">
232
        $(document).ready(function(){
232
        $(document).ready(function(){
233
            [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
233
            [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
234
            $('#order').change(function() {
234
            $('#order').change(function() {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt (-1 / +1 lines)
Lines 194-200 Link Here
194
[% INCLUDE 'opac-bottom.inc' %]
194
[% INCLUDE 'opac-bottom.inc' %]
195
[% BLOCK jsinclude %]
195
[% BLOCK jsinclude %]
196
    [% INCLUDE 'calendar.inc' %]
196
    [% INCLUDE 'calendar.inc' %]
197
    <script>
197
    <script nonce="[% Koha.CSPNonce | $raw %]">
198
        $(document).ready(function () {
198
        $(document).ready(function () {
199
            $(".level-option").show();
199
            $(".level-option").show();
200
            $("#items").hide();
200
            $("#items").hide();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt (-1 / +1 lines)
Lines 137-143 Link Here
137
[% INCLUDE 'opac-bottom.inc' %]
137
[% INCLUDE 'opac-bottom.inc' %]
138
[% BLOCK jsinclude %]
138
[% BLOCK jsinclude %]
139
    [% INCLUDE 'datatables.inc' %]
139
    [% INCLUDE 'datatables.inc' %]
140
    <script>
140
    <script nonce="[% Koha.CSPNonce | $raw %]">
141
        $(document).ready(function () {
141
        $(document).ready(function () {
142
            $(".cancel_recall").click(function () {
142
            $(".cancel_recall").click(function () {
143
                return confirmDelete(_("Are you sure you want to remove this recall?"));
143
                return confirmDelete(_("Are you sure you want to remove this recall?"));
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt (-1 / +1 lines)
Lines 263-269 Link Here
263
[% INCLUDE 'opac-bottom.inc' %]
263
[% INCLUDE 'opac-bottom.inc' %]
264
264
265
[% BLOCK jsinclude %]
265
[% BLOCK jsinclude %]
266
    <script>
266
    <script nonce="[% Koha.CSPNonce | $raw %]">
267
        $(document).ready( function() {
267
        $(document).ready( function() {
268
            allow_submit = false;
268
            allow_submit = false;
269
            $('#place-article-request').on('submit', function( event ){
269
            $('#place-article-request').on('submit', function( event ){
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-1 / +1 lines)
Lines 529-535 Link Here
529
[% BLOCK jsinclude %]
529
[% BLOCK jsinclude %]
530
    [% INCLUDE 'calendar.inc' %]
530
    [% INCLUDE 'calendar.inc' %]
531
    [% INCLUDE 'datatables.inc' %]
531
    [% INCLUDE 'datatables.inc' %]
532
    <script>
532
    <script nonce="[% Koha.CSPNonce | $raw %]">
533
        $(document).ready(function() {
533
        $(document).ready(function() {
534
534
535
            $(".toggle_unholdable").click(function(e){
535
            $(".toggle_unholdable").click(function(e){
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt (-1 / +1 lines)
Lines 135-141 Link Here
135
[% INCLUDE 'opac-bottom.inc' %]
135
[% INCLUDE 'opac-bottom.inc' %]
136
[% BLOCK jsinclude %]
136
[% BLOCK jsinclude %]
137
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
137
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
138
    <script>
138
    <script nonce="[% Koha.CSPNonce | $raw %]">
139
        jQuery.validator.addMethod(
139
        jQuery.validator.addMethod(
140
            "password_no_spaces",
140
            "password_no_spaces",
141
            function (value, element) {
141
            function (value, element) {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +2 lines)
Lines 481-494 Link Here
481
    [% END %]
481
    [% END %]
482
    [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
482
    [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
483
    [% CoverImagePlugins | $raw %]
483
    [% CoverImagePlugins | $raw %]
484
    <script>
484
    <script nonce="[% Koha.CSPNonce | $raw %]">
485
        const loggedinusername = [% ( loggedinusername ) ? 1 : 0 | html %];
485
        const loggedinusername = [% ( loggedinusername ) ? 1 : 0 | html %];
486
        const opacbookbag = [% ( opacbookbag ) ? 1 : 0 | html %];
486
        const opacbookbag = [% ( opacbookbag ) ? 1 : 0 | html %];
487
        const virtualshelves = [% ( virtualshelves ) ? 1 : 0 | html %];
487
        const virtualshelves = [% ( virtualshelves ) ? 1 : 0 | html %];
488
    </script>
488
    </script>
489
    [% Asset.js("js/results-list.js") | $raw %]
489
    [% Asset.js("js/results-list.js") | $raw %]
490
    [% Asset.js("js/cover_images.js") | $raw %]
490
    [% Asset.js("js/cover_images.js") | $raw %]
491
    <script>
491
    <script nonce="[% Koha.CSPNonce | $raw %]">
492
        [% IF ( OpacHighlightedWords ) %]
492
        [% IF ( OpacHighlightedWords ) %]
493
            var q_array = new Array();  // holds search terms if available
493
            var q_array = new Array();  // holds search terms if available
494
494
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-review.tt (-1 / +1 lines)
Lines 89-95 Link Here
89
89
90
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
90
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
91
[% BLOCK jsinclude %]
91
[% BLOCK jsinclude %]
92
    <script>
92
    <script nonce="[% Koha.CSPNonce | $raw %]">
93
        $(document).ready(function() {
93
        $(document).ready(function() {
94
            [% IF WINDOW_CLOSE %]
94
            [% IF WINDOW_CLOSE %]
95
                opener.location.reload();
95
                opener.location.reload();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt (-1 / +1 lines)
Lines 305-311 Link Here
305
305
306
[% BLOCK jsinclude %]
306
[% BLOCK jsinclude %]
307
    [% INCLUDE 'datatables.inc' %]
307
    [% INCLUDE 'datatables.inc' %]
308
    <script>
308
    <script nonce="[% Koha.CSPNonce | $raw %]">
309
        $(document).ready(function () {
309
        $(document).ready(function () {
310
            // We show table ordered by descending dates by default
310
            // We show table ordered by descending dates by default
311
            // (so that the more recent query is shown first)
311
            // (so that the more recent query is shown first)
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt (-1 / +1 lines)
Lines 16-22 Link Here
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% BLOCK cssinclude %]
18
[% BLOCK cssinclude %]
19
    <style>
19
    <style nonce="[% Koha.CSPNonce | $raw %]">
20
        .subscriptionline {
20
        .subscriptionline {
21
            border-bottom: 1px solid #eee;
21
            border-bottom: 1px solid #eee;
22
            padding: 1em 0;
22
            padding: 1em 0;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt (-1 / +1 lines)
Lines 153-159 Link Here
153
153
154
[% INCLUDE 'opac-bottom.inc' %]
154
[% INCLUDE 'opac-bottom.inc' %]
155
[% BLOCK jsinclude %]
155
[% BLOCK jsinclude %]
156
    <script>
156
    <script nonce="[% Koha.CSPNonce | $raw %]">
157
        $(document).ready(function () {
157
        $(document).ready(function () {
158
            $("#share_list").on("submit", function (e) {
158
            $("#share_list").on("submit", function (e) {
159
                var address = $("#invite_address").val();
159
                var address = $("#invite_address").val();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-2 / +2 lines)
Lines 831-844 Link Here
831
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
831
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
832
        [% Asset.js("js/openlibrary.js") | $raw %]
832
        [% Asset.js("js/openlibrary.js") | $raw %]
833
    [% END %]
833
    [% END %]
834
    <script>
834
    <script nonce="[% Koha.CSPNonce | $raw %]">
835
        const loggedinusername = [% ( loggedinusername ) ? 1 : 0 | html %];
835
        const loggedinusername = [% ( loggedinusername ) ? 1 : 0 | html %];
836
        const opacbookbag = [% ( opacbookbag ) ? 1 : 0 | html %];
836
        const opacbookbag = [% ( opacbookbag ) ? 1 : 0 | html %];
837
        const virtualshelves = [% ( virtualshelves ) ? 1 : 0 | html %];
837
        const virtualshelves = [% ( virtualshelves ) ? 1 : 0 | html %];
838
    </script>
838
    </script>
839
    [% Asset.js("js/results-list.js") | $raw %]
839
    [% Asset.js("js/results-list.js") | $raw %]
840
    [% Asset.js("js/cover_images.js") | $raw %]
840
    [% Asset.js("js/cover_images.js") | $raw %]
841
    <script>
841
    <script nonce="[% Koha.CSPNonce | $raw %]">
842
        let counter_wait = 0;
842
        let counter_wait = 0;
843
        function wait_for_images(cb){
843
        function wait_for_images(cb){
844
844
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt (-1 / +1 lines)
Lines 202-208 Link Here
202
[% INCLUDE 'opac-bottom.inc' %]
202
[% INCLUDE 'opac-bottom.inc' %]
203
[% BLOCK jsinclude %]
203
[% BLOCK jsinclude %]
204
    [% IF ( GoogleJackets ) %]
204
    [% IF ( GoogleJackets ) %]
205
        <script>
205
        <script nonce="[% Koha.CSPNonce | $raw %]">
206
            $(document).ready(function () {
206
            $(document).ready(function () {
207
                KOHA.Google.GetCoverFromIsbn();
207
                KOHA.Google.GetCoverFromIsbn();
208
            });
208
            });
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-1 / +1 lines)
Lines 576-582 Link Here
576
        [% Asset.js("js/autofill.js") | $raw %]
576
        [% Asset.js("js/autofill.js") | $raw %]
577
    [% END %]
577
    [% END %]
578
    [% INCLUDE 'datatables.inc' %]
578
    [% INCLUDE 'datatables.inc' %]
579
    <script>
579
    <script nonce="[% Koha.CSPNonce | $raw %]">
580
        [% IF ( loggedinusername ) %]
580
        [% IF ( loggedinusername ) %]
581
            function enableCheckboxActions(){
581
            function enableCheckboxActions(){
582
                // Enable/disable controls if checkboxes are checked
582
                // Enable/disable controls if checkboxes are checked
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt (-3 / +3 lines)
Lines 26-32 Link Here
26
>
26
>
27
[% INCLUDE 'doc-head-close.inc' %]
27
[% INCLUDE 'doc-head-close.inc' %]
28
[% BLOCK cssinclude %]
28
[% BLOCK cssinclude %]
29
    <style>
29
    <style nonce="[% Koha.CSPNonce | $raw %]">
30
        fieldset {
30
        fieldset {
31
            padding: 0.3em;
31
            padding: 0.3em;
32
            margin: 0.3em 0;
32
            margin: 0.3em 0;
Lines 249-261 Link Here
249
[% INCLUDE 'opac-bottom.inc' %]
249
[% INCLUDE 'opac-bottom.inc' %]
250
[% BLOCK jsinclude %]
250
[% BLOCK jsinclude %]
251
    [% INCLUDE 'datatables.inc' %]
251
    [% INCLUDE 'datatables.inc' %]
252
    <script>
252
    <script nonce="[% Koha.CSPNonce | $raw %]">
253
        const loggedinusername = [% ( loggedinusername ) ? 1 : 0 | html %];
253
        const loggedinusername = [% ( loggedinusername ) ? 1 : 0 | html %];
254
        const opacbookbag = [% ( opacbookbag ) ? 1 : 0 | html %];
254
        const opacbookbag = [% ( opacbookbag ) ? 1 : 0 | html %];
255
        const virtualshelves = [% ( virtualshelves ) ? 1 : 0 | html %];
255
        const virtualshelves = [% ( virtualshelves ) ? 1 : 0 | html %];
256
    </script>
256
    </script>
257
    [% Asset.js("js/results-list.js") | $raw %]
257
    [% Asset.js("js/results-list.js") | $raw %]
258
    <script>
258
    <script nonce="[% Koha.CSPNonce | $raw %]">
259
        $(document).ready(function () {
259
        $(document).ready(function () {
260
            $("body").on("click", ".remove", function (e) {
260
            $("body").on("click", ".remove", function (e) {
261
                e.preventDefault();
261
                e.preventDefault();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-topissues.tt (-2 / +2 lines)
Lines 17-23 Link Here
17
>
17
>
18
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
19
[% BLOCK cssinclude %]
19
[% BLOCK cssinclude %]
20
    <style>
20
    <style nonce="[% Koha.CSPNonce | $raw %]">
21
        #search-facets fieldset {
21
        #search-facets fieldset {
22
            border: 0;
22
            border: 0;
23
            margin: 0;
23
            margin: 0;
Lines 152-158 Link Here
152
[% INCLUDE 'opac-bottom.inc' %]
152
[% INCLUDE 'opac-bottom.inc' %]
153
[% BLOCK jsinclude %]
153
[% BLOCK jsinclude %]
154
    [% INCLUDE 'datatables.inc' %]
154
    [% INCLUDE 'datatables.inc' %]
155
    <script>
155
    <script nonce="[% Koha.CSPNonce | $raw %]">
156
        $(function () {
156
        $(function () {
157
            $("#topissuest").kohaTable({
157
            $("#topissuest").kohaTable({
158
                order: [[3, "desc"]],
158
                order: [[3, "desc"]],
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +2 lines)
Lines 1057-1063 Link Here
1057
[% BLOCK jsinclude %]
1057
[% BLOCK jsinclude %]
1058
    [% INCLUDE 'calendar.inc' %]
1058
    [% INCLUDE 'calendar.inc' %]
1059
    [% INCLUDE 'datatables.inc' %]
1059
    [% INCLUDE 'datatables.inc' %]
1060
    <script>
1060
    <script nonce="[% Koha.CSPNonce | $raw %]">
1061
        var AR_CAPTION_COUNT = _("(%s total)");
1061
        var AR_CAPTION_COUNT = _("(%s total)");
1062
1062
1063
1063
Lines 1430-1436 Link Here
1430
    [% END %]
1430
    [% END %]
1431
    [% IF OverDriveCirculation %]
1431
    [% IF OverDriveCirculation %]
1432
        [% Asset.js("js/overdrive.js") | $raw %]
1432
        [% Asset.js("js/overdrive.js") | $raw %]
1433
        <script>
1433
        <script nonce="[% Koha.CSPNonce | $raw %]">
1434
            [%- IF Koha.Preference('OverDrivePasswordRequired') -%]
1434
            [%- IF Koha.Preference('OverDrivePasswordRequired') -%]
1435
                var OD_password_required = 1;
1435
                var OD_password_required = 1;
1436
            [%- ELSE -%]
1436
            [%- ELSE -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt (-6 / +6 lines)
Lines 53-74 Link Here
53
[% END %]
53
[% END %]
54
[% IF ( Koha.Preference('OPACUserCSS') ) %]
54
[% IF ( Koha.Preference('OPACUserCSS') ) %]
55
    <!-- prettier-ignore-start -->
55
    <!-- prettier-ignore-start -->
56
    <style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>
56
    <style nonce="[% Koha.CSPNonce | $raw %]">[% Koha.Preference('OPACUserCSS') | $raw %]</style>
57
    <!-- prettier-ignore-end -->
57
    <!-- prettier-ignore-end -->
58
[% END %]
58
[% END %]
59
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
59
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
60
    <!-- prettier-ignore-start -->
60
    <!-- prettier-ignore-start -->
61
    <style>
61
    <style nonce="[% Koha.CSPNonce | $raw %]">
62
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
62
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
63
    </style>
63
    </style>
64
    <!-- prettier-ignore-end -->
64
    <!-- prettier-ignore-end -->
65
[% END %]
65
[% END %]
66
[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %]
66
[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %]
67
    <!-- prettier-ignore-start -->
67
    <!-- prettier-ignore-start -->
68
    <style>[% Koha.Preference('SelfCheckInUserCSS') | $raw %]</style>
68
    <style nonce="[% Koha.CSPNonce | $raw %]">[% Koha.Preference('SelfCheckInUserCSS') | $raw %]</style>
69
    <!-- prettier-ignore-end -->
69
    <!-- prettier-ignore-end -->
70
[% END %]
70
[% END %]
71
<script>
71
<script nonce="[% Koha.CSPNonce | $raw %]">
72
    var Koha = {};
72
    var Koha = {};
73
    function _(s) {
73
    function _(s) {
74
        return s;
74
        return s;
Lines 230-236 Link Here
230
230
231
    [% INCLUDE 'opac-bottom.inc' %]
231
    [% INCLUDE 'opac-bottom.inc' %]
232
    [% BLOCK jsinclude %]
232
    [% BLOCK jsinclude %]
233
        <script>
233
        <script nonce="[% Koha.CSPNonce | $raw %]">
234
            function mungeHistory() {
234
            function mungeHistory() {
235
                        // prevent back button from allowing form resubmission
235
                        // prevent back button from allowing form resubmission
236
                        if (history && history.pushState) {
236
                        if (history && history.pushState) {
Lines 345-351 Link Here
345
            });
345
            });
346
        </script>
346
        </script>
347
        [% IF ( Koha.Preference('SelfCheckInUserJS') ) %]
347
        [% IF ( Koha.Preference('SelfCheckInUserJS') ) %]
348
            <script>
348
            <script nonce="[% Koha.CSPNonce | $raw %]">
349
                [% Koha.Preference('SelfCheckInUserJS') | $raw %]
349
                [% Koha.Preference('SelfCheckInUserJS') | $raw %]
350
            </script>
350
            </script>
351
        [% END %]
351
        [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt (-5 / +5 lines)
Lines 23-44 Link Here
23
[% Asset.css("css/sco.css") | $raw %]
23
[% Asset.css("css/sco.css") | $raw %]
24
[% IF ( Koha.Preference('OPACUserCSS') ) %]
24
[% IF ( Koha.Preference('OPACUserCSS') ) %]
25
    <!-- prettier-ignore-start -->
25
    <!-- prettier-ignore-start -->
26
    <style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>
26
    <style nonce="[% Koha.CSPNonce | $raw %]">[% Koha.Preference('OPACUserCSS') | $raw %]</style>
27
    <!-- prettier-ignore-end -->
27
    <!-- prettier-ignore-end -->
28
[% END %]
28
[% END %]
29
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
29
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
30
    <!-- prettier-ignore-start -->
30
    <!-- prettier-ignore-start -->
31
    <style>
31
    <style nonce="[% Koha.CSPNonce | $raw %]">
32
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
32
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
33
    </style>
33
    </style>
34
    <!-- prettier-ignore-end -->
34
    <!-- prettier-ignore-end -->
35
[% END %]
35
[% END %]
36
[% IF ( SCOUserCSS ) %]
36
[% IF ( SCOUserCSS ) %]
37
    <!-- prettier-ignore-start -->
37
    <!-- prettier-ignore-start -->
38
    <style>[% SCOUserCSS | $raw %]</style>
38
    <style nonce="[% Koha.CSPNonce | $raw %]">[% SCOUserCSS | $raw %]</style>
39
    <!-- prettier-ignore-end -->
39
    <!-- prettier-ignore-end -->
40
[% END %]
40
[% END %]
41
<script>
41
<script nonce="[% Koha.CSPNonce | $raw %]">
42
    var Koha = {};
42
    var Koha = {};
43
    function _(s) {
43
    function _(s) {
44
        return s;
44
        return s;
Lines 99-105 Link Here
99
[% INCLUDE 'opac-bottom.inc' %]
99
[% INCLUDE 'opac-bottom.inc' %]
100
[% BLOCK jsinclude %]
100
[% BLOCK jsinclude %]
101
    [% IF ( SCOUserJS ) %]
101
    [% IF ( SCOUserJS ) %]
102
        <script>
102
        <script nonce="[% Koha.CSPNonce | $raw %]">
103
            [% SCOUserJS | $raw %]
103
            [% SCOUserJS | $raw %]
104
        </script>
104
        </script>
105
    [% END %]
105
    [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt (-1 / +1 lines)
Lines 20-26 Link Here
20
[% IF stylesheet %]
20
[% IF stylesheet %]
21
    <link rel="stylesheet" type="text/css" href="[% stylesheet | $raw %]" />
21
    <link rel="stylesheet" type="text/css" href="[% stylesheet | $raw %]" />
22
[% END %]
22
[% END %]
23
<script>
23
<script nonce="[% Koha.CSPNonce | $raw %]">
24
    var Koha = {};
24
    var Koha = {};
25
    function _(s) { return s } // dummy function for gettext
25
    function _(s) { return s } // dummy function for gettext
26
    const is_logged_in = [% IF logged_in_user %]true[% ELSE %]false[% END %]
26
    const is_logged_in = [% IF logged_in_user %]true[% ELSE %]false[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-7 / +6 lines)
Lines 34-55 Link Here
34
[% END %]
34
[% END %]
35
[% IF ( Koha.Preference('OPACUserCSS') ) %]
35
[% IF ( Koha.Preference('OPACUserCSS') ) %]
36
    <!-- prettier-ignore-start -->
36
    <!-- prettier-ignore-start -->
37
    <style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>
37
    <style nonce="[% Koha.CSPNonce | $raw %]">[% Koha.Preference('OPACUserCSS') | $raw %]</style>
38
    <!-- prettier-ignore-end -->
38
    <!-- prettier-ignore-end -->
39
[% END %]
39
[% END %]
40
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
40
[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %]
41
    <!-- prettier-ignore-start -->
41
    <!-- prettier-ignore-start -->
42
    <style>
42
    <style nonce="[% Koha.CSPNonce | $raw %]">
43
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
43
        [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %]
44
    </style>
44
    </style>
45
    <!-- prettier-ignore-end -->
45
    <!-- prettier-ignore-end -->
46
[% END %]
46
[% END %]
47
[% IF ( Koha.Preference('SCOUserCSS') ) %]
47
[% IF ( Koha.Preference('SCOUserCSS') ) %]
48
    <!-- prettier-ignore-start -->
48
    <!-- prettier-ignore-start -->
49
    <style>[% Koha.Preference('SCOUserCSS') | $raw %]</style>
49
    <style nonce="[% Koha.CSPNonce | $raw %]">[% Koha.Preference('SCOUserCSS') | $raw %]</style>
50
    <!-- prettier-ignore-end -->
50
    <!-- prettier-ignore-end -->
51
[% END %]
51
[% END %]
52
<script>
52
<script nonce="[% Koha.CSPNonce | $raw %]">
53
    var Koha = {};
53
    var Koha = {};
54
    function _(s) {
54
    function _(s) {
55
        return s;
55
        return s;
Lines 409-415 Link Here
409
    [% INCLUDE 'opac-bottom.inc' %]
409
    [% INCLUDE 'opac-bottom.inc' %]
410
    [% BLOCK jsinclude %]
410
    [% BLOCK jsinclude %]
411
        [% INCLUDE 'datatables.inc' %]
411
        [% INCLUDE 'datatables.inc' %]
412
        <script>
412
        <script nonce="[% Koha.CSPNonce | $raw %]">
413
            function mungeHistory() {
413
            function mungeHistory() {
414
                    // prevent back button from allowing form resubmission
414
                    // prevent back button from allowing form resubmission
415
                    if (history && history.pushState) {
415
                    if (history && history.pushState) {
Lines 529-535 Link Here
529
        </script>
529
        </script>
530
        [% Asset.js("js/holds.js") | $raw %]
530
        [% Asset.js("js/holds.js") | $raw %]
531
        [% IF ( Koha.Preference('SCOUserJS') ) %]
531
        [% IF ( Koha.Preference('SCOUserJS') ) %]
532
            <script>
532
            <script nonce="[% Koha.CSPNonce | $raw %]">
533
                [% Koha.Preference('SCOUserJS') | $raw %]
533
                [% Koha.Preference('SCOUserJS') | $raw %]
534
            </script>
534
            </script>
535
        [% END %]
535
        [% END %]
536
- 

Return to bug 38365