Adding back in code to allow switching between acquisition modules

Not sure why this was deleted, im picking by accident
This commit is contained in:
rangi 2003-04-21 04:30:33 +00:00
parent a3407da005
commit f03f420263

View file

@ -36,7 +36,19 @@ SWITCH: {
}
sub acquisitions {
print $input ->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
my $aq_type = C4::Context->preference("acquisitions") || "normal";
# Get the acquisition preference. This should be:
# "simple" - minimal information required
# "normal" - full information required
# other - Same as "normal"
if ($aq_type eq 'simple') {
print $input->redirect("/cgi-bin/koha/acqui.simple/addbooks.pl");
} elsif ($aq_type eq 'normal') {
print $input ->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
} else {
print $input ->redirect("/cgi-bin/koha/acqui/acqui-home.pl");
}
}
sub catalogue_search {