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