Skip to content
Snippets Groups Projects
Commit 7f6200ea authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- updated description

parent 4a93e28d
No related branches found
No related tags found
No related merge requests found
...@@ -60,8 +60,8 @@ my $man; ...@@ -60,8 +60,8 @@ my $man;
our $VERSION = '1.1'; our $VERSION = '1.1';
GetOptions( GetOptions(
"IE_directory=s" => \$directory, # required "IE_directory=s" => \$directory, # required
"ppn=s" => \$ppn, # semi-optional "ppn=s" => \$ppn, # semi-optional (choice 1 of 2)
"noppn=s" => \$noppn, # semi-optional "noppn=s" => \$noppn, # semi-optional (choice 2 of 2)
"SIP_output_path=s" => \$output, # required "SIP_output_path=s" => \$output, # required
"as_zip" => \$as_zip, # optional, default: do not zip "as_zip" => \$as_zip, # optional, default: do not zip
"url=s" => \$url, # optional, default: SWB Online-Katalog "url=s" => \$url, # optional, default: SWB Online-Katalog
...@@ -78,8 +78,8 @@ GetOptions( ...@@ -78,8 +78,8 @@ GetOptions(
if ($help) { pod2usage(1); } if ($help) { pod2usage(1); }
if ($man) { pod2usage(-exitval => 0, -verbose => 2); } if ($man) { pod2usage(-exitval => 0, -verbose => 2); }
if (!defined $directory) { confess("you need to specify an IE directory, which needs to be archived"); } if (!defined $directory) { confess("you need to specify an IE directory, which needs to be archived"); }
if (!defined $ppn && !defined $noppn) { confess("you need to specify a PPN, which exists in SWB catalogue"); } if ((defined $ppn) && (defined $noppn)) { confess("you can only specify either -ppn or -noppn"); }
if (defined $ppn && defined $noppn) { confess("you can only use '--ppn=foo' or '--noppn=bar'"); } if ((!defined $ppn) && (!defined $noppn)) { confess("you need to specify a PPN with -ppn or use --noppn"); }
if (!defined $output) { confess("you need to specify an output path, where the SIP will be stored"); } if (!defined $output) { confess("you need to specify an output path, where the SIP will be stored"); }
if (!defined $url) { $url = "http://swb.bsz-bw.de/sru/DB=2.1/username=/password=/";} if (!defined $url) { $url = "http://swb.bsz-bw.de/sru/DB=2.1/username=/password=/";}
if (!defined $external_conservation_flag) { $external_conservation_flag="false"; } else { $external_conservation_flag="true"; } if (!defined $external_conservation_flag) { $external_conservation_flag="false"; } else { $external_conservation_flag="true"; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment