Bug 10337: (followup) Upper case MARC flavour

This patch makes the populate_db.pl script upper case what gets passed
with the --marcflavour option switch. This is needed in order for this
to fit ``kohadevbox`` configuration files, and it is harmless for other
uses.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 31cb200e0d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Tomas Cohen Arazi 2016-10-18 12:02:25 -03:00 committed by Frédéric Demians
parent a0c7f81f0c
commit afd505b5e9
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ if ( $help ) {
pod2usage;
}
$marcflavour = uc($marcflavour);
if ( $marcflavour ne 'MARC21'
and $marcflavour ne 'UNIMARC' ) {
say "Invalid MARC flavour '$marcflavour' passed.";