|
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 |
- |
|
|