use C4::Auth;
use C4::Output;
use Koha::Database;
+use Koha::Plugins;
my $input = CGI->new();
}
);
$template->param( vendors => \@vendors );
- $template->param(
- code_qualifiers => [
- {
- code => '14',
- description => 'EAN International',
- },
- {
- code => '31B',
- description => 'US SAN Agency',
- },
- {
- code => '91',
- description => 'Assigned by supplier',
- },
- {
- code => '92',
- description => 'Assigned by buyer',
- },
- ]
- );
+ my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
+ $template->param( plugins_enabled => $plugins_enabled );
+
+ if ( $plugins_enabled ) {
+ my @plugins = Koha::Plugins->new()->GetPlugins('edifact');
+ $template->param( plugins => \@plugins );
+ }
}
elsif ( $op eq 'delete_confirm' ) {
show_account();
responses_enabled => defined $input->param('responses_enabled'),
auto_orders => defined $input->param('auto_orders'),
id_code_qualifier => $input->param('id_code_qualifier'),
+ plugin => $input->param('plugin'),
};
if ($id) {
$template->param( ediaccounts => \@ediaccounts );
}
+$template->param(
+ code_qualifiers => [
+ {
+ code => '14',
+ description => 'EAN International',
+ },
+ {
+ code => '31B',
+ description => 'US SAN Agency',
+ },
+ {
+ code => '91',
+ description => 'Assigned by supplier',
+ },
+ {
+ code => '92',
+ description => 'Assigned by buyer',
+ },
+ ]
+);
+
output_html_with_http_headers( $input, $cookie, $template->output );
sub get_account {