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