3 #script to show list of budgets and bookfunds
4 #written 4/2/00 by chris@katipo.co.nz
5 #called as an include by the acquisitions index page
15 #$flagsrequired->{borrower}=1;
16 my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired);
19 my $module=$input->param('module');
22 if ($module eq 'acquisitions') { acquisitions(); last SWITCH; }
23 if ($module eq 'somethingelse') { somethingelse(); last SWITCH; }
29 # instead of getting a hash, then reading/writing to it at least twice
30 # and up to four times, maybe this should be a different function -
31 # areAquisitionsSimple() which returns a boolean
32 my %systemprefs=systemprefs();
33 ($systemprefs{'acquisitions'}) || ($systemprefs{'acquisitions'}='normal');
34 if ($systemprefs{'acquisitions'} eq 'simple') {
35 print $input->redirect("/cgi-bin/koha/acqui.simple/addbooks.pl");
36 } elsif ($systemprefs{'acquisitions'} eq 'normal') {
37 print $input ->redirect("/acquisitions");
39 print $input ->redirect("/acquisitions");
45 # just an example subroutine