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

(-)a/misc/export_records.pl (-6 / +7 lines)
Lines 100-108 if ($include_deleted || $deleted_only) { Link Here
100
   if ($record_type ne 'bibs') {
100
   if ($record_type ne 'bibs') {
101
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
101
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
102
    }
102
    }
103
    if (!$timestamp) {
104
        pod2usage(q|Option "--include_deleted" or "--deleted_only" requires that "--date" is also set|);
105
    }
106
    if ($output_format eq 'csv') {
103
    if ($output_format eq 'csv') {
107
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
104
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
108
    }
105
    }
Lines 262-267 if ( @record_ids and $id_list_file ) { Link Here
262
    # intersection
259
    # intersection
263
    my %record_ids = map { $_ => 1 } @record_ids;
260
    my %record_ids = map { $_ => 1 } @record_ids;
264
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
261
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
262
263
    my %deleted_record_ids = map { $_ => 1 } @deleted_record_ids;
264
    @deleted_record_ids = grep $deleted_record_ids{$_}, @filter_record_ids;
265
}
265
}
266
266
267
if ($deleted_barcodes) {
267
if ($deleted_barcodes) {
Lines 321-332 Print a brief help message. Link Here
321
=item B<--include_deleted>
321
=item B<--include_deleted>
322
322
323
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
323
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
324
                        with leader record status set to "d" (deleted).
324
                        with leader record status set to "d" (deleted). This option is only valid for biblio records.
325
                        Items will not be included in deleted records.
325
326
326
=item B<--deleted_only>
327
=item B<--deleted_only>
327
328
328
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
329
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
329
                        records with leader record status set to "d" (deleted).
330
                        records with leader record status set to "d" (deleted). This option is only valid for biblio records.
331
                        Items will not be included in deleted records.
330
332
331
=item B<--record-type>
333
=item B<--record-type>
332
334
333
- 

Return to bug 20551