package C4::Biblio;
# $Id$
# $Log$
+# Revision 1.23 2002/10/16 12:43:08 arensb
+# Added some FIXME comments.
+#
# Revision 1.22 2002/10/15 13:39:17 tipaul
# removing Acquisition.pm
# deleting unused code in biblio.pm, rewriting POD and answering most FIXME comments
tables of the Koha database.
=cut
-
+#'
+# FIXME - This is effectively identical to &C4::Catalogue::getorder.
+# Pick one and stick with it.
sub getorder{
my ($bi,$bib)=@_;
my $dbh = C4::Context->dbh;
where biblionumber=? and biblioitemnumber=?";
my $sth=$dbh->prepare($query);
$sth->execute($bib,$bi);
+ # FIXME - Use fetchrow_array(), since we're only interested in the one
+ # value.
my $ordnum=$sth->fetchrow_hashref;
$sth->finish;
my $order=getsingleorder($ordnum->{'ordernumber'});
aqorderbreakdown tables of the Koha database.
=cut
-
+#'
+# FIXME - This is effectively identical to
+# &C4::Catalogue::getsingleorder.
+# Pick one and stick with it.
sub getsingleorder {
my ($ordnum)=@_;
my $dbh = C4::Context->dbh;
my $q_dewey=$dbh->quote($dewey);
$cleanauthor=$author;
$cleanauthor=~s/[^A-Za-z]//g;
- $subclass=uc(substr($cleanauthor,0,3));
+ $subclass=ucz(substr($cleanauthor,0,3));
+ # FIXME - WTF is the author being converted
+ # to upper case?
my $q_subclass=$dbh->quote($subclass);
my $q_publicationyear=$dbh->quote($publicationyear);
my $q_publishercode=$dbh->quote($publishercode); # FIXME - $publishercode undefined
foreach $subjectheading (@subjects) {
# convert to upper case
$subjectheading=uc($subjectheading);
+ # FIXME - WTF is the subject being
+ # converted to upper case?
# quote value
my $q_subjectheading=$dbh->quote($subjectheading);
$sth=$dbh->prepare("insert into bibliosubject (biblionumber,subject)
$additionalauthor=~s/\010//g;
# convert to upper case
$additionalauthor=uc($additionalauthor);
+ # FIXME - WTF is the author being converted
+ # to upper case?
# quote value
my $q_additionalauthor=$dbh->quote($additionalauthor);
$sth=$dbh->prepare("insert into additionalauthors (biblionumber,author) values ($biblionumber, $q_additionalauthor)");
<TMPL_LOOP NAME="BIBLIO_RESULTS">
<font SIZE=6><em><TMPL_VAR NAME="title"> (<TMPL_VAR NAME="author">)
<TMPL_VAR NAME="class"></em></font><p>
+<!-- FIXME - "callpadding" should be "cellpadding", right? -->
<table cellspacing="0" callpadding="5" border="1" align="left" width="220">
<!-----------------BIBLIO RECORD TABLE--------->
<tr valign="top">
<font SIZE=6><em><TMPL_VAR NAME="title"> (<TMPL_VAR NAME="author">)
<TMPL_VAR NAME="class"></em></font><p>
+<!-- FIXME - "callpadding" should be "cellpadding", right? -->
<table cellspacing="0" callpadding="5" border="1" align="left" width="220">
<!-----------------BIBLIO RECORD TABLE--------->
<tr valign="top">
</tr>
</table>
</TMPL_LOOP>
+<!-- FIXME - The help box overflows on the right. I think this is
+ because it is specified as "width=70%", which the browser
+ interprets as 70% of the width of the browser window. However,
+ leaving out the "width=70%" makes the help box abut the "biblio
+ record" box. I think the fix is to put all three boxes in a
+ table, for layout, and make the help box as wide as it wants to
+ be. -->
+
<center>
<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor="#cccc99" background="/images/background-mem.gif">
<img height=42 WIDTH=120 BORDER="0" src="/images/requests.gif" align="right" border="0"></a>
<font SIZE=6><em><TMPL_VAR NAME="title"> (<TMPL_VAR NAME="author">)
<TMPL_VAR NAME="class"></em></font><p>
+<!-- FIXME - "callpadding" should be "cellpadding", right? -->
<table cellspacing="0" callpadding="5" border="1" align="left" width="220">
<!-----------------old style RECORD TABLE--------->
<center>
<TMPL_LOOP NAME="BIBLIO_RESULTS">
<font SIZE=6><em><TMPL_VAR NAME="title"> (<TMPL_VAR NAME="author">)
<TMPL_VAR NAME="class"></em></font><p>
+<!-- FIXME - "callpadding" should be "cellpadding", right? -->
<table cellspacing="0" callpadding="5" border="1" align="left" width="220">
<!-----------------BIBLIO RECORD TABLE--------->
<tr valign="top">
<b>Home Branch:</b> <TMPL_VAR NAME="homebranch"><br>
<b>Last seen:</b> <TMPL_VAR NAME="datelastseen"><br>
<b>Last borrowed:</b> <TMPL_VAR NAME="timestamp0"><br>
-on issue bit
+on issue bit <!-- FIXME - What's this, then? -->
<b>Last Borrower 1:</b> <TMPL_VAR NAME="card0"><br>
<b>Last Borrower 2:</b> <TMPL_VAR NAME="card1"><br>
<b>Current Branch:</b> <TMPL_VAR NAME="holdingbranch"><br>
my $query=new CGI;
my $type=$query->param('type');
-warn $type;
+warn $type; # FIXME - What's this for?
#(-e "opac") && ($type='opac');
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, ($type eq 'opac') ? (1) : (0));
-warn $type;
+warn $type; # FIXME - What's this for?
my $startfrom=$query->param('startfrom');
($startfrom) || ($startfrom=0);