Lines 659-664
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
659 |
return false; |
659 |
return false; |
660 |
} ); |
660 |
} ); |
661 |
$tr.find( '.open-link' ).click( function() { |
661 |
$tr.find( '.open-link' ).click( function() { |
|
|
662 |
|
662 |
$( '#search-results-ui' ).modal('hide'); |
663 |
$( '#search-results-ui' ).modal('hide'); |
663 |
resetSaveTargets(); |
664 |
resetSaveTargets(); |
664 |
openRecord( hit.id, editor ); |
665 |
openRecord( hit.id, editor ); |
Lines 930-942
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
930 |
get: function( id, callback ) { |
931 |
get: function( id, callback ) { |
931 |
KohaBackend.GetBatchRecord( batch.batch_id, id, function( data ) { |
932 |
KohaBackend.GetBatchRecord( batch.batch_id, id, function( data ) { |
932 |
if ( !data.error ) { |
933 |
if ( !data.error ) { |
933 |
setSaveTargetChecked( backend_id + '/', true ); |
934 |
if (Preferences.user.enabledBatches[batch.batch_id]) { |
934 |
addSaveTarget( { |
935 |
setSaveTargetChecked( backend_id + '/', true ); |
935 |
label: batch.name + ": #" + id, |
936 |
addSaveTarget( { |
936 |
id: backend_id + '/' + id, |
937 |
label: batch.name + ": #" + id, |
937 |
description: '', |
938 |
id: backend_id + '/' + id, |
938 |
checked: true |
939 |
description: '', |
939 |
} ); |
940 |
checked: true |
|
|
941 |
} ); |
942 |
} |
940 |
} |
943 |
} |
941 |
|
944 |
|
942 |
callback(data); |
945 |
callback(data); |
943 |
- |
|
|