Lines 620-626
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
620 |
$( sel ).on( event, function (e) { |
620 |
$( sel ).on( event, function (e) { |
621 |
e.preventDefault(); |
621 |
e.preventDefault(); |
622 |
handler( e, Preferences.user[pref] ); |
622 |
handler( e, Preferences.user[pref] ); |
623 |
Preferences.Save( [% USER_INFO.borrowernumber %] ); |
623 |
Preferences.Save( [% logged_in_user.borrowernumber %] ); |
624 |
showPreference(pref); |
624 |
showPreference(pref); |
625 |
} ); |
625 |
} ); |
626 |
} |
626 |
} |
Lines 645-651
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
645 |
$( document ).on( 'change', 'input.search-toggle-server', function() { |
645 |
$( document ).on( 'change', 'input.search-toggle-server', function() { |
646 |
var server_id = $( this ).closest('li').data('server-id'); |
646 |
var server_id = $( this ).closest('li').data('server-id'); |
647 |
Preferences.user.selected_search_targets[server_id] = this.checked; |
647 |
Preferences.user.selected_search_targets[server_id] = this.checked; |
648 |
Preferences.Save( [% USER_INFO.borrowernumber %] ); |
648 |
Preferences.Save( [% logged_in_user.borrowernumber %] ); |
649 |
} ); |
649 |
} ); |
650 |
break; |
650 |
break; |
651 |
} |
651 |
} |
Lines 683-689
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
683 |
delete Preferences.user.macros[name]; |
683 |
delete Preferences.user.macros[name]; |
684 |
} |
684 |
} |
685 |
|
685 |
|
686 |
Preferences.Save( [% USER_INFO.borrowernumber %] ); |
686 |
Preferences.Save( [% logged_in_user.borrowernumber %] ); |
687 |
} |
687 |
} |
688 |
|
688 |
|
689 |
function showSavedMacros( macros ) { |
689 |
function showSavedMacros( macros ) { |
Lines 980-986
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
980 |
$( '#switch-editor' ).click( function() { |
980 |
$( '#switch-editor' ).click( function() { |
981 |
if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return; |
981 |
if ( !confirm( _("Any changes will not be saved. Continue?") ) ) return; |
982 |
|
982 |
|
983 |
$.cookie( 'catalogue_editor_[% USER_INFO.borrowernumber %]', 'basic', { expires: 365, path: '/' } ); |
983 |
$.cookie( 'catalogue_editor_[% logged_in_user.borrowernumber %]', 'basic', { expires: 365, path: '/' } ); |
984 |
|
984 |
|
985 |
if ( state.backend == 'catalog' ) { |
985 |
if ( state.backend == 'catalog' ) { |
986 |
window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID; |
986 |
window.location = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + state.recordID; |
Lines 1093-1099
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
1093 |
}; |
1093 |
}; |
1094 |
|
1094 |
|
1095 |
// Start editor |
1095 |
// Start editor |
1096 |
Preferences.Load( [% USER_INFO.borrowernumber || 0 %] ); |
1096 |
Preferences.Load( [% logged_in_user.borrowernumber || 0 %] ); |
1097 |
displayPreferences(editor); |
1097 |
displayPreferences(editor); |
1098 |
makeAuthorisedValueWidgets( '' ); |
1098 |
makeAuthorisedValueWidgets( '' ); |
1099 |
Search.Init( { |
1099 |
Search.Init( { |