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

(-)a/Koha/Biblio.pm (-1 / +1 lines)
Lines 595-601 sub get_components_query { Link Here
595
        my $cleaned_title = $marc->subfield('245', "a");
595
        my $cleaned_title = $marc->subfield('245', "a");
596
        $cleaned_title =~ tr|/||;
596
        $cleaned_title =~ tr|/||;
597
        $cleaned_title = $builder->clean_search_term($cleaned_title);
597
        $cleaned_title = $builder->clean_search_term($cleaned_title);
598
        $searchstr = "Host-item:($cleaned_title)";
598
        $searchstr = qq#Host-item:("$cleaned_title")#;
599
    }
599
    }
600
600
601
    return $searchstr;
601
    return $searchstr;
(-)a/t/db_dependent/Koha/Biblio.t (-2 / +1 lines)
Lines 569-575 subtest 'get_components_query' => sub { Link Here
569
    my $record = $biblio->metadata->record;
569
    my $record = $biblio->metadata->record;
570
570
571
    t::lib::Mocks::mock_preference( 'UseControlNumber', '0' );
571
    t::lib::Mocks::mock_preference( 'UseControlNumber', '0' );
572
    is($biblio->get_components_query, "Host-item:(Some boring read)", "UseControlNumber disabled");
572
    is($biblio->get_components_query, 'Host-item:("Some boring read")', "UseControlNumber disabled");
573
573
574
    t::lib::Mocks::mock_preference( 'UseControlNumber', '1' );
574
    t::lib::Mocks::mock_preference( 'UseControlNumber', '1' );
575
    my $marc_001_field = MARC::Field->new('001', $biblionumber);
575
    my $marc_001_field = MARC::Field->new('001', $biblionumber);
576
- 

Return to bug 30865