|
Lines 95-113
is( $mappings->{biblios}{title}{facet_order}, undef, 'Facet order is undef');
Link Here
|
| 95 |
|
95 |
|
| 96 |
is(scalar(@{ $mappings->{biblios}{title}{mappings} }), 3, 'Title has 3 mappings'); |
96 |
is(scalar(@{ $mappings->{biblios}{title}{mappings} }), 3, 'Title has 3 mappings'); |
| 97 |
|
97 |
|
| 98 |
my $f247_map = $mappings->{biblios}{title}{mappings}[0]; |
98 |
my $f212_map = $mappings->{biblios}{title}{mappings}[0]; |
| 99 |
is( $f247_map->{marc_field}, 247, 'First mapping is on field 247'); |
99 |
is( $f212_map->{marc_field}, 212, 'First mapping is on field 212'); |
| 100 |
is( $f247_map->{marc_type}, 'marc21', 'First mapping is for marc21'); |
100 |
is( $f212_map->{marc_type}, 'marc21', 'First mapping is for marc21'); |
| 101 |
is( $f247_map->{facet}, '', 'First mapping facet is empty'); |
101 |
is( $f212_map->{facet}, '', 'First mapping facet is empty'); |
| 102 |
is( $f247_map->{suggestible}, '', 'First mapping is not suggestible'); |
102 |
is( $f212_map->{suggestible}, '', 'First mapping is not suggestible'); |
| 103 |
is( $f247_map->{sort}, undef, 'First mapping is not sortable'); |
103 |
is( $f212_map->{sort}, undef, 'First mapping is not sortable'); |
| 104 |
|
104 |
|
| 105 |
my $f212_map = $mappings->{biblios}{title}{mappings}[1]; |
105 |
my $f247_map = $mappings->{biblios}{title}{mappings}[1]; |
| 106 |
is( $f212_map->{marc_field}, 212, 'Second mapping is on field 247'); |
106 |
is( $f247_map->{marc_field}, 247, 'Second mapping is on field 247'); |
| 107 |
is( $f212_map->{marc_type}, 'marc21', 'Second mapping is for marc21'); |
107 |
is( $f247_map->{marc_type}, 'marc21', 'Second mapping is for marc21'); |
| 108 |
is( $f212_map->{facet}, '', 'Second mapping facet is empty'); |
108 |
is( $f247_map->{facet}, '', 'Second mapping facet is empty'); |
| 109 |
is( $f212_map->{suggestible}, '', 'Second mapping is not suggestible'); |
109 |
is( $f247_map->{suggestible}, '', 'Second mapping is not suggestible'); |
| 110 |
is( $f212_map->{sort}, undef, 'Second mapping is not sortable'); |
110 |
is( $f247_map->{sort}, undef, 'Second mapping is not sortable'); |
| 111 |
|
111 |
|
| 112 |
$mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings('unimarc'); |
112 |
$mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings('unimarc'); |
| 113 |
|
113 |
|
| 114 |
- |
|
|