Bug 35792: Use of uninitialized value $sub6
Test plan:
1. Apply patch
2. Rerun and make sure the error "Use of uninitialized value $sub6 in pattern match (m//) at /usr/share/koha/lib/Koha/SearchEngine/Elastricsearch.pm" is no longer present.
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Initial testing done, it works well, needs an additional sign off from an external party
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b8049af6b1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
7fcda7cfc3
commit
482c08bbfa
|
|
@ -616,7 +616,7 @@ sub marc_records_to_documents {
|
|||
my $altscript = 0;
|
||||
if ($marcflavour eq 'marc21' && $tag eq '880') {
|
||||
my $sub6 = $field->subfield('6');
|
||||
if ($sub6 =~ /^(...)-\d+/) {
|
||||
if ($sub6 && $sub6 =~ /^(...)-\d+/) {
|
||||
$tag = $1;
|
||||
$altscript = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue