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 423-428 Link Here
423
                if ( !record.error ) {
423
                if ( !record.error ) {
424
                    var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %];
424
                    var remove_control_num = [% IF Koha.Preference('autoControlNumber') == 'OFF' %] false [% ELSE %] true [% END %];
425
                    if( remove_control_num ){ record.removeField("001"); }
425
                    if( remove_control_num ){ record.removeField("001"); }
426
                    if( parts[0] === 'duplicate' ) {
427
                        let today = new Date();
428
                        record.field('008').subfield('@', today.toISOString().substring(2,10).replaceAll('-','') + record.field('008').subfield('@').substring(6));
429
                    }
426
                    editor.displayRecord( record );
430
                    editor.displayRecord( record );
427
                    editor.focus();
431
                    editor.focus();
428
                }
432
                }
429
- 

Return to bug 38925