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

(-)a/t/db_dependent/Search.t (-5 / +12 lines)
Lines 661-668 if ( $indexing_mode eq 'dom' ) { Link Here
661
    ok(!exists($newresults[0]->{norequests}), 'presence of a transit does not block hold request action (bug 10741)');
661
    ok(!exists($newresults[0]->{norequests}), 'presence of a transit does not block hold request action (bug 10741)');
662
662
663
    ## Regression test for bug 10684
663
    ## Regression test for bug 10684
664
    ( undef, $results_hashref, $facets_loop ) =
664
    my $expected_warning = $indexing_mode eq 'grs1' ?
665
        getRecords('ti:punctuation', 'punctuation', [], [ 'biblioserver' ], '19', 0, undef, \%branches, \%itemtypes, 'ccl', undef);
665
        qr/^ERROR DECODING RECORD - Tag "50%" is not a valid tag/ :
666
        undef;
667
    my $expected_description = $indexing_mode eq 'grs1' ?
668
        "Warning is raised correctly for ti:punctuation MARC::Record" :
669
        "No warning is raised as expected for ti:punctuation MARC::Record";
670
    warning_like { ( undef, $results_hashref, $facets_loop ) =
671
        getRecords('ti:punctuation', 'punctuation', [], [ 'biblioserver' ], '19', 0, undef, \%branches, \%itemtypes, 'ccl', undef)
672
        }
673
        $expected_warning, $expected_description;
666
    is($results_hashref->{biblioserver}->{hits}, 1, "search for ti:punctuation returned expected number of records");
674
    is($results_hashref->{biblioserver}->{hits}, 1, "search for ti:punctuation returned expected number of records");
667
    warning_like { @newresults = searchResults('intranet', $query_desc,
675
    warning_like { @newresults = searchResults('intranet', $query_desc,
668
                    $results_hashref->{'biblioserver'}->{'hits'}, 20, 0, 0,
676
                    $results_hashref->{'biblioserver'}->{'hits'}, 20, 0, 0,
Lines 966-977 sub run_unimarc_search_tests { Link Here
966
}
974
}
967
975
968
subtest 'MARC21 + GRS-1' => sub {
976
subtest 'MARC21 + GRS-1' => sub {
969
    plan tests => 109;
977
    plan tests => 110;
970
    run_marc21_search_tests('grs1');
978
    run_marc21_search_tests('grs1');
971
};
979
};
972
980
973
subtest 'MARC21 + DOM' => sub {
981
subtest 'MARC21 + DOM' => sub {
974
    plan tests => 109;
982
    plan tests => 110;
975
    run_marc21_search_tests('dom');
983
    run_marc21_search_tests('dom');
976
};
984
};
977
985
978
- 

Return to bug 18762