Bug 11499 - zebra_setup.pl not correctly setting indexing mode
Summary: zebra_setup.pl not correctly setting indexing mode
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Chris Cormack
QA Contact: Galen Charlton
URL:
Keywords:
Depends on:
Blocks: 11096
  Show dependency treegraph
 
Reported: 2014-01-08 15:17 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2015-06-04 23:23 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 11499 - (regression tests) indexing modes not properly set on generated koha-conf.xml (1.60 KB, patch)
2014-01-08 15:39 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review
Bug 11499 - Make zebra_setup.pl correctly set indexing mode (1.12 KB, patch)
2014-01-08 15:40 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review
Bug 11499: (regression tests) indexing modes not properly set on generated koha-conf.xml (1.70 KB, patch)
2014-01-08 17:37 UTC, Galen Charlton
Details | Diff | Splinter Review
Bug 11499: UT: Make zebra_setup.pl correctly set indexing mode (1.16 KB, patch)
2014-01-08 17:37 UTC, Galen Charlton
Details | Diff | Splinter Review
Bug 11499: (regression tests) indexing modes not properly set on generated koha-conf.xml (1.76 KB, patch)
2014-01-10 13:19 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review
Bug 11499: UT: Make zebra_setup.pl correctly set indexing mode (1.26 KB, patch)
2014-01-10 13:19 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2014-01-08 15:17:04 UTC
Bibliographic and authorities indexing mode is set in several places, including the koha-conf.xml file. The latter is not being properly set by the zebra_setup.pl helper script.

I figured this when writing my patches for bug 11096 when I noticed i was getting USMARC data when I shouldn't.

To reproduce:
- Run the attached regression test.
Comment 1 Tomás Cohen Arazi (tcohen) 2014-01-08 15:39:07 UTC Comment hidden (obsolete)
Comment 2 Tomás Cohen Arazi (tcohen) 2014-01-08 15:40:09 UTC Comment hidden (obsolete)
Comment 3 Galen Charlton 2014-01-08 17:37:48 UTC Comment hidden (obsolete)
Comment 4 Galen Charlton 2014-01-08 17:37:53 UTC Comment hidden (obsolete)
Comment 5 Kyle M Hall (khall) 2014-01-10 13:19:12 UTC
Created attachment 24122 [details] [review]
Bug 11499: (regression tests) indexing modes not properly set on generated koha-conf.xml

t/db_dependent/Search.t creates its own temporary koha-conf.xml and
related files, and it fails to properly set indexing modes for
bibliographic and authority records.

This patch adds regression tests for that.

To test:

 $ prove -v t/db_dependent/Search.t 2> /dev/null | grep 11499

The test should fail unless the main page is applied.

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 6 Kyle M Hall (khall) 2014-01-10 13:19:23 UTC
Created attachment 24123 [details] [review]
Bug 11499: UT: Make zebra_setup.pl correctly set indexing mode

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
Comment 7 Galen Charlton 2014-01-10 16:14:00 UTC
Pushed to master.  Thanks, Tomás!
Comment 8 Fridolin Somers 2014-02-18 08:57:32 UTC
Patches pushed to 3.14.x, will be in 3.14.4.