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') | html %]" });
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') | html %]" } );
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 338-344 Link Here
338
            }));
338
            }));
339
            $("#select_display").on("change",function(){
339
            $("#select_display").on("change",function(){
340
                var checked = $(this).prop("checked") ? 1: 0;
340
                var checked = $(this).prop("checked") ? 1: 0;
341
                Cookies.set("marctagstructure_selectdisplay", checked, { sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
341
                Cookies.set("marctagstructure_selectdisplay", checked, { sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
342
                this.form.submit();
342
                this.form.submit();
343
            });
343
            });
344
        });
344
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-5 / +5 lines)
Lines 43-49 Link Here
43
43
44
        if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false;
44
        if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false;
45
45
46
        Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' } );
46
        Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
47
47
48
        var biblionumber = [% biblionumber || "null" | html %];
48
        var biblionumber = [% biblionumber || "null" | html %];
49
49
Lines 543-553 $(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
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
546
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
547
            $("#marcDocsSelect i").addClass('fa-check-square').removeClass('fa-square');
547
            $("#marcDocsSelect i").addClass('fa-check-square').removeClass('fa-square');
548
        } else {
548
        } else {
549
            $(".marcdocs").hide();
549
            $(".marcdocs").hide();
550
            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') | html %]" });
551
            $("#marcDocsSelect i").removeClass('fa-check-square').addClass('fa-square');
551
            $("#marcDocsSelect i").removeClass('fa-check-square').addClass('fa-square');
552
        }
552
        }
553
    }
553
    }
Lines 556-567 $(document).ready(function(){ Link Here
556
        if( flag === true ){
556
        if( flag === true ){
557
            $(".tagnum").show();
557
            $(".tagnum").show();
558
            $(".subfieldcode").show();
558
            $(".subfieldcode").show();
559
            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') | html %]" });
560
            $("#marcTagsSelect i").addClass('fa-check-square').removeClass('fa-square');
560
            $("#marcTagsSelect i").addClass('fa-check-square').removeClass('fa-square');
561
        } else {
561
        } else {
562
            $(".tagnum").hide();
562
            $(".tagnum").hide();
563
            $(".subfieldcode").hide();
563
            $(".subfieldcode").hide();
564
            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') | html %]" });
565
            $("#marcTagsSelect i").removeClass('fa-check-square').addClass('fa-square');
565
            $("#marcTagsSelect i").removeClass('fa-check-square').addClass('fa-square');
566
        }
566
        }
567
    }
567
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 304-310 Link Here
304
            });
304
            });
305
305
306
            $("#useadvanced").click(function(){
306
            $("#useadvanced").click(function(){
307
                Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
307
                Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
308
                return true;
308
                return true;
309
            });
309
            });
310
310
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (-1 / +1 lines)
Lines 249-255 Link Here
249
        });
249
        });
250
250
251
        $("#useadvanced").click(function(){
251
        $("#useadvanced").click(function(){
252
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
252
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
253
            return true;
253
            return true;
254
        });
254
        });
255
    });
255
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-1 / +1 lines)
Lines 240-246 Link Here
240
        function SearchToHold(club_id) {
240
        function SearchToHold(club_id) {
241
            var date = new Date();
241
            var date = new Date();
242
            date.setTime(date.getTime() + (10 * 60 * 1000));
242
            date.setTime(date.getTime() + (10 * 60 * 1000));
243
            Cookies.set("holdforclub", club_id, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
243
            Cookies.set("holdforclub", club_id, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
244
            location.href="/cgi-bin/koha/catalogue/search.pl";
244
            location.href="/cgi-bin/koha/catalogue/search.pl";
245
        }
245
        }
246
    </script>
246
    </script>
(-)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') | html %]" });
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') | html %]" });
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') | html %]" });
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') | html %]" });
534
        [% END %]
534
        [% END %]
535
    });
535
    });
536
536
537
- 

Return to bug 33259