3 # Copyright Pat Eyler 2003
4 # Copyright Biblibre 2006
5 # Parts Copyright Liblime 2008
6 # Parts Copyright Chris Nighswonger 2010
8 # This file is part of Koha.
10 # Koha is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 3 of the License, or
13 # (at your option) any later version.
15 # Koha is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with Koha; if not, see <http://www.gnu.org/licenses>.
26 use DateTime::TimeZone;
29 use List::MoreUtils qw/ any /;
31 use Module::Load::Conditional qw(can_load);
34 use Search::Elasticsearch;
42 use C4::Installer::PerlModules;
45 use Koha::DateUtils qw(dt_from_string output_pref);
46 use Koha::Acquisition::Currencies;
47 use Koha::BackgroundJob;
48 use Koha::BiblioFrameworks;
50 use Koha::Patron::Categories;
53 use Koha::Config::SysPrefs;
54 use Koha::Illrequest::Config;
55 use Koha::SearchEngine::Elasticsearch;
57 use Koha::Filter::MARC::ViewPolicy;
59 use C4::Members::Statistics;
62 #use Smart::Comments '####';
65 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
67 template_name => "about.tt",
70 flagsrequired => { catalogue => 1 },
75 my $config_timezone = C4::Context->config('timezone') // '';
76 my $config_invalid = !DateTime::TimeZone->is_valid_name( $config_timezone );
77 my $env_timezone = $ENV{TZ} // '';
78 my $env_invalid = !DateTime::TimeZone->is_valid_name( $env_timezone );
79 my $actual_bad_tz_fallback = 0;
81 if ( $config_timezone ne '' &&
84 $actual_bad_tz_fallback = 1;
86 elsif ( $config_timezone eq '' &&
87 $env_timezone ne '' &&
89 # No config, but bad ENV{TZ}
90 $actual_bad_tz_fallback = 1;
94 actual => C4::Context->tz->name,
95 actual_bad_tz_fallback => $actual_bad_tz_fallback,
96 config => $config_timezone,
97 config_invalid => $config_invalid,
98 environment => $env_timezone,
99 environment_invalid => $env_invalid
103 my $log4perl_config = C4::Context->config("log4perl_conf");
105 if ( ! $log4perl_config ) {
106 push @log4perl_errors, 'missing_config_entry'
109 my @lines = read_file($log4perl_config) or push @log4perl_errors, 'cannot_read_config_file';
110 for my $line ( @lines ) {
111 next unless $line =~ m|log4perl.appender.\w+.filename=(.*)|;
112 push @log4perl_errors, 'logfile_not_writable' unless -w $1;
115 eval {Koha::Logger->get};
116 push @log4perl_errors, 'cannot_init_module' and warn $@ if $@;
117 $template->param( log4perl_errors => @log4perl_errors );
121 time_zone => $time_zone,
122 current_date_and_time => output_pref({ dt => dt_from_string(), dateformat => 'iso' })
127 $perl_path .= $Config{_exe} unless $perl_path =~ m/$Config{_exe}$/i;
130 my $zebraVersion = `zebraidx -V`;
132 # Check running PSGI env
133 if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
136 psgi_server => ($ENV{ PLACK_ENV }) ? "Plack ($ENV{PLACK_ENV})" :
137 ($ENV{ MOD_PERL }) ? "mod_perl ($ENV{MOD_PERL})" :
142 # Memcached configuration
143 my $memcached_servers = $ENV{MEMCACHED_SERVERS} || C4::Context->config('memcached_servers');
144 my $memcached_namespace = $ENV{MEMCACHED_NAMESPACE} || C4::Context->config('memcached_namespace') // 'koha';
146 my $cache = Koha::Caches->get_instance;
147 my $effective_caching_method = ref($cache->cache);
148 # Memcached may have been running when plack has been initialized but could have been stopped since
149 # FIXME What are the consequences of that??
150 my $is_memcached_still_active = $cache->set_in_cache('test_for_about_page', "just a simple value");
152 my $where_is_memcached_config = 'nowhere';
153 if ( $ENV{MEMCACHED_SERVERS} and C4::Context->config('memcached_servers') ) {
154 $where_is_memcached_config = 'both';
155 } elsif ( $ENV{MEMCACHED_SERVERS} and not C4::Context->config('memcached_servers') ) {
156 $where_is_memcached_config = 'ENV_only';
157 } elsif ( C4::Context->config('memcached_servers') ) {
158 $where_is_memcached_config = 'config_only';
162 effective_caching_method => $effective_caching_method,
163 memcached_servers => $memcached_servers,
164 memcached_namespace => $memcached_namespace,
165 is_memcached_still_active => $is_memcached_still_active,
166 where_is_memcached_config => $where_is_memcached_config,
167 memcached_running => Koha::Caches->get_instance->memcached_cache,
170 # Additional system information for warnings
172 my $warnStatisticsFieldsError;
173 my $prefStatisticsFields = C4::Context->preference('StatisticsFields');
174 if ($prefStatisticsFields) {
175 $warnStatisticsFieldsError = $prefStatisticsFields
176 unless ( $prefStatisticsFields eq C4::Members::Statistics->get_fields() );
179 my $prefAutoCreateAuthorities = C4::Context->preference('AutoCreateAuthorities');
180 my $prefBiblioAddsAuthorities = C4::Context->preference('BiblioAddsAuthorities');
181 my $warnPrefBiblioAddsAuthorities = ( $prefAutoCreateAuthorities && ( !$prefBiblioAddsAuthorities) );
183 my $prefEasyAnalyticalRecords = C4::Context->preference('EasyAnalyticalRecords');
184 my $prefUseControlNumber = C4::Context->preference('UseControlNumber');
185 my $warnPrefEasyAnalyticalRecords = ( $prefEasyAnalyticalRecords && $prefUseControlNumber );
187 my $AnonymousPatron = C4::Context->preference('AnonymousPatron');
188 my $warnPrefAnonymousPatronOPACPrivacy = (
189 C4::Context->preference('OPACPrivacy')
190 and not $AnonymousPatron
192 my $warnPrefAnonymousPatronAnonSuggestions = (
193 C4::Context->preference('AnonSuggestions')
194 and not $AnonymousPatron
197 my $anonymous_patron = Koha::Patrons->find( $AnonymousPatron );
198 my $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist = ( $AnonymousPatron && C4::Context->preference('AnonSuggestions') && not $anonymous_patron );
200 my $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist = ( not $anonymous_patron and Koha::Patrons->search({ privacy => 2 })->count );
202 my $warnPrefKohaAdminEmailAddress = not Email::Valid->address(C4::Context->preference('KohaAdminEmailAddress'));
204 my $c = Koha::Items->filter_by_visible_in_opac->count;
205 my @warnings = C4::Context->dbh->selectrow_array('SHOW WARNINGS');
206 my $warnPrefOpacHiddenItems = $warnings[2];
208 my $invalid_yesno = Koha::Config::SysPrefs->search(
211 value => { -or => { 'is' => undef, -not_in => [ "1", "0" ] } }
214 $template->param( invalid_yesno => $invalid_yesno );
216 my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
218 my $warnIsRootUser = (! $loggedinuser);
220 my $warnNoActiveCurrency = (! defined Koha::Acquisition::Currencies->get_active);
222 my @xml_config_warnings;
224 my $context = C4::Context->new;
226 if ( C4::Context->config('zebra_bib_index_mode')
227 and C4::Context->config('zebra_bib_index_mode') eq 'grs1' )
229 push @xml_config_warnings, { error => 'zebra_bib_index_mode_is_grs1' };
232 if ( C4::Context->config('zebra_auth_index_mode')
233 and C4::Context->config('zebra_auth_index_mode') eq 'grs1' )
235 push @xml_config_warnings, { error => 'zebra_auth_index_mode_is_grs1' };
238 if( ( C4::Context->config('zebra_auth_index_mode')
239 and C4::Context->config('zebra_auth_index_mode') eq 'dom' )
240 && ( $context->{'server'}->{'authorityserver'}->{'config'} !~ /zebra-authorities-dom.cfg/ ) )
242 push @xml_config_warnings, {
243 error => 'zebra_auth_index_mode_mismatch_warn'
247 if ( ! defined C4::Context->config('log4perl_conf') ) {
248 push @xml_config_warnings, {
249 error => 'log4perl_entry_missing'
253 if ( ! defined C4::Context->config('lockdir') ) {
254 push @xml_config_warnings, {
255 error => 'lockdir_entry_missing'
259 unless ( -w C4::Context->config('lockdir') ) {
260 push @xml_config_warnings, {
261 error => 'lockdir_not_writable',
262 lockdir => C4::Context->config('lockdir')
267 if ( ! defined C4::Context->config('upload_path') ) {
268 if ( Koha::Config::SysPrefs->find('OPACBaseURL')->value ) {
269 # OPACBaseURL seems to be set
270 push @xml_config_warnings, {
271 error => 'uploadpath_entry_missing'
274 push @xml_config_warnings, {
275 error => 'uploadpath_and_opacbaseurl_entry_missing'
280 if ( ! C4::Context->config('tmp_path') ) {
281 my $temporary_directory = C4::Context::temporary_directory;
282 push @xml_config_warnings, {
283 error => 'tmp_path_missing',
284 effective_tmp_dir => $temporary_directory,
288 # Test Zebra facets configuration
289 if ( !defined C4::Context->config('use_zebra_facets') ) {
290 push @xml_config_warnings, { error => 'use_zebra_facets_entry_missing' };
294 if ( C4::Context->preference('ILLModule') ) {
295 my $warnILLConfiguration = 0;
296 my $ill_config_from_file = C4::Context->config("interlibrary_loans");
297 my $ill_config = Koha::Illrequest::Config->new;
299 my $available_ill_backends =
300 ( scalar @{ $ill_config->available_backends } > 0 );
303 if ( !$available_ill_backends ) {
304 $template->param( no_ill_backends => 1 );
305 $warnILLConfiguration = 1;
309 if ( !Koha::Patron::Categories->find($ill_config->partner_code) ) {
310 $template->param( ill_partner_code_doesnt_exist => $ill_config->partner_code );
311 $warnILLConfiguration = 1;
314 if ( !$ill_config_from_file->{partner_code} ) {
315 # partner code not defined
316 $template->param( ill_partner_code_not_defined => 1 );
317 $warnILLConfiguration = 1;
321 if ( !$ill_config_from_file->{branch} ) {
323 $template->param( ill_branch_not_defined => 1 );
324 $warnILLConfiguration = 1;
327 $template->param( warnILLConfiguration => $warnILLConfiguration );
330 if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
331 # Check ES configuration health and runtime status
339 $es_conf = Koha::SearchEngine::Elasticsearch::_read_configuration();
342 if ( ref($_) eq 'Koha::Exceptions::Config::MissingEntry' ) {
343 $template->param( elasticsearch_fatal_config_error => $_->message );
344 $es_config_error = 1;
347 if ( !$es_config_error ) {
349 my $biblios_index_name = $es_conf->{index_name} . "_" . $Koha::SearchEngine::BIBLIOS_INDEX;
350 my $authorities_index_name = $es_conf->{index_name} . "_" . $Koha::SearchEngine::AUTHORITIES_INDEX;
352 my @indexes = ($biblios_index_name, $authorities_index_name);
353 # TODO: When new indexes get added, we could have other ways to
354 # fetch the list of available indexes (e.g. plugins, etc)
355 $es_status->{nodes} = $es_conf->{nodes};
356 my $es = Search::Elasticsearch->new({ nodes => $es_conf->{nodes} });
357 my $es_status->{version} = $es->info->{version}->{number};
359 foreach my $index ( @indexes ) {
362 $count = $es->indices->stats( index => $index )
363 ->{_all}{primaries}{docs}{count};
366 if ( ref($_) eq 'Search::Elasticsearch::Error::Missing' ) {
367 push @{ $es_status->{errors} }, "Index not found ($index)";
370 elsif ( ref($_) eq 'Search::Elasticsearch::Error::NoNodes' ) {
374 # TODO: when time comes, we will cover more use cases
379 push @{ $es_status->{indexes} },
381 index_name => $index,
385 $es_status->{running} = $es_running;
387 $template->param( elasticsearch_status => $es_status );
391 if ( C4::Context->preference('RESTOAuth2ClientCredentials') ) {
392 # Do we have the required deps?
393 unless ( can_load( modules => { 'Net::OAuth2::AuthorizationServer' => undef }) ) {
394 $template->param( oauth2_missing_deps => 1 );
398 # Sco Patron should not contain any other perms than circulate => self_checkout
399 if ( C4::Context->preference('WebBasedSelfCheck')
400 and C4::Context->preference('AutoSelfCheckAllowed')
402 my $userid = C4::Context->preference('AutoSelfCheckID');
403 my $all_permissions = C4::Auth::get_user_subpermissions( $userid );
404 my ( $has_self_checkout_perm, $has_other_permissions );
405 while ( my ( $module, $permissions ) = each %$all_permissions ) {
406 if ( $module eq 'self_check' ) {
407 while ( my ( $permission, $flag ) = each %$permissions ) {
408 if ( $permission eq 'self_checkout_module' ) {
409 $has_self_checkout_perm = 1;
411 $has_other_permissions = 1;
415 $has_other_permissions = 1;
419 AutoSelfCheckPatronDoesNotHaveSelfCheckPerm => not ( $has_self_checkout_perm ),
420 AutoSelfCheckPatronHasTooManyPerm => $has_other_permissions,
424 if ( C4::Context->preference('EnablePayPalOpacPayments') ) {
425 $template->param( paypal_enabled => 1 );
428 # Test YAML system preferences
429 # FIXME: This is list of current YAML formatted prefs, should by type of preference
431 "UpdateNotForLoanStatusOnCheckin",
433 "BibtexExportAdditionalFields",
434 "RisExportAdditionalFields",
435 "UpdateItemWhenLostFromHoldList",
437 "MarcItemFieldsToOrder",
438 "UpdateitemLocationOnCheckin",
442 foreach my $syspref (@yaml_prefs) {
443 my $yaml = C4::Context->preference( $syspref );
445 eval { YAML::XS::Load( Encode::encode_utf8("$yaml\n\n") ); };
447 push @bad_yaml_prefs, $syspref;
451 $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs;
454 my $dbh = C4::Context->dbh;
455 my $patrons = $dbh->selectall_arrayref(
456 q|select b.borrowernumber from borrowers b join deletedborrowers db on b.borrowernumber=db.borrowernumber|,
459 my $biblios = $dbh->selectall_arrayref(
460 q|select b.biblionumber from biblio b join deletedbiblio db on b.biblionumber=db.biblionumber|,
463 my $items = $dbh->selectall_arrayref(
464 q|select i.itemnumber from items i join deleteditems di on i.itemnumber=di.itemnumber|,
467 my $checkouts = $dbh->selectall_arrayref(
468 q|select i.issue_id from issues i join old_issues oi on i.issue_id=oi.issue_id|,
471 my $holds = $dbh->selectall_arrayref(
472 q|select r.reserve_id from reserves r join old_reserves o on r.reserve_id=o.reserve_id|,
475 if ( @$patrons or @$biblios or @$items or @$checkouts or @$holds ) {
478 ai_patrons => $patrons,
479 ai_biblios => $biblios,
481 ai_checkouts => $checkouts,
489 my $dbh = C4::Context->dbh;
490 my $units = Koha::CirculationRules->search({ rule_name => 'lengthunit', rule_value => { -not_in => ['days', 'hours'] } });
492 if ( $units->count ) {
494 warnIssuingRules => 1,
500 # Guarantor relationships warnings
502 my $dbh = C4::Context->dbh;
503 my ($bad_relationships_count) = $dbh->selectall_arrayref(q{
506 SELECT relationship FROM borrower_relationships WHERE relationship='_bad_data'
508 SELECT relationship FROM borrowers WHERE relationship='_bad_data') a
511 $bad_relationships_count = $bad_relationships_count->[0]->[0];
513 my $existing_relationships = $dbh->selectall_arrayref(q{
514 SELECT DISTINCT(relationship)
516 SELECT relationship FROM borrower_relationships WHERE relationship IS NOT NULL
518 SELECT relationship FROM borrowers WHERE relationship IS NOT NULL) a
521 my %valid_relationships = map { $_ => 1 } split( /,|\|/, C4::Context->preference('borrowerRelationship') );
522 $valid_relationships{ _bad_data } = 1; # we handle this case in another way
524 my $wrong_relationships = [ grep { !$valid_relationships{ $_->[0] } } @{$existing_relationships} ];
525 if ( @$wrong_relationships or $bad_relationships_count ) {
528 warnRelationships => 1,
531 if ( $wrong_relationships ) {
533 wrong_relationships => $wrong_relationships
536 if ($bad_relationships_count) {
538 bad_relationships_count => $bad_relationships_count,
545 # Test 'bcrypt_settings' config for Pseudonymization
546 $template->param( config_bcrypt_settings_no_set => 1 )
547 if C4::Context->preference('Pseudonymization')
548 and not C4::Context->config('bcrypt_settings');
552 my @frameworkcodes = Koha::BiblioFrameworks->search->get_column('frameworkcode');
553 my @hidden_biblionumbers;
554 push @frameworkcodes, ""; # it's not in the biblio_frameworks table!
555 for my $frameworkcode ( @frameworkcodes ) {
556 my $shouldhidemarc_opac = Koha::Filter::MARC::ViewPolicy->should_hide_marc(
558 frameworkcode => $frameworkcode,
562 push @hidden_biblionumbers, { frameworkcode => $frameworkcode, interface => 'opac' }
563 if $shouldhidemarc_opac->{biblionumber};
565 my $shouldhidemarc_intranet = Koha::Filter::MARC::ViewPolicy->should_hide_marc(
567 frameworkcode => $frameworkcode,
568 interface => "intranet"
571 push @hidden_biblionumbers, { frameworkcode => $frameworkcode, interface => 'intranet' }
572 if $shouldhidemarc_intranet->{biblionumber};
574 $template->param( warnHiddenBiblionumbers => \@hidden_biblionumbers );
578 # BackgroundJob - test connection to message broker
580 Koha::BackgroundJob->connect;
584 $template->param( warnConnectBroker => $@ );
588 my %versions = C4::Context::get_versions();
591 kohaVersion => $versions{'kohaVersion'},
592 osVersion => $versions{'osVersion'},
593 perlPath => $perl_path,
594 perlVersion => $versions{'perlVersion'},
595 perlIncPath => [ map { perlinc => $_ }, @INC ],
596 mysqlVersion => $versions{'mysqlVersion'},
597 apacheVersion => $versions{'apacheVersion'},
598 zebraVersion => $zebraVersion,
599 prefBiblioAddsAuthorities => $prefBiblioAddsAuthorities,
600 prefAutoCreateAuthorities => $prefAutoCreateAuthorities,
601 warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities,
602 warnPrefEasyAnalyticalRecords => $warnPrefEasyAnalyticalRecords,
603 warnPrefAnonymousPatronOPACPrivacy => $warnPrefAnonymousPatronOPACPrivacy,
604 warnPrefAnonymousPatronAnonSuggestions => $warnPrefAnonymousPatronAnonSuggestions,
605 warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist => $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist,
606 warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist => $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist,
607 warnPrefKohaAdminEmailAddress => $warnPrefKohaAdminEmailAddress,
608 warnPrefOpacHiddenItems => $warnPrefOpacHiddenItems,
609 errZebraConnection => $errZebraConnection,
610 warnIsRootUser => $warnIsRootUser,
611 warnNoActiveCurrency => $warnNoActiveCurrency,
612 warnNoTemplateCaching => ( C4::Context->config('template_cache_dir') ? 0 : 1 ),
613 xml_config_warnings => \@xml_config_warnings,
614 warnStatisticsFieldsError => $warnStatisticsFieldsError,
619 my $perl_modules = C4::Installer::PerlModules->new;
620 $perl_modules->versions_info;
622 my @pm_types = qw(missing_pm upgrade_pm current_pm);
624 foreach my $pm_type(@pm_types) {
625 my $modules = $perl_modules->get_attr($pm_type);
626 foreach (@$modules) {
627 my ($module, $stats) = each %$_;
632 version => $stats->{'cur_ver'},
633 missing => ($pm_type eq 'missing_pm' ? 1 : 0),
634 upgrade => ($pm_type eq 'upgrade_pm' ? 1 : 0),
635 current => ($pm_type eq 'current_pm' ? 1 : 0),
636 require => $stats->{'required'},
637 reqversion => $stats->{'min_ver'},
638 maxversion => $stats->{'max_ver'},
639 excversion => $stats->{'exc_ver'}
645 @components = sort {$a->{'name'} cmp $b->{'name'}} @components;
650 foreach (@components) {
652 unless (++$counter % 4) {
653 push (@$table, {row => $row});
657 # Processing the last line (if there are any modules left)
658 if (scalar(@$row) > 0) {
659 # Extending $row to the table size
661 # Pushing the last line
662 push (@$table, {row => $row});
666 $template->param( table => $table );
669 ## ------------------------------------------
670 ## Koha contributions
672 if ( defined C4::Context->config('docdir') ) {
673 $docdir = C4::Context->config('docdir');
675 # if no <docdir> is defined in koha-conf.xml, use the default location
676 # this is a work-around to stop breakage on upgraded Kohas, bug 8911
677 $docdir = C4::Context->config('intranetdir') . '/docs';
682 -e "$docdir" . "/teams.yaml"
683 ? YAML::XS::LoadFile( "$docdir" . "/teams.yaml" )
685 my $dev_team = (sort {$b <=> $a} (keys %{$teams->{team}}))[0];
686 my $short_version = substr($versions{'kohaVersion'},0,5);
687 my $minor = substr($versions{'kohaVersion'},3,2);
688 my $development_version = ( $minor eq '05' || $minor eq '11' ) ? 0 : 1;
689 $template->param( short_version => $short_version );
690 $template->param( development_version => $development_version );
694 -e "$docdir" . "/contributors.yaml"
695 ? YAML::XS::LoadFile( "$docdir" . "/contributors.yaml" )
697 for my $version ( sort { $a <=> $b } keys %{$teams->{team}} ) {
698 for my $role ( keys %{ $teams->{team}->{$version} } ) {
699 my $normalized_role = "$role";
700 $normalized_role =~ s/s$//;
701 if ( ref( $teams->{team}->{$version}->{$role} ) eq 'ARRAY' ) {
702 for my $contributor ( @{ $teams->{team}->{$version}->{$role} } ) {
703 my $name = $contributor->{name};
704 # Add role to contributors
705 push @{ $contributors->{$name}->{roles}->{$normalized_role} },
707 # Add openhub to teams
708 if ( exists( $contributors->{$name}->{openhub} ) ) {
709 $contributor->{openhub} = $contributors->{$name}->{openhub};
713 elsif ( $role ne 'release_date' ) {
714 my $name = $teams->{team}->{$version}->{$role}->{name};
715 # Add role to contributors
716 push @{ $contributors->{$name}->{roles}->{$normalized_role} },
718 # Add openhub to teams
719 if ( exists( $contributors->{$name}->{openhub} ) ) {
720 $teams->{team}->{$version}->{$role}->{openhub} =
721 $contributors->{$name}->{openhub};
725 $teams->{team}->{$version}->{$role} = DateTime->from_epoch( epoch => $teams->{team}->{$version}->{$role});
730 ## Create last name ordered array of people from contributors
732 { name => $_, ( $contributors->{$_} ? %{ $contributors->{$_} } : () ) }
734 my ($alast) = ( split( /\s/, $a ) )[-1];
735 my ($blast) = ( split( /\s/, $b ) )[-1];
736 lc($alast) cmp lc($blast)
737 } keys %{$contributors};
739 $template->param( contributors => \@people );
740 $template->param( maintenance_team => $teams->{team}->{$dev_team} );
741 $template->param( release_team => $teams->{team}->{$short_version} );
744 if ( open( my $file, "<:encoding(UTF-8)", "$docdir" . "/history.txt" ) ) {
754 shift @lines; #remove header row
757 my ( $epoch, $date, $desc, $tag ) = split(/\t/);
758 if(!$desc && $date=~ /(?<=\d{4})\s+/) {
759 ($date, $desc)= ($`, $');
771 #foreach my $row2 (@rows2) {
774 push( @$table2, { row2 => $row2 } );
778 $template->param( table2 => $table2 );
780 $template->param( timeline_read_error => 1 );
783 output_html_with_http_headers $query, $cookie, $template->output;