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
12 my $module=$input->param('module');
15 if ($module eq 'acquisitions') { acquisitions(); last SWITCH; }
16 if ($module eq 'somethingelse') { somethingelse(); last SWITCH; }
22 # instead of getting a hash, then reading/writing to it at least twice
23 # and up to four times, maybe this should be a different function -
24 # areAquisitionsSimple() which returns a boolean
25 my %systemprefs=systemprefs();
26 ($systemprefs{'acquisitions'}) || ($systemprefs{'acquisitions'}='normal');
27 if ($systemprefs{'acquisitions'} eq 'simple') {
28 print $input->redirect("/cgi-bin/koha/acqui.simple/addbooks.pl");
29 } elsif ($systemprefs{'acquisitions'} eq 'normal') {
30 print $input ->redirect("/acquisitions");
32 print $input ->redirect("/acquisitions");
38 # just an example subroutine