From 52bc35a9af908d7dc6bb7dc734c11a6dab304aea Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 Jan 2017 13:47:08 +0100 Subject: [PATCH] Restore records insertion for master --- insert_data.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/insert_data.pl b/insert_data.pl index 8967c23..61a48cb 100755 --- a/insert_data.pl +++ b/insert_data.pl @@ -55,6 +55,11 @@ my $sql_dir = dirname( abs_path($0) ) . '/data/sql'; my $major_version = join '', ( ( $VERSION =~ m|^3| ) ? ( split //, $VERSION )[0..2] : ( split //, $VERSION )[0..3] ); my $sql_files_dir = "$sql_dir/$lc_marcflavour/$major_version"; +my $version_data_directory = $major_version; +while ( not -d $sql_files_dir ) { # FIXME Hum... that smells wrong + $version_data_directory--; + $sql_files_dir = "$sql_dir/$lc_marcflavour/$version_data_directory"; +} our @records_files = ( "$sql_files_dir/biblio.sql", "$sql_files_dir/biblioitems.sql", "$sql_files_dir/items.sql", "$sql_files_dir/auth_header.sql" ); C4::Context->preference('VOID'); # FIXME master is broken because of 174769e382df - 16520