View | Details | Raw Unified | Return to bug 27981
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-4 / +3 lines)
Lines 251-257 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
251
            saveLabel: _("Duplicate"),
251
            saveLabel: _("Duplicate"),
252
            get: function( id, callback ) {
252
            get: function( id, callback ) {
253
                if ( !id ) return false;
253
                if ( !id ) return false;
254
                var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] 0 [% ELSE %] 1 [% END %];
254
                var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %];
255
255
256
                KohaBackend.GetRecord( id, remove_control_num, callback );
256
                KohaBackend.GetRecord( id, remove_control_num, callback );
257
            },
257
            },
Lines 276-282 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
276
            get: function( id, callback ) {
276
            get: function( id, callback ) {
277
                if ( !id ) return false;
277
                if ( !id ) return false;
278
278
279
                KohaBackend.GetRecord( id, "", callback );
279
                KohaBackend.GetRecord( id, false, callback );
280
            },
280
            },
281
            save: function( id, record, done ) {
281
            save: function( id, record, done ) {
282
                function finishCb( data ) {
282
                function finishCb( data ) {
Lines 412-418 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
412
412
413
        backends[ parts[0] ].get( parts[1], function( record ) {
413
        backends[ parts[0] ].get( parts[1], function( record ) {
414
            if ( !record.error ) {
414
            if ( !record.error ) {
415
                var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] 0 [% ELSE %] 1 [% END %];
415
                var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %];
416
                if( remove_control_num ){ record.removeField("001"); }
416
                if( remove_control_num ){ record.removeField("001"); }
417
                editor.displayRecord( record );
417
                editor.displayRecord( record );
418
                editor.focus();
418
                editor.focus();
419
- 

Return to bug 27981