rebuild_zebra: exit if both -a and -x specified

At moment using both -a (index authorities) and
-x (export records as MARC XML) is not allowed -
if the Zebra authority database is using the DOM
filter, zebraidx will not be able to process the
exported records correctly.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2008-03-25 07:30:41 -05:00 committed by Joshua Ferraro
parent f0d5da7448
commit 57d128f727
1 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,13 @@ if (not $result or $want_help) {
}
if (not $biblios and not $authorities) {
my $msg = "Must specify -b or -a to reindex bibs or authorites\n";
my $msg = "Must specify -b or -a to reindex bibs or authorities\n";
$msg .= "Please do '$0 --help' to see usage.\n";
die $msg;
}
if ($authorities and $as_xml) {
my $msg = "Cannot specify both -a and -x\n";
$msg .= "Please do '$0 --help' to see usage.\n";
die $msg;
}