</div>
<div id="resultlist">
<table>
- <thead>
<!-- TMPL_IF NAME="opac" -->
<tr>
<!-- TMPL_ELSE -->
<th class="catalogue">Author</th>
<th class="catalogue">Title</th>
</tr>
- <tbody>
<!-- TMPL_LOOP name="result" -->
<tr>
<td><a href="../MARCdetail.pl?bibid=<!-- TMPL_VAR name="bibid" -->"><!-- TMPL_VAR name="bibid" --></a></td>
my @tags;
foreach my $marc (@marclist) {
- my ($tag,$subfield) = MARCfind_marc_from_kohafield($dbh,$marc);
- if ($tag) {
- push @tags,$dbh->quote("$tag$subfield");
+ if ($marc) {
+ my ($tag,$subfield) = MARCfind_marc_from_kohafield($dbh,$marc);
+ if ($tag) {
+ push @tags,$dbh->quote("$tag$subfield");
+ } else {
+ push @tags, $dbh->quote(substr($marc,0,4));
+ }
} else {
- push @tags, $dbh->quote(substr($marc,0,4));
+ push @tags, "";
}
}
findseealso($dbh,\@tags);