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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc (-1 / +1 lines)
Lines 12-18 function mergeAuth(authid, summary) { Link Here
12
        }
12
        }
13
        window.location.href = "/cgi-bin/koha/authorities/merge.pl?authid=" + authid + "&authid=" + alreadySelected.authid + refstring;
13
        window.location.href = "/cgi-bin/koha/authorities/merge.pl?authid=" + authid + "&authid=" + alreadySelected.authid + refstring;
14
    } else {
14
    } else {
15
        Cookies.set('auth_to_merge', JSON.stringify({ 'authid': authid, 'summary': summary }), { 'path' : '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
15
        Cookies.set('auth_to_merge', JSON.stringify({ 'authid': authid, 'summary': summary }), { 'path' : '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
16
        showMergingInProgress();
16
        showMergingInProgress();
17
    }
17
    }
18
}
18
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-1 / +1 lines)
Lines 979-985 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
979
    function changeEditor() {
979
    function changeEditor() {
980
            if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return;
980
            if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return;
981
981
982
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "basic", { expires: 365, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' } );
982
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "basic", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
983
983
984
            if ( state.backend == 'catalog' ) {
984
            if ( state.backend == 'catalog' ) {
985
                window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID;
985
                window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-1 / +1 lines)
Lines 339-345 Link Here
339
            }));
339
            }));
340
            $("#select_display").on("change",function(){
340
            $("#select_display").on("change",function(){
341
                var checked = $(this).prop("checked") ? 1: 0;
341
                var checked = $(this).prop("checked") ? 1: 0;
342
                Cookies.set("marctagstructure_selectdisplay", checked, { sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
342
                Cookies.set("marctagstructure_selectdisplay", checked, { sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
343
                this.form.submit();
343
                this.form.submit();
344
            });
344
            });
345
        });
345
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-5 / +4 lines)
Lines 543-554 $(document).ready(function(){ Link Here
543
    function toggleMARCdocLinks(flag){
543
    function toggleMARCdocLinks(flag){
544
        if( flag === true ){
544
        if( flag === true ){
545
            $(".marcdocs").show();
545
            $(".marcdocs").show();
546
546
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
547
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
548
            $("#marcDocsSelect i").addClass('fa-check-square').removeClass('fa-square');
547
            $("#marcDocsSelect i").addClass('fa-check-square').removeClass('fa-square');
549
        } else {
548
        } else {
550
            $(".marcdocs").hide();
549
            $(".marcdocs").hide();
551
            Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
550
            Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
552
            $("#marcDocsSelect i").removeClass('fa-check-square').addClass('fa-square');
551
            $("#marcDocsSelect i").removeClass('fa-check-square').addClass('fa-square');
553
        }
552
        }
554
    }
553
    }
Lines 557-568 $(document).ready(function(){ Link Here
557
        if( flag === true ){
556
        if( flag === true ){
558
            $(".tagnum").show();
557
            $(".tagnum").show();
559
            $(".subfieldcode").show();
558
            $(".subfieldcode").show();
560
            Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
559
            Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
561
            $("#marcTagsSelect i").addClass('fa-check-square').removeClass('fa-square');
560
            $("#marcTagsSelect i").addClass('fa-check-square').removeClass('fa-square');
562
        } else {
561
        } else {
563
            $(".tagnum").hide();
562
            $(".tagnum").hide();
564
            $(".subfieldcode").hide();
563
            $(".subfieldcode").hide();
565
            Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
564
            Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
566
            $("#marcTagsSelect i").removeClass('fa-check-square').addClass('fa-square');
565
            $("#marcTagsSelect i").removeClass('fa-check-square').addClass('fa-square');
567
        }
566
        }
568
    }
567
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 305-311 Link Here
305
            });
305
            });
306
306
307
            $("#useadvanced").click(function(){
307
            $("#useadvanced").click(function(){
308
                Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' } );
308
                Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
309
                return true;
309
                return true;
310
            });
310
            });
311
311
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (-1 / +1 lines)
Lines 250-256 Link Here
250
        });
250
        });
251
251
252
        $("#useadvanced").click(function(){
252
        $("#useadvanced").click(function(){
253
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' } );
253
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
254
            return true;
254
            return true;
255
        });
255
        });
256
    });
256
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-1 / +1 lines)
Lines 241-247 Link Here
241
        function SearchToHold(club_id) {
241
        function SearchToHold(club_id) {
242
            var date = new Date();
242
            var date = new Date();
243
            date.setTime(date.getTime() + (10 * 60 * 1000));
243
            date.setTime(date.getTime() + (10 * 60 * 1000));
244
            Cookies.set("holdforclub", club_id, { path: "/", expires: date, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
244
            Cookies.set("holdforclub", club_id, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
245
            location.href="/cgi-bin/koha/catalogue/search.pl";
245
            location.href="/cgi-bin/koha/catalogue/search.pl";
246
        }
246
        }
247
    </script>
247
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/js/acquisitions-menu.js (-1 / +1 lines)
Lines 3-9 function searchToOrder( basketno, vendorid ){ Link Here
3
    var cookieData = "";
3
    var cookieData = "";
4
    date.setTime(date.getTime() + (10 * 60 * 1000));
4
    date.setTime(date.getTime() + (10 * 60 * 1000));
5
    cookieData += basketno + "/" + vendorid;
5
    cookieData += basketno + "/" + vendorid;
6
    Cookies.set("searchToOrder", cookieData, { path: "/", expires: date, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
6
    Cookies.set("searchToOrder", cookieData, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
7
}
7
}
8
8
9
$(document).ready(function() {
9
$(document).ready(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-1 / +1 lines)
Lines 748-754 $(document).ready(function() { Link Here
748
        $('#issues-table-load-delay').hide();
748
        $('#issues-table-load-delay').hide();
749
    }
749
    }
750
    $('#issues-table-load-immediately').on( "change", function(){
750
    $('#issues-table-load-immediately').on( "change", function(){
751
        Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
751
        Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
752
    });
752
    });
753
753
754
    // Don't load relatives' issues table unless it is clicked on
754
    // Don't load relatives' issues table unless it is clicked on
(-)a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js (-1 / +1 lines)
Lines 146-151 function export_barcodes() { Link Here
146
function searchToHold(){
146
function searchToHold(){
147
    var date = new Date();
147
    var date = new Date();
148
    date.setTime(date.getTime() + (10 * 60 * 1000));
148
    date.setTime(date.getTime() + (10 * 60 * 1000));
149
    Cookies.set("holdfor", borrowernumber, { path: "/", expires: date, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
149
    Cookies.set("holdfor", borrowernumber, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
150
    location.href="/cgi-bin/koha/catalogue/search.pl";
150
    location.href="/cgi-bin/koha/catalogue/search.pl";
151
}
151
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js (-4 / +4 lines)
Lines 52-61 function hideColumn(num) { Link Here
52
        if (!found) {
52
        if (!found) {
53
            valCookie.push(hide);
53
            valCookie.push(hide);
54
            var cookieString = valCookie.join("/");
54
            var cookieString = valCookie.join("/");
55
            Cookies.set("showColumns", cookieString, { expires: date, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
55
            Cookies.set("showColumns", cookieString, { expires: date, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
56
        }
56
        }
57
    } else {
57
    } else {
58
        Cookies.set("showColumns", hide, { expires: date, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]'  });
58
        Cookies.set("showColumns", hide, { expires: date, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
59
    }
59
    }
60
}
60
}
61
61
Lines 88-94 function showColumn(num) { Link Here
88
        }
88
        }
89
        if (found) {
89
        if (found) {
90
            var cookieString = valCookie.join("/");
90
            var cookieString = valCookie.join("/");
91
            Cookies.set("showColumns", cookieString, { expires: date, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
91
            Cookies.set("showColumns", cookieString, { expires: date, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
92
        }
92
        }
93
    }
93
    }
94
}
94
}
Lines 113-119 function hideAllColumns() { Link Here
113
    $("#itemst td:nth-child("+nb_cols+"),#itemst tr th:nth-child("+nb_cols+")").nextAll().hide();
113
    $("#itemst td:nth-child("+nb_cols+"),#itemst tr th:nth-child("+nb_cols+")").nextAll().hide();
114
    $("#hideall").prop("checked", true).parent().addClass("selected");
114
    $("#hideall").prop("checked", true).parent().addClass("selected");
115
    var cookieString = allColumns.join("/");
115
    var cookieString = allColumns.join("/");
116
    Cookies.set("showColumns", cookieString, { expires: date, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]'  });
116
    Cookies.set("showColumns", cookieString, { expires: date, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
117
}
117
}
118
118
119
$(document).ready(function () {
119
$(document).ready(function () {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-5 / +4 lines)
Lines 519-536 $(document).ready(function() { Link Here
519
            }
519
            }
520
        });
520
        });
521
        form_serialized = $(this).serialize();
521
        form_serialized = $(this).serialize();
522
        Cookies.set("form_serialized", JSON.stringify( form_serialized ), { path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
522
        Cookies.set("form_serialized", JSON.stringify( form_serialized ), { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
523
        form_serialized_limits = [
523
        form_serialized_limits = [
524
            $('#language-limit').val(),   $('#branchloop').val(),
524
            $('#language-limit').val(),   $('#branchloop').val(),
525
            $('#subtype_audience').val(), $('#subtype_content').val(),
525
            $('#subtype_audience').val(), $('#subtype_content').val(),
526
            $('#subtype_format').val(),   $('#subtype_additional').val(),
526
            $('#subtype_format').val(),   $('#subtype_additional').val(),
527
            $('#locloop').val()
527
            $('#locloop').val()
528
        ];
528
        ];
529
        Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
529
        Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
530
        [% IF ( expanded_options ) %]
530
        [% IF ( expanded_options ) %]
531
            Cookies.set("search_path_code", 'exs', { path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
531
            Cookies.set("search_path_code", 'exs', { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
532
        [% ELSE %]
532
        [% ELSE %]
533
            Cookies.set("search_path_code", 'ads', { path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' });
533
            Cookies.set("search_path_code", 'ads', { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
534
        [% END %]
534
        [% END %]
535
    });
535
    });
536
536
537
- 

Return to bug 33259