Lines 140-146
Link Here
|
140 |
|
140 |
|
141 |
if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false; |
141 |
if ( !confirm( breedingid ? _("This record cannot be transferred to the advanced editor. Continue?") : _("Any changes will not be saved. Continue?") ) ) return false; |
142 |
|
142 |
|
143 |
Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: 'Lax' } ); |
143 |
Cookies.set( 'catalogue_editor_[% logged_in_user.borrowernumber | html %]', 'advanced', { expires: 365, path: '/', sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' } ); |
144 |
|
144 |
|
145 |
var biblionumber = [% biblionumber || "null" | html %]; |
145 |
var biblionumber = [% biblionumber || "null" | html %]; |
146 |
|
146 |
|
Lines 518-528
function PopupMARCFieldDoc(field) {
Link Here
|
518 |
function toggleMARCdocLinks(flag){ |
518 |
function toggleMARCdocLinks(flag){ |
519 |
if( flag === true ){ |
519 |
if( flag === true ){ |
520 |
$(".marcdocs").show(); |
520 |
$(".marcdocs").show(); |
521 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax' }); |
521 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
522 |
$("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
522 |
$("#marcDocsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
523 |
} else { |
523 |
} else { |
524 |
$(".marcdocs").hide(); |
524 |
$(".marcdocs").hide(); |
525 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax' }); |
525 |
Cookies.set("marcdocs_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
526 |
$("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
526 |
$("#marcDocsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
527 |
} |
527 |
} |
528 |
} |
528 |
} |
Lines 531-542
function PopupMARCFieldDoc(field) {
Link Here
|
531 |
if( flag === true ){ |
531 |
if( flag === true ){ |
532 |
$(".tagnum").show(); |
532 |
$(".tagnum").show(); |
533 |
$(".subfieldcode").show(); |
533 |
$(".subfieldcode").show(); |
534 |
Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: 'Lax' }); |
534 |
Cookies.set("marctags_[% borrowernumber | html %]",'show', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
535 |
$("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
535 |
$("#marcTagsSelect i").addClass('fa-check-square-o').removeClass('fa-square-o'); |
536 |
} else { |
536 |
} else { |
537 |
$(".tagnum").hide(); |
537 |
$(".tagnum").hide(); |
538 |
$(".subfieldcode").hide(); |
538 |
$(".subfieldcode").hide(); |
539 |
Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: 'Lax' }); |
539 |
Cookies.set("marctags_[% borrowernumber | html %]",'hide', { path: "/", expires: 365, sameSite: '[% Koha.Preference('SameSiteSessionCookie') %]' }); |
540 |
$("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
540 |
$("#marcTagsSelect i").removeClass('fa-check-square-o').addClass('fa-square-o'); |
541 |
} |
541 |
} |
542 |
} |
542 |
} |