Bug 11499: UT: Make zebra_setup.pl correctly set indexing mode
authorTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 8 Jan 2014 15:21:42 +0000 (12:21 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 10 Jan 2014 15:42:23 +0000 (15:42 +0000)
By adding the relevant environment variables to the script the generated
koha-conf.xml file for the unit tests is correct now.

Test plan:
- Verify that tests pass now:
  $ prove -v t/db_dependent/Search.t 2> /dev/null | grep 11499

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes unit test, koha-qa.pl

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/zebra_config.pl

index 1395508..47854da 100755 (executable)
@@ -12,6 +12,9 @@ my $destination = $ARGV[0];
 my $marc_type = $ARGV[1] || 'marc21';
 my $indexing_mode = $ARGV[2] || 'grs1';
 
+$ENV{__BIB_INDEX_MODE__} = $indexing_mode;
+$ENV{__AUTH_INDEX_MODE__} = $indexing_mode;
+
 $ENV{__ZEBRA_MARC_FORMAT__} = $marc_type;
 if ($indexing_mode eq 'dom') {
     $ENV{__ZEBRA_BIB_CFG__} = 'zebra-biblios-dom.cfg';