]> git.koha-community.org Git - koha.git/commit
Bug 4126 - Exit bulkmarcimport if -a and -b given
authorMagnus Enger <magnus@libriotech.no>
Thu, 10 Nov 2016 14:32:44 +0000 (14:32 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 20 Feb 2017 09:32:18 +0000 (10:32 +0100)
commitb96ca0028ca0acd2b35ace9012488e41591a0854
tree45feeed65d54f5f6c220b07d35ed390dce14b1bd
parentc7af305e73ed8f914b2e32633f38e4b3add74f33
Bug 4126 - Exit bulkmarcimport if -a and -b given

Currently it is possible to spceify both --biblios and --authorities
as command line switches to bulkmarcimport.pl. This does not make sense
so we should exit early and explain that these switches are mutually
exclusive.

To test:
- Run one of these and check that there is no complaint about missing
  options:
  perl misc/migration_tools/bulkmarcimport.pl -a -b
  sudo koha-shell -c "perl misc/migration_tools/bulkmarcimport.pl -a -b"
  kohadev
- Observe that this displays the perldoc, but does not complain about
  mutually exclusive switches.
- Apply the patch
- Rerun the command(s) from earlier.
- Verify that the script is now halted and a small explanation given.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit dbada67196818834f158890c0c348c0259085f7e)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 83ec31965824b4d632bb62f5569fde430fa3858e)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
misc/migration_tools/bulkmarcimport.pl