View | Details | Raw Unified | Return to bug 30572
Collapse All | Expand All

(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t (-6 / +5 lines)
Lines 58-64 $search_field->add_to_search_marc_maps($marc_field, Link Here
58
    {
58
    {
59
        facet => 0,
59
        facet => 0,
60
        suggestible => 0,
60
        suggestible => 0,
61
        sort => undef
61
        sort => 0
62
    } );
62
    } );
63
63
64
$marc_field = Koha::SearchMarcMaps->find_or_create(
64
$marc_field = Koha::SearchMarcMaps->find_or_create(
Lines 72-78 $search_field->add_to_search_marc_maps($marc_field, Link Here
72
    {
72
    {
73
        facet => 0,
73
        facet => 0,
74
        suggestible => 0,
74
        suggestible => 0,
75
        sort => undef
75
        sort => 0
76
    } );
76
    } );
77
77
78
$marc_field = Koha::SearchMarcMaps->find_or_create(
78
$marc_field = Koha::SearchMarcMaps->find_or_create(
Lines 86-92 $search_field->add_to_search_marc_maps($marc_field, Link Here
86
    {
86
    {
87
        facet => 0,
87
        facet => 0,
88
        suggestible => 1,
88
        suggestible => 1,
89
        sort => undef
89
        sort => 0
90
    } );
90
    } );
91
91
92
my $mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings();
92
my $mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings();
Lines 105-118 is( $f212_map->{marc_field}, 212, 'First mapping is on field 212'); Link Here
105
is( $f212_map->{marc_type}, 'marc21', 'First mapping is for marc21');
105
is( $f212_map->{marc_type}, 'marc21', 'First mapping is for marc21');
106
is( $f212_map->{facet}, '', 'First mapping facet is empty');
106
is( $f212_map->{facet}, '', 'First mapping facet is empty');
107
is( $f212_map->{suggestible}, '', 'First mapping is not suggestible');
107
is( $f212_map->{suggestible}, '', 'First mapping is not suggestible');
108
is( $f212_map->{sort}, undef, 'First mapping is not sortable');
108
is( $f212_map->{sort}, 0, 'First mapping is not sortable');
109
109
110
my $f247_map = $mappings->{biblios}{title}{mappings}[1];
110
my $f247_map = $mappings->{biblios}{title}{mappings}[1];
111
is( $f247_map->{marc_field}, 247, 'Second mapping is on field 247');
111
is( $f247_map->{marc_field}, 247, 'Second mapping is on field 247');
112
is( $f247_map->{marc_type}, 'marc21', 'Second mapping is for marc21');
112
is( $f247_map->{marc_type}, 'marc21', 'Second mapping is for marc21');
113
is( $f247_map->{facet}, '', 'Second mapping facet is empty');
113
is( $f247_map->{facet}, '', 'Second mapping facet is empty');
114
is( $f247_map->{suggestible}, '', 'Second mapping is not suggestible');
114
is( $f247_map->{suggestible}, '', 'Second mapping is not suggestible');
115
is( $f247_map->{sort}, undef, 'Second mapping is not sortable');
115
is( $f247_map->{sort}, 0, 'Second mapping is not sortable');
116
116
117
$mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings('unimarc');
117
$mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings('unimarc');
118
118
119
- 

Return to bug 30572