View | Details | Raw Unified | Return to bug 40813
Collapse All | Expand All

(-)a/C4/Auth.pm (+3 lines)
Lines 189-194 Output.pm module. Link Here
189
=cut
189
=cut
190
190
191
sub get_template_and_user {
191
sub get_template_and_user {
192
    my $start_time = dt_from_string;
192
193
193
    my $in = shift;
194
    my $in = shift;
194
    my ( $user, $cookie, $sessionID, $flags );
195
    my ( $user, $cookie, $sessionID, $flags );
Lines 692-697 sub get_template_and_user { Link Here
692
    $template->param( logged_in_user => $patron );
693
    $template->param( logged_in_user => $patron );
693
    $template->param( sessionID      => $sessionID );
694
    $template->param( sessionID      => $sessionID );
694
695
696
    $template->param( start_time => $start_time );
697
695
    return ( $template, $borrowernumber, $cookie, $flags );
698
    return ( $template, $borrowernumber, $cookie, $flags );
696
}
699
}
697
700
(-)a/installer/data/mysql/atomicupdate/bug_40813.pl (+21 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "40813",
6
    description => "Add new system preference DumpTemplateLoadTimes",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
14
            ('DumpTemplateLoadTimes', '0', NULL, 'If enabled, dump the start and end times of each page load in the template footer', 'YesNo')
15
        }
16
        );
17
18
        # Other information
19
        say_success( $out, "Added new system preference DumpTemplateLoadTimes" );
20
    },
21
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +2 lines)
Lines 230-235 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
230
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
230
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
231
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
231
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
232
('DumpSearchQueryTemplate',0,'','Add the search query being passed to the search engine into the template for debugging','YesNo'),
232
('DumpSearchQueryTemplate',0,'','Add the search query being passed to the search engine into the template for debugging','YesNo'),
233
('DumpTemplateLoadTimes',  '0', NULL ,  'If enabled, dump the start and end times of each page load in the template footer',  'YesNo'),
233
('DumpTemplateVarsIntranet',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',  'YesNo'),
234
('DumpTemplateVarsIntranet',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',  'YesNo'),
234
('DumpTemplateVarsOpac',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',  'YesNo'),
235
('DumpTemplateVarsOpac',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',  'YesNo'),
235
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
236
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
Lines 891-894 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
891
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
892
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
892
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
893
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
893
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
894
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
894
;
895
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc (+18 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaPlugins %]
4
[% USE KohaPlugins %]
4
[% USE Asset %]
5
[% USE Asset %]
5
[% USE AdditionalContents %]
6
[% USE AdditionalContents %]
Lines 192-197 Link Here
192
[% END %]
193
[% END %]
193
[% KohaPlugins.get_plugins_intranet_js | $raw %]
194
[% KohaPlugins.get_plugins_intranet_js | $raw %]
194
195
196
[% IF start_time %]
197
<footer class="footer">
198
  <div class="container">
199
        <span class="navbar-text start_time" data-start="[% start_time %]">
200
            <span class="badge text-bg-info">Start</span>
201
            [% start_time.hms(':') %]
202
        </span>
203
        [%- SET end_time = KohaDates.datetime_from_string %]
204
        <span class="navbar-text end_time" data-end="[% end_time %]">
205
            <span class="badge text-bg-primary">End</span>
206
            [% end_time.hms(':') %]
207
        </span>
208
  </div>
209
</footer>
210
[% END %]
211
212
195
</body>
213
</body>
196
<!-- prettier-ignore-start -->
214
<!-- prettier-ignore-start -->
197
</html>
215
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref (-1 / +6 lines)
Lines 134-139 Logging: Link Here
134
            - item transfers.
134
            - item transfers.
135
135
136
    Debugging:
136
    Debugging:
137
        -
138
            - pref: DumpTemplateLoadTimes
139
              choices:
140
                  1: Do
141
                  0: "Don't"
142
            - dump the start and end times of each page/template in the HTML footer.
137
        -
143
        -
138
            - "When logging actions, store a stack trace that goes at most"
144
            - "When logging actions, store a stack trace that goes at most"
139
            - pref: "ActionLogsTraceDepth"
145
            - pref: "ActionLogsTraceDepth"
140
- 

Return to bug 40813