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: 'Lax' } ); |
46 |
Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' } ); |
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: 'Lax' }); |
546 |
|
|
|
547 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
547 |
$("#marcDocsSelect i").addClass('fa-check-square').removeClass('fa-square'); |
548 |
$("#marcDocsSelect i").addClass('fa-check-square').removeClass('fa-square'); |
548 |
} else { |
549 |
} else { |
549 |
$(".marcdocs").hide(); |
550 |
$(".marcdocs").hide(); |
550 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax' }); |
551 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
551 |
$("#marcDocsSelect i").removeClass('fa-check-square').addClass('fa-square'); |
552 |
$("#marcDocsSelect i").removeClass('fa-check-square').addClass('fa-square'); |
552 |
} |
553 |
} |
553 |
} |
554 |
} |
Lines 556-567
$(document).ready(function(){
Link Here
|
556 |
if( flag === true ){ |
557 |
if( flag === true ){ |
557 |
$(".tagnum").show(); |
558 |
$(".tagnum").show(); |
558 |
$(".subfieldcode").show(); |
559 |
$(".subfieldcode").show(); |
559 |
Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax' }); |
560 |
Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
560 |
$("#marcTagsSelect i").addClass('fa-check-square').removeClass('fa-square'); |
561 |
$("#marcTagsSelect i").addClass('fa-check-square').removeClass('fa-square'); |
561 |
} else { |
562 |
} else { |
562 |
$(".tagnum").hide(); |
563 |
$(".tagnum").hide(); |
563 |
$(".subfieldcode").hide(); |
564 |
$(".subfieldcode").hide(); |
564 |
Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax' }); |
565 |
Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
565 |
$("#marcTagsSelect i").removeClass('fa-check-square').addClass('fa-square'); |
566 |
$("#marcTagsSelect i").removeClass('fa-check-square').addClass('fa-square'); |
566 |
} |
567 |
} |
567 |
} |
568 |
} |