improvement: on the About page, a caption was added to the table of Perl
authorplg <plg>
Thu, 16 Mar 2006 11:33:28 +0000 (11:33 +0000)
committerplg <plg>
Thu, 16 Mar 2006 11:33:28 +0000 (11:33 +0000)
modules and modules are now listed in alphabetic order.

about.pl
koha-tmpl/intranet-tmpl/prog/en/about.tmpl

index e4c1d7c..cae86ff 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -38,15 +38,17 @@ $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   ZOOM
+      /;
 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 +60,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(
index 8d232ba..b81bf34 100644 (file)
@@ -15,6 +15,7 @@
 </table>
 
 <table>
+        <caption>Perl modules</caption>
        <!-- TMPL_LOOP name="components" -->
        <tr>
          <th scope="row"><!-- TMPL_VAR NAME="name" --></th>