Lines 637-642
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
637 |
return false; |
637 |
return false; |
638 |
} ); |
638 |
} ); |
639 |
$tr.find( '.open-link' ).click( function() { |
639 |
$tr.find( '.open-link' ).click( function() { |
|
|
640 |
|
640 |
$( '#search-results-ui' ).modal('hide'); |
641 |
$( '#search-results-ui' ).modal('hide'); |
641 |
resetSaveTargets(); |
642 |
resetSaveTargets(); |
642 |
openRecord( hit.id, editor ); |
643 |
openRecord( hit.id, editor ); |
Lines 908-920
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
908 |
get: function( id, callback ) { |
909 |
get: function( id, callback ) { |
909 |
KohaBackend.GetBatchRecord( batch.batch_id, id, function( data ) { |
910 |
KohaBackend.GetBatchRecord( batch.batch_id, id, function( data ) { |
910 |
if ( !data.error ) { |
911 |
if ( !data.error ) { |
911 |
setSaveTargetChecked( backend_id + '/', true ); |
912 |
if (Preferences.user.enabledBatches[batch.batch_id]) { |
912 |
addSaveTarget( { |
913 |
setSaveTargetChecked( backend_id + '/', true ); |
913 |
label: batch.name + ": #" + id, |
914 |
addSaveTarget( { |
914 |
id: backend_id + '/' + id, |
915 |
label: batch.name + ": #" + id, |
915 |
description: '', |
916 |
id: backend_id + '/' + id, |
916 |
checked: true |
917 |
description: '', |
917 |
} ); |
918 |
checked: true |
|
|
919 |
} ); |
920 |
} |
918 |
} |
921 |
} |
919 |
|
922 |
|
920 |
callback(data); |
923 |
callback(data); |
921 |
- |
|
|