Lines 531-536
Returns a query which can be used to search for all component parts of MARC21 bi
Link Here
|
531 |
sub get_components_query { |
531 |
sub get_components_query { |
532 |
my ($self) = @_; |
532 |
my ($self) = @_; |
533 |
|
533 |
|
|
|
534 |
my $builder = Koha::SearchEngine::QueryBuilder->new( |
535 |
{ index => $Koha::SearchEngine::BIBLIOS_INDEX } ); |
534 |
my $marc = $self->metadata->record; |
536 |
my $marc = $self->metadata->record; |
535 |
|
537 |
|
536 |
my $searchstr; |
538 |
my $searchstr; |
Lines 561-566
sub get_components_query {
Link Here
|
561 |
else { |
563 |
else { |
562 |
my $cleaned_title = $marc->title; |
564 |
my $cleaned_title = $marc->title; |
563 |
$cleaned_title =~ tr|/||; |
565 |
$cleaned_title =~ tr|/||; |
|
|
566 |
$cleaned_title = $builder->clean_search_term($cleaned_title); |
564 |
$searchstr = "Host-item:($cleaned_title)"; |
567 |
$searchstr = "Host-item:($cleaned_title)"; |
565 |
} |
568 |
} |
566 |
|
569 |
|
567 |
- |
|
|