bug 5608 follow-up: exit immediately if UNIMARC
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 21 Mar 2013 15:55:07 +0000 (16:55 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 22 Mar 2013 02:15:56 +0000 (22:15 -0400)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
misc/migration_tools/switch_marc21_series_info.pl

index 9f67e02..cfd204b 100755 (executable)
@@ -46,6 +46,11 @@ my $result = GetOptions(
     'v'      => \$verbose,
     );
 
+# warn and exit if we're running UNIMARC
+if (C4::Context->preference('MARCFLAVOUR') eq 'UNIMARC') {
+    print "This script is useless when you're running UNIMARC\n";
+    exit 0;
+}
 if ( ! $result || $show_help ) {
     print_usage();
     exit 0;