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:
parent
f0d5da7448
commit
57d128f727
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue