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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-1 / +4 lines)
Lines 412-417 Link Here
412
                if ( !record.error ) {
412
                if ( !record.error ) {
413
                    var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %];
413
                    var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %];
414
                    if( remove_control_num ){ record.removeField("001"); }
414
                    if( remove_control_num ){ record.removeField("001"); }
415
                    if( parts[0] === 'duplicate' ) {
416
                        let today = new Date();
417
                        record.field('008').subfield('@', today.toISOString().substring(2,10).replaceAll('-','') + record.field('008').subfield('@').substring(6));
418
                    }
415
                    editor.displayRecord( record );
419
                    editor.displayRecord( record );
416
                    editor.focus();
420
                    editor.focus();
417
                }
421
                }
418
- 

Return to bug 38925