'exclude-itemless-bibs',
'exclude-item-id-file=s',
'exclude-item-barcode-file=s',
+ 'exclude-item-circmod-file=s',
'mfhd',
'all',
'replace_001',
Additional options for type = 'BIBLIO':
--items or -i Include items (holdings) in the output
- --exclude-item-id-file File containing list of item ids to exclude
- --exclude-item-barcode-file File containing list of item barcodes to exclude
+ --exclude-item-id-file Specify a file containing list of item ids to exclude
+ --exclude-item-barcode-file Specify a file containing list of item barcodes to exclude
+ --exclude-item-circmod-file Specify a file containing list of circmods to exclude
--exclude-itemless-bibs Don't output bibs without holdings (requires --items)
--money Currency symbol to use in item price field [\$]
--mfhd Export serial MFHD records for associated bib records
die "Could not find file for exclude-item-barcode-file: " . $opts{'exclude-item-barcode-file'};
}
}
-
+ $opts{'exclude-item-circmods'} = {};
+ if ($opts{'exclude-item-circmod-file'}) {
+ if (-e $opts{'exclude-item-circmod-file'}) {
+ open FILE, $opts{'exclude-item-circmod-file'};
+ while (my $item_circmod = <FILE>) {
+ chomp $item_circmod;
+ $opts{'exclude-item-circmods'}->{$item_circmod} = 1;
+ }
+ close FILE;
+ } else {
+ die "Could not find file for exclude-item-circmod-file: " . $opts{'exclude-item-circmod-file'};
+ }
+ }
if ($opts{mfhd}) {
if ($opts{type} ne 'biblio') {
next unless ($acp);
next if defined $Marque::config->option_value('exclude-item-ids')->{$acp->id()};
next if defined $Marque::config->option_value('exclude-item-barcodes')->{$acp->barcode()};
+ next if defined $Marque::config->option_value('exclude-item-circmods')->{$acp->circ_modifier()};
$item_count++;
my $location = $Marque::config->option_value('location');
my $price = ($acp->price() ? $Marque::config->option_value('money').$acp->price() : '');