Lines 130-136
Link Here
|
130 |
|
130 |
|
131 |
if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false; |
131 |
if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false; |
132 |
|
132 |
|
133 |
Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/' } ); |
133 |
Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: 'Lax' } ); |
134 |
|
134 |
|
135 |
var biblionumber = [% biblionumber || "null" | html %]; |
135 |
var biblionumber = [% biblionumber || "null" | html %]; |
136 |
|
136 |
|
Lines 508-518
function PopupMARCFieldDoc(field) {
Link Here
|
508 |
function toggleMARCdocLinks(flag){ |
508 |
function toggleMARCdocLinks(flag){ |
509 |
if( flag === true ){ |
509 |
if( flag === true ){ |
510 |
$(".marcdocs").show(); |
510 |
$(".marcdocs").show(); |
511 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365 }); |
511 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax' }); |
512 |
$("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
512 |
$("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
513 |
} else { |
513 |
} else { |
514 |
$(".marcdocs").hide(); |
514 |
$(".marcdocs").hide(); |
515 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365 }); |
515 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax' }); |
516 |
$("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
516 |
$("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
517 |
} |
517 |
} |
518 |
} |
518 |
} |
Lines 521-532
function PopupMARCFieldDoc(field) {
Link Here
|
521 |
if( flag === true ){ |
521 |
if( flag === true ){ |
522 |
$(".tagnum").show(); |
522 |
$(".tagnum").show(); |
523 |
$(".subfieldcode").show(); |
523 |
$(".subfieldcode").show(); |
524 |
Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365 }); |
524 |
Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax' }); |
525 |
$("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
525 |
$("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
526 |
} else { |
526 |
} else { |
527 |
$(".tagnum").hide(); |
527 |
$(".tagnum").hide(); |
528 |
$(".subfieldcode").hide(); |
528 |
$(".subfieldcode").hide(); |
529 |
Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365 }); |
529 |
Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax' }); |
530 |
$("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
530 |
$("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
531 |
} |
531 |
} |
532 |
} |
532 |
} |