Bug 12790 - Perl modules: Display required version numbers on about page
authorMarc Véron <veron@veron.ch>
Thu, 7 Aug 2014 05:45:34 +0000 (07:45 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 5 Sep 2014 13:16:17 +0000 (10:16 -0300)
This patch adds information about required perl module versions to the
'About' page.

To test:
Apply patch.
In staff client, go to 'About', tab 'Perl modules'
The required version numbers should display in small print next to or
underneath the module names.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

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

index b197cd3..d144e37 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -161,6 +161,7 @@ foreach my $pm_type(@pm_types) {
                 upgrade => ($pm_type eq 'upgrade_pm' ? 1 : 0),
                 current => ($pm_type eq 'current_pm' ? 1 : 0),
                 require => $stats->{'required'},
+                reqversion => $stats->{'min_ver'},
             }
         );
     }
index 30de558..e2422f0 100644 (file)
@@ -83,7 +83,9 @@
                     <th scope="row" style="background-color:#FF8A8A;font-weight:normal" title="Optional module missing">
                     [% END %]
                     [% END %]
-                    [% ro.name %]
+                    [% IF ( ro.name ) %]
+                    [% ro.name %] <span style="font-weight:normal; font-size:smaller"> ([%ro.reqversion %])</span>
+                    [% END %]
                     </th>
                     [% IF ( ro.name == '' ) %]
                     <td>