my $short_version = substr($versions{'kohaVersion'},0,5);
my $minor = substr($versions{'kohaVersion'},3,2);
my $development_version = ( $minor eq '05' || $minor eq '11' ) ? 0 : 1;
+my $codename;
$template->param( short_version => $short_version );
$template->param( development_version => $development_version );
}
}
}
- elsif ( $role ne 'release_date' ) {
+ elsif ( $role eq 'release_date' ) {
+ $teams->{team}->{$version}->{$role} = DateTime->from_epoch( epoch => $teams->{team}->{$version}->{$role});
+ }
+ elsif ( $role eq 'codename' ) {
+ if ( $version == $short_version ) {
+ $codename = $teams->{team}->{$version}->{$role};
+ }
+ next;
+ }
+ else {
my $name = $teams->{team}->{$version}->{$role}->{name};
# Add role to contributors
push @{ $contributors->{$name}->{roles}->{$normalized_role} },
$contributors->{$name}->{openhub};
}
}
- else {
- $teams->{team}->{$version}->{$role} = DateTime->from_epoch( epoch => $teams->{team}->{$version}->{$role});
- }
}
}
lc($a2last||"") cmp lc($b2last||"");
} keys %$contributors;
+$template->param( kohaCodename => $codename);
$template->param( contributors => \@people );
$template->param( maintenance_team => $teams->{team}->{$dev_team} );
$template->param( release_team => $teams->{team}->{$short_version} );
<table>
<caption>Server information</caption>
- <tr><th scope="row">Koha version: </th><td>[% kohaVersion | html %]</td></tr>
+ <tr><th scope="row">Koha version: </th><td>[% kohaVersion | html %][% IF kohaCodename %] <strong>[% kohaCodename | html %]</strong>[% END %]</td></tr>
<tr><th scope="row">OS version ('uname -a'): </th><td>[% osVersion | html %]</td></tr>
<tr><th scope="row">Perl interpreter: </th><td>[% perlPath | html %]</td></tr>
<tr><th scope="row">Perl version: </th><td>[% perlVersion | html %]</td></tr>
[% IF maintenance_team %]
<div class="row">
<div class="col-md-6">
- <h3>Koha [% short_version | html %] release team</h3>
+ <h3>Koha [% short_version | html %][% IF kohaCodename %] ([% kohaCodename | html %])[% END %] release team</h3>
[% IF development_version %]
<p>You are running a development version of Koha</p>
[% ELSE %]