From 57d128f72781fc854936ab0c4e8dffde167108bc Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 25 Mar 2008 07:30:41 -0500 Subject: [PATCH] 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 --- misc/migration_tools/rebuild_zebra.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 3f1b0e7c15..ade42b85f1 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -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; } -- 2.39.5