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

(-)a/misc/export_records.pl (-8 / +7 lines)
Lines 35-41 use Koha::DateUtils qw( dt_from_string output_pref ); Link Here
35
my ( $output_format, $timestamp, $dont_export_items, $csv_profile_id, $deleted_barcodes, $clean, $filename, $record_type, $id_list_file, $starting_authid, $ending_authid, $authtype, $starting_biblionumber, $ending_biblionumber, $itemtype, $starting_callnumber, $ending_callnumber, $start_accession, $end_accession, $help );
35
my ( $output_format, $timestamp, $dont_export_items, $csv_profile_id, $deleted_barcodes, $clean, $filename, $record_type, $id_list_file, $starting_authid, $ending_authid, $authtype, $starting_biblionumber, $ending_biblionumber, $itemtype, $starting_callnumber, $ending_callnumber, $start_accession, $end_accession, $help );
36
GetOptions(
36
GetOptions(
37
    'format=s'                => \$output_format,
37
    'format=s'                => \$output_format,
38
    'date=s'                  => \$timestamp,
38
    'datetime=s'              => \$timestamp,
39
    'dont_export_items'       => \$dont_export_items,
39
    'dont_export_items'       => \$dont_export_items,
40
    'csv_profile_id=s'        => \$csv_profile_id,
40
    'csv_profile_id=s'        => \$csv_profile_id,
41
    'deleted_barcodes'        => \$deleted_barcodes,
41
    'deleted_barcodes'        => \$deleted_barcodes,
Lines 95-101 open STDOUT, '>', $filename if $filename; Link Here
95
95
96
my @record_ids;
96
my @record_ids;
97
97
98
$timestamp = ($timestamp) ? output_pref({ dt => dt_from_string($timestamp), dateformat => 'iso', dateonly => 1, }): '';
98
$timestamp = ($timestamp) ? output_pref({ dt => dt_from_string($timestamp), dateformat => 'iso', dateonly => 0, }): '';
99
99
100
if ( $record_type eq 'bibs' ) {
100
if ( $record_type eq 'bibs' ) {
101
    if ( $timestamp ) {
101
    if ( $timestamp ) {
Lines 219-225 export records - This script exports record (biblios or authorities) Link Here
219
219
220
=head1 SYNOPSIS
220
=head1 SYNOPSIS
221
221
222
export_records.pl [-h|--help] [--format=format] [--date=date] [--record-type=TYPE] [--dont_export_items] [--deleted_barcodes] [--clean] [--id_list_file=PATH] --filename=outputfile
222
export_records.pl [-h|--help] [--format=format] [--datetime=datetime] [--record-type=TYPE] [--dont_export_items] [--deleted_barcodes] [--clean] [--id_list_file=PATH] --filename=outputfile
223
223
224
=head1 OPTIONS
224
=head1 OPTIONS
225
225
Lines 235-244 Print a brief help message. Link Here
235
235
236
=item B<--date>
236
=item B<--date>
237
237
238
 --date=DATE            DATE should be entered as the 'dateformat' syspref is
238
 --datetime=DATETIME    DATETIME should be entered as the 'dateformat' syspref is
239
                        set (dd/mm/yyyy for metric, yyyy-mm-dd for iso,
239
                        set (dd/mm/yyyy[ hh:mm:ss] for metric, yyyy-mm-dd[ hh:mm:ss] for iso,
240
                        mm/dd/yyyy for us) records exported are the ones that
240
                        mm/dd/yyyy[ hh:mm:ss] for us) records exported are the ones that
241
                        have been modified since DATE.
241
                        have been modified since DATETIME.
242
242
243
=item B<--record-type>
243
=item B<--record-type>
244
244
245
- 

Return to bug 17444