[Koha] Bug: Biblio.pm

Waylon Robertson genji18 at yahoo.co.nz
Sat Nov 20 02:13:22 NZDT 2004


Biblio.pm
Line 1697:
         $biblioitem->{'pages'},          $biblioitem->{'bnotes'},
should be:
         $biblioitem->{'pages'},          $biblioitem->{'notes'},

moredetail.tmpl expects bnotes, but in the biblioitem table, its notes. so 
it doesn't work.:
Line 30 of moredetail.tmpl:
			<p><b>Notes:</b> <!-- TMPL_VAR NAME="bnotes" --></p>
Should be:
			<p><b>Notes:</b> <!-- TMPL_VAR NAME="notes" --></p>
as moredetail.pl passes the table results bibitem, which has notes, not bnotes.

  In saveitem.pl its notes too, so in passing to newbiblio, saves a null 
string to bnotes... and biblioitem.notes is always null. A few bnotes 
mistakes in other files:

line 96 in modbib.pl:
						notes => $data->{'bnotes'}
should be:
						notes => $data->{'notes'}

modbibitem.pl - line 119:
$template->param(bnotes=>$data->{'bnotes'});
should be:
$template->param(bnotes=>$data->{'notes'});

in the opac cgi directory - opac-moredetail.pl line 95:
<b>Notes:</b> $data->{'notes'}<br>
should be:
<b>Notes:</b> $data->{'bnotes'}<br>

marc_subfields_structure.pl line 100:
		if ($field eq 'notes') { $field = 'bnotes'; }
Trying to repair the mistakes someone made... and forgetting to update the 
table to include a bnotes field?
fix by:
#		if ($field eq 'notes') { $field = 'bnotes'; }
comment out.

z3950import.pl line 809:
  	$biblioitem{bnotes}		=$input->param('notes');
should be:
  	$biblioitem{notes}		=$input->param('notes');
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.796 / Virus Database: 540 - Release Date: 13/11/2004


More information about the Koha mailing list