Lines 275-280
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
275 |
save: function( id, record, done ) { |
275 |
save: function( id, record, done ) { |
276 |
function finishCb( data ) { |
276 |
function finishCb( data ) { |
277 |
done( { error: data.error, newRecord: data.marcxml && data.marcxml[0], newId: data.biblionumber && [ 'catalog', data.biblionumber ] } ); |
277 |
done( { error: data.error, newRecord: data.marcxml && data.marcxml[0], newId: data.biblionumber && [ 'catalog', data.biblionumber ] } ); |
|
|
278 |
|
279 |
//Add the record to the exportRecords list if there is one |
280 |
if(Preferences.user.exportRecords) { |
281 |
var export_list = $.map (Preferences.user.exportRecords, function (exportRecord, name) { |
282 |
return $.extend( { name: name}, exportRecord ); |
283 |
}); |
284 |
$.each ( export_list, function ( undef, exportRecord ) { |
285 |
exportRecord.contents += "\n" + data.biblionumber; |
286 |
storeExportRecord( exportRecord.name, { contents: exportRecord.contents} ); |
287 |
} ); |
288 |
} |
278 |
} |
289 |
} |
279 |
|
290 |
|
280 |
if ( id ) { |
291 |
if ( id ) { |
Lines 1047-1062
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
1047 |
saveRecord( backend + '/', editor, finishCb ); |
1058 |
saveRecord( backend + '/', editor, finishCb ); |
1048 |
} |
1059 |
} |
1049 |
|
1060 |
|
1050 |
//Add the record to the exportRecords list if there is one |
|
|
1051 |
if(Preferences.user.exportRecords) { |
1052 |
var export_list = $.map (Preferences.user.exportRecords, function (exportRecord, name) { |
1053 |
return $.extend( { name: name}, exportRecord ); |
1054 |
}); |
1055 |
$.each ( export_list, function ( undef, exportRecord ) { |
1056 |
exportRecord.contents += "\n" + state.recordID; |
1057 |
storeExportRecord( exportRecord.name, { contents: exportRecord.contents} ); |
1058 |
} ); |
1059 |
} |
1060 |
return false; |
1061 |
return false; |
1061 |
} ); |
1062 |
} ); |
1062 |
|
1063 |
|
Lines 1310-1315
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
1310 |
$( window ).resize( onResize ).resize(); |
1311 |
$( window ).resize( onResize ).resize(); |
1311 |
editor.focus(); |
1312 |
editor.focus(); |
1312 |
} ); |
1313 |
} ); |
|
|
1314 |
|
1315 |
|
1313 |
} |
1316 |
} |
1314 |
|
1317 |
|
1315 |
if ( "[% auth_forwarded_hash | html %]" ) { |
1318 |
if ( "[% auth_forwarded_hash | html %]" ) { |
1316 |
- |
|
|