Koha/debian/scripts
Tomas Cohen Arazi aba3db2628 Bug 8507: koha-create now supports using DOM indexing for bibs
This patch makes the koha-create script install the file zebra-biblios-dom.cfg
with the proper string substitutions inside on the new instance koha-conf.xml file.

It also adds two option switches that control the indexing mode for the instance:

 --biblio-idx {dom|grs1}
 --auth-idx {dom|grs1}

DOM indexing is set as the default for both authorities and bibliographic records.

Following drojf (thanks!) advice I arranged stuff like explained here:

  http://wiki.koha-community.org/wiki/Switching_to_dom_indexing

To test:
- Apply the patch
- Build your own packages and install them on a test server
a) Create a new instance without using the new switches like:
 $ koha-create --create-db domtest
 - Check there's a file /etc/koha/sites/domtest/zebra-biblios-dom.cfg
 - Check that /etc/koha/sites/domtest/koha-conf.xml points to:
   * zebra-biblios-dom.cfg (biblioserver section)
   * zebra-biblios-dom.cfg (publicserver section)
   * zebra-authorities-dom.cfg (authorityserver section)
 - Success means the new default is DOM
b) Play with the 4 possible combination of option switches
 $ koha-create --create-db --auth-idx grs1 --biblio-idx grs1 domtest
 $ koha-create --create-db --auth-idx grs1 --biblio-idx dom domtest
 $ koha-create --create-db --auth-idx dom --biblio-idx grs1 domtest
 $ koha-create --create-db --auth-idx dom --biblio-idx dom domtest
 - Check the koha-conf.xml file reflects the chosen options.
c) Run
 $ koha-create --help
 - It should advertise this addition accordingly.
d) Run
 $ man koha-create
 - Man page for koha-create should provide good information on the new switches behaviour

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-08-13 14:25:53 +00:00
..
koha-create Bug 8507: koha-create now supports using DOM indexing for bibs 2013-08-13 14:25:53 +00:00
koha-create-dirs Bug 9890: fix plugin handling by koha-create and koha-create-dirs 2013-06-24 06:55:36 -07:00
koha-disable Bug 10104 - Followup: fix param check 2013-05-01 21:59:27 -04:00
koha-dump
koha-dump-defaults
koha-email-disable Bug 10150 - koha-email-disable error handling 2013-05-02 15:04:57 -07:00
koha-email-enable Bug 10157 - koha-email-enable error handling 2013-05-15 08:13:17 -04:00
koha-enable Bug 10101 - Follwup: fix param check 2013-05-01 22:00:51 -04:00
koha-enable-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-foreach
koha-list Bug 10094 - koha-list should have a --disabled option switch 2013-05-15 08:14:09 -04:00
koha-mysql
koha-rebuild-zebra Bug 10379: silence zebra rebuild cron when no instances are enabled 2013-06-26 08:55:23 -07:00
koha-remove Bug 8507: koha-create now supports using DOM indexing for bibs 2013-08-13 14:25:53 +00:00
koha-reset-passwd Bug 9885 Passwords generated by command line scripts are weak 2013-03-30 21:39:43 -04:00
koha-restart-zebra Bug 10259 - koha-*-zebra scripts are expected to run without warnings if no instance name passed 2013-05-18 06:07:57 -04:00
koha-restore
koha-run-backups Bug 9260: stop koha-run-backups complaining "missing ]" 2012-12-21 08:11:39 -05:00
koha-shell
koha-start-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-start-zebra Bug 10259 - koha-*-zebra scripts are expected to run without warnings if no instance name passed 2013-05-18 06:07:57 -04:00
koha-stop-sip Bug 9250 - [SIGNED-OFF] provide commands to manage the SIP server 2013-05-01 22:03:13 -04:00
koha-stop-zebra Bug 10259 - koha-*-zebra scripts are expected to run without warnings if no instance name passed 2013-05-18 06:07:57 -04:00
koha-translate Bug 10041 - Provide a koha-translate script to aid package users on installing translations 2013-05-01 22:02:16 -04:00
koha-upgrade-schema
koha-upgrade-to-3.4