Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
my ($authtypecode) = @_;
my $dbh=C4::Context->dbh;
my $sth;
- if ($authtypecode){
+ if (defined $authtypecode){ # NOTE - in MARC21 framework, '' is a valid authority
+ # type
$sth=$dbh->prepare("select * from auth_types where authtypecode=?");
$sth->execute($authtypecode);
} else {
foreach my $field ($record->field('5..')) {
$altheading.= "<br /> <i>see also:</i> ".$field->as_string();
}
- $summary .= ": ";
+ $summary .= ": " if $summary;
$summary.=$heading.$seeheading.$altheading;
}
}