Started on updateItem subroutine.
[koha.git] / loadmodules.pl
1 #!/usr/bin/perl
2
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
6
7 use C4::Acquisitions;
8 use C4::Search;
9 use CGI;
10 my $input=new CGI;
11
12 my $module=$input->param('module');
13
14 SWITCH: {
15     if ($module eq 'acquisitions') { acquisitions(); last SWITCH; }
16     if ($module eq 'somethingelse') { somethingelse(); last SWITCH; }
17 }
18
19
20 sub acquisitions {
21     my %systemprefs=systemprefs();
22     ($systemprefs{'acquisitions'}) || ($systemprefs{'acquisitions'}='normal');
23     if ($systemprefs{'acquisitions'} eq 'simple') {
24         print $input->redirect("/cgi-bin/koha/acqui.simple/addbooks.pl");
25     } elsif ($systemprefs{'acquisitions'} eq 'normal') {
26         print $input ->redirect("/acquisitions");
27     } else {
28         print $input ->redirect("/acquisitions");
29     }
30 }
31
32
33 sub somethingelse {
34 # just an example subroutine
35 }