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:
parent
304247d326
commit
ca6ef8ddaf
|
|
@ -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)";
|
||||
|
|
|
|||
Loading…
Reference in New Issue