This commit is contained in:
chris 2000-01-19 00:02:09 +00:00
parent 9dcc7eb4a5
commit f853f243d0
4 changed files with 40 additions and 21 deletions

View file

@ -57,9 +57,15 @@ sub FindReserves {
my $query="Select *,reserves.branchcode my $query="Select *,reserves.branchcode
from reserves,borrowers,biblio "; from reserves,borrowers,biblio ";
if ($bib ne ''){ if ($bib ne ''){
$query=$query." where reserves.biblionumber=$bib and if ($bor ne ''){
reserves.borrowernumber=borrowers.borrowernumber and $query=$query." where reserves.biblionumber=$bib and
biblio.biblionumber=$bib and cancellationdate is NULL"; reserves.borrowernumber=borrowers.borrowernumber and
biblio.biblionumber=$bib and cancellationdate is NULL";
} else {
$query=$query." where reserves.borrowernumber=borrowers.borrowernumber
and biblio.biblionumber=$bib and reserves.biblionumber=$bib
and cancellationdate is NULL";
}
} else { } else {
$query=$query." where borrowers.borrowernumber=$bor and $query=$query." where borrowers.borrowernumber=$bor and
reserves.borrowernumber=borrowers.borrowernumber and reserves.biblionumber reserves.borrowernumber=borrowers.borrowernumber and reserves.biblionumber

View file

@ -12,8 +12,8 @@ use C4::Output;
my $input = new CGI; my $input = new CGI;
print $input->header; print $input->header;
my $title=$input->param('title'); my $bibitemnum=$input->param('bibitem');
my $data=bibdata($title); my $data=bibitemdata($bibitemnum);
print startpage(); print startpage();
@ -22,18 +22,25 @@ my %inputs;
#hash is set up with input name being the key then #hash is set up with input name being the key then
#the value is a tab separated list, the first item being the input type #the value is a tab separated list, the first item being the input type
$inputs{'title'}="text\t$data->{'title'}";
$inputs{'unititle'}="text\t$data->{'unititle'}";
$inputs{'notes'}="textarea\t$data->{'notes'}";
#$inputs{'dateaccessioned'}="text\t$data->{'dateaccessioned'}";
#$inputs{'dewey'}="text\t$data->{'dewey'}";
#$inputs{'classification'}="text\t$data->{'classification'}";
#$inputs{'subclass'}="text\t$data->{'subclass'}";
#$inputs{'itemtype'}="text\t$data->{'itemtype'}";
$inputs{'Author'}="text\t$data->{'author'}"; $inputs{'Author'}="text\t$data->{'author'}";
$inputs{'Title'}="text\t$data->{'title'}";
$inputs{'Unititle'}="text\t$data->{'unititle'}";
$inputs{'Notes'}="textarea\t$data->{'notes'}";
$inputs{'Serial'}="text\t$data->{'serial'}";
$inputs{'Series Title'}="text\t$data->{'seriestitle'}"; $inputs{'Series Title'}="text\t$data->{'seriestitle'}";
$inputs{'Copyright'}="text\t$data->{'copyrightdate'}";
#$inputs{'Volume'}="text\t$data->{'volume'}";
#$inputs{'Number'}="text\t$data->{'number'}";
$inputs{'Classification'}="text\t$data->{'classification'}";
$inputs{'Item Type'}="text\t$data->{'itemtype'}";
$inputs{'ISBN'}="text\t$data->{'isbn'}";
$inputs{'Dewey'}="text\t$data->{'dewey'}";
$inputs{'Sub Class'}="text\t$data->{'subclass'}";
$inputs{'Publication Year'}="text\t$data->{'publicationyear'}";
$inputs{'Volume'}="text\t$data->{'volumedesc'}";
$inputs{'Illustrations'}="text\t$data->{'illustration'}";
$inputs{'Pages'}="text\t$data->{'pages'}";
print mkform('wah',%inputs); print mkform('wah',%inputs);
#print mktablehdr(); #print mktablehdr();
#print mktableft(); #print mktableft();

View file

@ -44,7 +44,8 @@ print <<printend
<a href=/cgi-bin/koha/request.pl?bib=$bib><img src=/images/requests.gif width=120 height=42 border=0 align=right border=0></a> <a href=/cgi-bin/koha/request.pl?bib=$bib><img src=/images/requests.gif width=120 height=42 border=0 align=right border=0></a>
<FONT SIZE=6><em>$data->{'title'} ($data->{'author'})</em></FONT><P> <FONT SIZE=6><em>$data->{'title'} ($data->{'author'})</em></FONT><P>
<p> <p>
<form > <form action=/cgi-bin/koha/modbib.pl>
<input type=hidden name=bibitem value=$bi>
<!-------------------BIBLIO ITEM------------> <!-------------------BIBLIO ITEM------------>
<TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left> <TABLE CELLSPACING=0 CELLPADDING=5 border=1 align=left>
<TR VALIGN=TOP> <TR VALIGN=TOP>

View file

@ -57,7 +57,7 @@ Alternative Contact:$data->{'contactname'}<BR>
Phone: $data->{'altphone'}<BR> Phone: $data->{'altphone'}<BR>
Relationship: $data->{'altrelationship'}<BR> Relationship: $data->{'altrelationship'}<BR>
Notes: $data->{'altnotes'}<P> Notes: $data->{'altnotes'}<P>
Guarantees: <A HREF="sam.html">Guarantor goes here</a><P> Guarantees: <A HREF=""></a><P>
General Notes: <A HREF="popbox.html" onclick="messenger(200,250,'Form that lets you add to and delete notes.'); return false"> General Notes: <A HREF="popbox.html" onclick="messenger(200,250,'Form that lets you add to and delete notes.'); return false">
$data->{'borrowernotes'}</a> $data->{'borrowernotes'}</a>
@ -157,10 +157,15 @@ for (my $i=0;$i<$count;$i++){
} else { } else {
print "<td> &nbsp; </td>"; print "<td> &nbsp; </td>";
} }
print "<TD><input type=radio name=\"renew_item_$issue->[$i]{'itemnumber'}\" value=y>Y #check item is not reserved
<input type=radio name=\"renew_item_$issue->[$i]{'itemnumber'}\" value=n>N</td> my ($rescount,$reserves)=FindReserves($issue->[$i]{'biblionumber'},'');
</tr> if ($rescount >0){
"; } else{
print "<TD><input type=radio name=\"renew_item_$issue->[$i]{'itemnumber'}\" value=y>Y
<input type=radio name=\"renew_item_$issue->[$i]{'itemnumber'}\" value=n>N</td>
</tr>
";
}
} }
print <<printend print <<printend