Lines 12280-12286
if ( CheckVersion($DBversion) ) {
Link Here
|
12280 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
12280 |
`id` int(11) NOT NULL AUTO_INCREMENT, |
12281 |
`name` varchar(255) NOT NULL COMMENT 'the name of the field as it will be stored in the search engine', |
12281 |
`name` varchar(255) NOT NULL COMMENT 'the name of the field as it will be stored in the search engine', |
12282 |
`label` varchar(255) NOT NULL COMMENT 'the human readable name of the field, for display', |
12282 |
`label` varchar(255) NOT NULL COMMENT 'the human readable name of the field, for display', |
12283 |
`type` ENUM('string', 'date', 'number', 'boolean', 'sum') NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine', |
12283 |
`type` ENUM('', 'string', 'date', 'number', 'boolean', 'sum') NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine', |
12284 |
PRIMARY KEY (`id`), |
12284 |
PRIMARY KEY (`id`), |
12285 |
UNIQUE KEY (`name`) |
12285 |
UNIQUE KEY (`name`) |
12286 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
12286 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
Lines 12337-12343
while ( my ( $index_name, $fields ) = each %$indexes ) {
Link Here
|
12337 |
my $search_field = Koha::SearchFields->find_or_create({ name => $field_name, label => $field_label, type => $field_type }, { key => 'name' }); |
12337 |
my $search_field = Koha::SearchFields->find_or_create({ name => $field_name, label => $field_label, type => $field_type }, { key => 'name' }); |
12338 |
for my $mapping ( @$mappings ) { |
12338 |
for my $mapping ( @$mappings ) { |
12339 |
my $marc_field = Koha::SearchMarcMaps->find_or_create({ index_name => $index_name, marc_type => $mapping->{marc_type}, marc_field => $mapping->{marc_field} }); |
12339 |
my $marc_field = Koha::SearchMarcMaps->find_or_create({ index_name => $index_name, marc_type => $mapping->{marc_type}, marc_field => $mapping->{marc_field} }); |
12340 |
$search_field->add_to_search_marc_maps($marc_field, { facet => $mapping->{facet}, suggestible => $mapping->{suggestible}, sort => $mapping->{sort} } ); |
12340 |
$search_field->add_to_search_marc_maps($marc_field, { facet => $mapping->{facet} || 0, suggestible => $mapping->{suggestible} || 0, sort => $mapping->{sort} } ); |
12341 |
} |
12341 |
} |
12342 |
} |
12342 |
} |
12343 |
} |
12343 |
} |
12344 |
- |
|
|