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 1225-1231 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
1225
        $( '#switch-editor' ).click( function() {
1225
        $( '#switch-editor' ).click( function() {
1226
            if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return;
1226
            if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return;
1227
1227
1228
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "basic", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
1228
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "basic", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
1229
1229
1230
            if ( state.backend == 'catalog' ) {
1230
            if ( state.backend == 'catalog' ) {
1231
                window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID;
1231
                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 325-331 MARC frameworks › Administration › Koha Link Here
325
            }));
325
            }));
326
            $("#select_display").on("change",function(){
326
            $("#select_display").on("change",function(){
327
                var checked = $(this).prop("checked") ? 1: 0;
327
                var checked = $(this).prop("checked") ? 1: 0;
328
                Cookies.set("marctagstructure_selectdisplay", checked, { sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
328
                Cookies.set("marctagstructure_selectdisplay", checked, { sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
329
                this.form.submit();
329
                this.form.submit();
330
            });
330
            });
331
        });
331
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-5 / +5 lines)
Lines 141-147 Link Here
141
141
142
            if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false;
142
            if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false;
143
143
144
            Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
144
            Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
145
145
146
            var biblionumber = [% biblionumber || "null" | html %];
146
            var biblionumber = [% biblionumber || "null" | html %];
147
147
Lines 519-529 function PopupMARCFieldDoc(field) { Link Here
519
    function toggleMARCdocLinks(flag){
519
    function toggleMARCdocLinks(flag){
520
        if( flag === true ){
520
        if( flag === true ){
521
            $(".marcdocs").show();
521
            $(".marcdocs").show();
522
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
522
            Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
523
            $("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
523
            $("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
524
        } else {
524
        } else {
525
            $(".marcdocs").hide();
525
            $(".marcdocs").hide();
526
            Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
526
            Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
527
            $("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
527
            $("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
528
        }
528
        }
529
    }
529
    }
Lines 532-543 function PopupMARCFieldDoc(field) { Link Here
532
        if( flag === true ){
532
        if( flag === true ){
533
            $(".tagnum").show();
533
            $(".tagnum").show();
534
            $(".subfieldcode").show();
534
            $(".subfieldcode").show();
535
            Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
535
            Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
536
            $("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
536
            $("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o');
537
        } else {
537
        } else {
538
            $(".tagnum").hide();
538
            $(".tagnum").hide();
539
            $(".subfieldcode").hide();
539
            $(".subfieldcode").hide();
540
            Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
540
            Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
541
            $("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
541
            $("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o');
542
        }
542
        }
543
    }
543
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-1 / +1 lines)
Lines 295-301 Link Here
295
            });
295
            });
296
296
297
            $("#useadvanced").click(function(){
297
            $("#useadvanced").click(function(){
298
                Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
298
                Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
299
                return true;
299
                return true;
300
            });
300
            });
301
301
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (-1 / +1 lines)
Lines 236-242 Link Here
236
        });
236
        });
237
237
238
        $("#useadvanced").click(function(){
238
        $("#useadvanced").click(function(){
239
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" } );
239
            Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" } );
240
            return true;
240
            return true;
241
        });
241
        });
242
    });
242
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-1 / +1 lines)
Lines 235-241 Link Here
235
        function SearchToHold(club_id) {
235
        function SearchToHold(club_id) {
236
            var date = new Date();
236
            var date = new Date();
237
            date.setTime(date.getTime() + (10 * 60 * 1000));
237
            date.setTime(date.getTime() + (10 * 60 * 1000));
238
            Cookies.set("holdforclub", club_id, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
238
            Cookies.set("holdforclub", club_id, { path: "/", expires: date, sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
239
            location.href="/cgi-bin/koha/catalogue/search.pl";
239
            location.href="/cgi-bin/koha/catalogue/search.pl";
240
        }
240
        }
241
    </script>
241
    </script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-5 / +4 lines)
Lines 523-540 $(document).ready(function() { Link Here
523
            }
523
            }
524
        });
524
        });
525
        form_serialized = $(this).serialize();
525
        form_serialized = $(this).serialize();
526
        Cookies.set("form_serialized", JSON.stringify( form_serialized ), { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
526
        Cookies.set("form_serialized", JSON.stringify( form_serialized ), { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
527
        form_serialized_limits = [
527
        form_serialized_limits = [
528
            $('#language-limit').val(),   $('#branchloop').val(),
528
            $('#language-limit').val(),   $('#branchloop').val(),
529
            $('#subtype_audience').val(), $('#subtype_content').val(),
529
            $('#subtype_audience').val(), $('#subtype_content').val(),
530
            $('#subtype_format').val(),   $('#subtype_additional').val(),
530
            $('#subtype_format').val(),   $('#subtype_additional').val(),
531
            $('#locloop').val()
531
            $('#locloop').val()
532
        ];
532
        ];
533
        Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
533
        Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
534
        [% IF ( expanded_options ) %]
534
        [% IF ( expanded_options ) %]
535
            Cookies.set("search_path_code", 'exs', { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
535
            Cookies.set("search_path_code", 'exs', { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
536
        [% ELSE %]
536
        [% ELSE %]
537
            Cookies.set("search_path_code", 'ads', { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') %]" });
537
            Cookies.set("search_path_code", 'ads', { path: '/', sameSite: "[% Koha.Preference('SameSiteSessionCookie') | html %]" });
538
        [% END %]
538
        [% END %]
539
    });
539
    });
540
540
541
- 

Return to bug 33259