[Koha-bugs] [Bug 16522] Add 773 (Host item entry) to the cart and list displays and e-mails
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 17 14:32:24 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16522
--- Comment #42 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
if ( !$hostfld and $record->subfield('773','t') ) {
# not linked using $w so just return plaintext
my $unlinkedf = $record->field('773');
my $host = join( ", ", $unlinkedf->subfield('a'),
$unlinkedf->subfield('t'), $unlinkedf->subfield('g') );
return wantarray ? ( $host, $unlinkedf->subfield('g') ) : $host;
}
The user of this routine expects a Koha object returned first.
You return a concatenation of strings.
Would be better to not disturb existing returns but find a way to return new
alternative data.
And change POD accordingly in the end.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list