Lines 60-73
sub import {
Link Here
|
60 |
$installer->load_db_schema(); |
60 |
$installer->load_db_schema(); |
61 |
$installer->set_marcflavour_syspref($args{marcflavour}); |
61 |
$installer->set_marcflavour_syspref($args{marcflavour}); |
62 |
my (undef, $fwklist) = $installer->marc_framework_sql_list('en', $args{marcflavour}); |
62 |
my (undef, $fwklist) = $installer->marc_framework_sql_list('en', $args{marcflavour}); |
|
|
63 |
my (undef, $list) = $installer->sample_data_sql_list('en'); |
63 |
my @frameworks; |
64 |
my @frameworks; |
64 |
foreach my $fwk (@$fwklist) { |
65 |
foreach my $fwk (@$fwklist, @$list) { |
65 |
foreach my $framework (@{ $fwk->{frameworks} }) { |
66 |
foreach my $framework (@{ $fwk->{frameworks} }) { |
66 |
push @frameworks, $framework->{fwkfile}; |
67 |
push @frameworks, $framework->{fwkfile}; |
67 |
} |
68 |
} |
68 |
} |
69 |
} |
69 |
my $all_languages = C4::Languages::getAllLanguages(); |
70 |
my $all_languages = C4::Languages::getAllLanguages(); |
70 |
$installer->load_sql_in_order($all_languages, @frameworks); |
71 |
$installer->load_sql_in_order($all_languages, @frameworks); |
|
|
72 |
require Koha::SearchEngine::Elasticsearch; |
73 |
Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings; |
74 |
$installer->set_version_syspref(); |
71 |
} |
75 |
} |
72 |
|
76 |
|
73 |
1; |
77 |
1; |
74 |
- |
|
|