'mfhd',
'all',
'replace_001',
+ 'strip_0',
'location=s',
'money=s',
'config=s',
--type or -t Record type (BIBLIO, AUTHORITY) [BIBLIO]
--all or -a Export all records; ignores input list
--replace_001 Replace the 001 field value with the record ID
+ --strip_0 Strip subfield 0 from all fields
--store Use the given storage backend to connect to the database.
Choices are (reporter, cstore, storage) [reporter]
--since Export records modified since a certain date and time.
$marc->insert_fields_ordered($tcn);
}
}
+ if ($Marque::config->option_value('strip_0')) {
+ my @my_fields = $marc->fields();
+ foreach my $test_field (@my_fields){
+ $test_field->MARC::Field::delete_subfield('0')
+ if !$test_field->is_control_field();
+ }
+ }
if ($Marque::config->option_value('items')) {
my @acps = $self->acps_for_bre($r);
foreach my $acp (@acps) {
$marc->insert_fields_ordered($tcn);
}
}
+ if ($Marque::config->option_value('strip_0')) {
+ my @my_fields = $marc->fields();
+ foreach my $test_field (@my_fields){
+ $test_field->MARC::Field::delete_subfield('0')
+ if !$test_field->is_control_field();
+ }
+ }
if ($Marque::config->option_value('since')) {
my $leader = $marc->leader();
if ($U->is_true($r->deleted())) {