- osVersion => $osVersion,
- perlVersion => $perlVersion,
- mysqlVersion => $mysqlVersion,
- apacheVersion => $apacheVersion,
- );
+ kohaVersion => $kohaVersion,
+ osVersion => $osVersion,
+ perlPath => $perl_path,
+ perlVersion => $perlVersion,
+ perlIncPath => [ map { perlinc => $_ }, @INC ],
+ mysqlVersion => $mysqlVersion,
+ apacheVersion => $apacheVersion,
+ zebraVersion => $zebraVersion,
+);
+my @component_names =
+ qw/
+Algorithm::CheckDigits
+Biblio::EndnoteStyle
+CGI
+CGI::Carp
+CGI::Session
+CGI::Session::Serialize::yaml
+Class::Factory::Util
+Class::Accessor
+Compress::Zlib
+DBD::mysql
+DBI
+Data::Dumper
+Data::ICal
+Date::Calc
+Date::ICal
+Date::Manip
+Digest::MD5
+Email::Date
+File::Temp
+GD
+GD::Barcode::UPCE
+Getopt::Long
+Getopt::Std
+HTML::Template::Pro
+HTTP::Cookies
+HTTP::OAI
+HTTP::Request::Common
+HTML::Scrubber
+IPC::Cmd
+JSON
+LWP::Simple
+LWP::UserAgent
+Lingua::Stem
+List::Util
+List::MoreUtils
+Locale::Language
+MARC::Crosswalk::DublinCore
+MARC::Charset
+MARC::File::XML
+MARC::Record
+MIME::Base64
+MIME::Lite
+MIME::QuotedPrint
+Mail::Sendmail
+Net::LDAP
+Net::LDAP::Filter
+Net::Z3950::ZOOM
+PDF::API2
+PDF::API2::Page
+PDF::API2::Util
+PDF::Reuse
+PDF::Reuse::Barcode
+POE
+POSIX
+Schedule::At
+SMS::Send
+Term::ANSIColor
+Test
+Test::Harness
+Test::More
+Text::CSV
+Text::CSV_XS
+Text::CSV::Encoded
+Text::Iconv
+Text::Wrap
+Time::HiRes
+Time::localtime
+Unicode::Normalize
+XML::Dumper
+XML::LibXML
+XML::LibXSLT
+XML::SAX::ParserFactory
+XML::SAX::Writer
+XML::Simple
+XML::RSS
+YAML::Syck
+ /;
+
+my @components = ();
+
+my $counter=0;
+foreach my $component ( sort @component_names ) {
+ my $version;
+ if ( eval "require $component" ) {
+ $version = $component->VERSION;
+ if ( $version eq '' ) {
+ $version = 'unknown';
+ }
+ }
+ else {
+ $version = 'module is missing';
+ }
+ push(
+ @components,
+ {
+ name => $component,
+ version => $version,
+ newrow => (++$counter % 4) ? 0 : 1,
+ }
+ );
+}
+
+$template->param( components => \@components );