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