road to 1.3.2 : adding a biblio in MARC format.
[koha.git] / acqui / newbasket.pl
1 #!/usr/bin/perl
2
3 # $Id$
4
5 #script to show display basket of orders
6 #written by chris@katipo.co.nz 24/2/2000
7
8
9 # Copyright 2000-2002 Katipo Communications
10 #
11 # This file is part of Koha.
12 #
13 # Koha is free software; you can redistribute it and/or modify it under the
14 # terms of the GNU General Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at your option) any later
16 # version.
17 #
18 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
20 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License along with
23 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
24 # Suite 330, Boston, MA  02111-1307 USA
25
26 use C4::Catalogue;
27 use C4::Biblio;
28 use C4::Output;
29 use CGI;
30 use strict;
31
32 my $input=new CGI;
33 print $input->header();
34 my $user=$input->remote_user;
35 my $id=$input->param('id');
36 my ($count,@booksellers)=bookseller($id);
37 print startpage;
38
39 print startmenu('acquisitions');
40
41 my $basket=$input->param('basket');
42 if ($basket eq ''){
43   $basket=newbasket();
44 }
45 my $date=localtime(time);
46 print <<printend
47
48
49 <div align=right>
50 Our Reference: HLT-$basket<br>
51 Authorised By: $user<br>
52 $date
53 </div>
54 <FONT SIZE=6><em>Shopping Basket For: <a href=/cgi-bin/koha/acqui/supplier.pl?id=$booksellers[0]->{'id'}>
55 $booksellers[0]->{'name'}</a></em></FONT><br>
56 Ph: $booksellers[0]->{'phone'}, Fax: $booksellers[0]->{'fax'},
57 $booksellers[0]->{'address1'}, $booksellers[0]->{'address2'},
58 $booksellers[0]->{'address3'}, $booksellers[0]->{'address4'}
59
60
61 <p>
62 <FORM ACTION="/cgi-bin/koha/acqui/newbasket2.pl" method=post>
63 <input type=hidden name=id value="$id">
64 <input type=hidden name=basket value="$basket">
65 <b> Search Keyword or Title: </b><INPUT TYPE="text"  SIZE="25"   NAME="search">
66
67 </form>
68
69
70
71 <br clear=all>
72 <DL>
73 <dt><b>DELIVERY ADDRESS: </b></dt>
74 <dd><b>Horowhenua Library Trust</b><br>
75 10 Bath St<br>
76 Levin<br>
77 New Zealand<p>
78
79 Ph: +64-6-368 1953<br>
80 Email: <a href="mailto:orders\@library.org.nz">orders\@library.org.nz</a>
81
82 </dl>
83
84
85 printend
86 ;
87
88 print endmenu('acquisitions');
89
90 print endpage;