Bug 10337: (followup) Upper case MARC flavour
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Oct 2016 15:02:25 +0000 (12:02 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:08:07 +0000 (14:08 +0000)
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>
misc/devel/populate_db.pl

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