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:
parent
a3407da005
commit
f03f420263
1 changed files with 13 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue