From afd505b5e9ab8f6ffe82e7edecab6924dbd2e511 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 18 Oct 2016 12:02:25 -0300 Subject: [PATCH] Bug 10337: (followup) Upper case MARC flavour MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Kyle M Hall (cherry picked from commit 31cb200e0d97106f6e2a009b4cbbd0a295bbaaf5) Signed-off-by: Frédéric Demians --- misc/devel/populate_db.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/devel/populate_db.pl b/misc/devel/populate_db.pl index ab0503d54c..26c6279786 100755 --- a/misc/devel/populate_db.pl +++ b/misc/devel/populate_db.pl @@ -75,6 +75,8 @@ if ( $help ) { pod2usage; } +$marcflavour = uc($marcflavour); + if ( $marcflavour ne 'MARC21' and $marcflavour ne 'UNIMARC' ) { say "Invalid MARC flavour '$marcflavour' passed."; -- 2.39.5