Bug 11175: (QA follow-up) Be more specific with title fields

We were using the MARC::Record title accessor, but that just stringifies
all the subfields of field 245. The indexer, and the XSLT, specifically
use 245a so we need to do the same.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2021-10-18 16:14:07 +01:00 committed by Jonathan Druart
parent 304247d326
commit ca6ef8ddaf
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ sub get_components_query {
}
}
else {
my $cleaned_title = $marc->title;
my $cleaned_title = $marc->subfield('245', "a");
$cleaned_title =~ tr|/||;
$cleaned_title = $builder->clean_search_term($cleaned_title);
$searchstr = "Host-item:($cleaned_title)";