From f03f420263e4d3ac820dc3680dc64cc3b2752018 Mon Sep 17 00:00:00 2001 From: rangi Date: Mon, 21 Apr 2003 04:30:33 +0000 Subject: [PATCH] Adding back in code to allow switching between acquisition modules Not sure why this was deleted, im picking by accident --- loadmodules.pl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/loadmodules.pl b/loadmodules.pl index 717f49193b..785b881496 100755 --- a/loadmodules.pl +++ b/loadmodules.pl @@ -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 { -- 2.39.5