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 |
} |