Go to file
Tomas Cohen Arazi a675bc263c Bug 10159 - koha-rebuild-zebra error handling
This patch makes koha-rebuild-zebra:
- Check for the existence of the instance
- Handle arbitrary amount of instance parameters
- Capture -a and -b (which made the script rebuild twice the chosen DB). It adds the extended version (--authorities and --biblios respectively) of the option switch. This makes the -a and -b switches work as "only do authorities" (or viceversa). They can be used concurrently, which is the default behaviour when no switch is provided.
- Handle -v (and --verbose) as koha-rebuild-zebra options, to ease the use for non-techie users.
- The rebuild_zebra.pl is wrapped inside an IF to return error values if we ever make rebuild_zebra.pl return error codes (this is pointed in the code).
- Added -h/--help switches and an 'usage' output :-D Please provide patches for any wording issues, or contact me to fix it.

To test:
- Apply the patch and create your packages (or just use the script from your branch)
- Run it in this scenarios / options
  - -h/--help to see the available option switches
  - Mix them with one or more instances, of which some could be fake
  - try -a/--authorities and -b/--biblios in all possible combinations
  - try -v/--verbose works

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 39d3b9088a)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit a3422a4702)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit a3422a4702)
2013-06-13 23:20:57 -03:00
C4 Bug 10381: POD lines of GetBasketsInfosByBookseller 2013-06-13 22:34:39 -03:00
Koha Bug 9479: FIX conflict with Bug 9014 2013-04-25 09:52:32 +12:00
acqui Bug 9824: Make it possible to apply/cancel switch 2013-06-13 22:29:32 -03:00
admin Bug 9201 OAI-PMH mapping value cannot be 0 2013-02-07 08:29:08 +13:00
authorities BUG 9145: Authorities: standard language for UNIMARC 2013-02-21 18:44:16 +13:00
basket
…
catalogue Bug 9684 : Correct path to compact.xsl 2013-04-28 09:59:55 +12:00
cataloguing Bug 7054 - NORMARC: Fix default for 000 position 17 2013-05-09 19:14:39 +12:00
circ Merge remote-tracking branch 'kc/3.10.x' into 3.10.x 2013-05-13 22:04:44 +12:00
debian Bug 10159 - koha-rebuild-zebra error handling 2013-06-13 23:20:57 -03:00
docs Bug 7368: Correct three typos in history.txt 2013-06-10 17:14:19 -03:00
errors
…
etc Bug 9804 - Fix name for NORMARC biblio-koha-indexdefs.xml 2013-04-27 21:52:48 +12:00
install_misc Bug 9267 - Ubuntu 12.04 install docs broken 2013-03-11 22:42:45 +13:00
installer Bug 10120: Adding a syspref to control if overdue charges are updated on return 2013-06-10 16:56:41 -03:00
koha-tmpl Bug 10350 - Capitalization: Home Library column in staff detail items table 2013-06-13 22:47:51 -03:00
labels
…
members Bug 9484: userid not generated consistently (different editing pages) 2013-04-25 09:45:04 +12:00
misc Bug 10214 Add header to syspref po files 2013-06-13 23:13:57 -03:00
offline_circ
…
opac Bug 10026 - OPAC cart not showing location anymore 2013-04-27 21:48:59 +12:00
patroncards Bug 9695 - Use alphabet system preference on page used to browse patrons for patron card batches 2013-03-17 12:31:40 +13:00
reports Bug 10110: Problems with diacritics in saved SQL reports 2013-04-28 09:39:51 +12:00
reserve
…
reviews
…
rotating_collections
…
selenium
…
serials Bug 9574: Plack fixes for serials/subscription-add.pl 2013-03-11 22:18:04 +13:00
services
…
skel
…
sms
…
suggestion Bug 9226: Wrong branch filter after suggestion creation 2013-02-16 18:37:08 +13:00
svc Bug 9908 - Fixing OCLC Connexion Client 2013-03-30 20:14:59 +13:00
t bug 10292: improve fallback logic for picking XSLT 2013-06-10 20:02:49 -03:00
tags Bug 10022 - Multiple tags moderation doesn't work on translated page 2013-05-08 19:54:00 +12:00
test
…
tmp/modified_authorities
…
tools Bug 8378 - show all items columns and new items.fine 2013-03-29 20:09:11 +13:00
virtualshelves
…
xt Bug 8942 : Adding a test to make sure we don't use single quotes for js 2013-03-30 08:11:59 +13:00
.htaccess
…
.mailmap
…
INSTALL
…
INSTALL.debian
…
INSTALL.fedora7
…
INSTALL.opensuse
…
INSTALL.ubuntu
…
INSTALL.ubuntu.12.04 Bug 9267 - Ubuntu 12.04 install docs broken 2013-03-11 22:42:45 +13:00
INSTALL.ubuntu.lucid
…
LICENSE
…
MANIFEST.SKIP Bug 9546 : Updating make manifest tardist 2013-02-09 12:31:39 +13:00
Makefile.PL Bug 9256 - Fix search for the packages 2013-03-21 13:25:54 +13:00
README
…
README.robots
…
about.pl
…
changelanguage.pl
…
edithelp.pl
…
fix-perl-path.PL
…
help.pl
…
install-CPAN.pl
…
koha_perl_deps.pl
…
kohaversion.pl Bug 10120: DBRev 3.10.6.001 2013-06-10 16:58:06 -03:00
mainpage.pl
…
rewrite-config.PL
…

README

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/