Code to display list of organisations/institutions if memberofinstitution is set...
[koha_fer] / about.pl
index e4c1d7c..e6fd25a 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -28,6 +28,7 @@ my $mysqlVersion = `mysql -V`;
 my $apacheVersion =  `httpd -v`;
 $apacheVersion =  `httpd2 -v` unless $apacheVersion;
 my $zebraVersion = `zebraidx -V`;
+# $apacheVersion =  (`/usr/sbin/apache2 -V`)[0];
 
 $template->param(
                                        kohaVersion => $kohaVersion,
@@ -38,15 +39,19 @@ $template->param(
                                         zebraVersion       => $zebraVersion,
                );
 
+my @component_names =
+    qw/MARC::File::XML   MARC::Charset     Class::Accessor
+       LWP::Simple       XML::Simple       Net::Z3950
+       Event             Net::LDAP         PDF::API2
+       Mail::Sendmail    MARC::Record      Digest::MD5
+       HTML::Template    DBD::mysql        Date::Manip
+       DBI               Smart::Comments   Net::Z3950::ZOOM
+       Date::Calc
+      /;
+
 my @components = ();
 
-foreach my $component (qw/MARC::File::XML   MARC::Charset   Class::Accessor
-                          LWP::Simple       XML::Simple     Net::Z3950
-                          Event             Net::LDAP       PDF::API2
-                          Mail::Sendmail    MARC::Record    Digest::MD5
-                          HTML::Template    DBD::mysql      Date::Manip
-                          DBI               Smart::Comments ZOOM
-                         /) {
+foreach my $component (sort @component_names) {
     my $version;
     if (eval "require $component") {
         $version = $component->VERSION;
@@ -58,11 +63,13 @@ foreach my $component (qw/MARC::File::XML   MARC::Charset   Class::Accessor
         $version = 'module is missing';
     }
 
-    push @components,
+    push (
+        @components,
         {
-        name    => $component,
-        version => $version,
-    };
+            name    => $component,
+            version => $version,
+        }
+    );
 }
 
 $template->param(