@@ -, +, @@ subfield contents ($oclc) 1) Edit existing book or create a new one with empty marc 2) Use the search feature that will find it along with some other 3) Check /var/log/koha/kohadev/plack-intranet-error.log to find 4) Apply the patch. 5) Repeat the search and check the logs again to ensure --- C4/Koha.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Koha.pm +++ a/C4/Koha.pm @@ -671,7 +671,7 @@ sub GetNormalizedOCLCNumber { my @fields = $marcrecord->field('035'); foreach my $field (@fields) { my $oclc = $field->subfield('a'); - if ($oclc =~ /OCoLC/) { + if ($oclc && $oclc =~ /OCoLC/) { $oclc =~ s/\(OCoLC\)//; return $oclc; } --