Filename | /usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/opac-bottom.inc |
Statements | Executed 26 statements in 263µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 66µs | 315µs | __ANON__[:74] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 315µs (66+249) within Template::Document::__ANON__[/usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/opac-bottom.inc:74] which was called:
# once (66µs+249µs) by Template::Document::process at line 151 of Template/Document.pm | ||||
2 | 1 | 3µs | [% opaccredits %] </div> # spent 3µs making 1 call to Template::Stash::XS::get | ||
3 | 9 | 39µs | 1 | 6µs | [% END %] </div> # spent 6µs making 1 call to Template::Stash::XS::get |
4 | |||||
5 | [% IF ( opaclanguagesdisplay || OpacKohaUrl ) %] [% IF ( languages_loop && opaclanguagesdisplay ) %] [% UNLESS ( one_language_enabled ) %] <div id="changelanguage" class="ft"> | ||||
6 | <div class="lang"><strong>Languages: </strong></div> | ||||
7 | 2 | 1µs | <ul id="i18nMenu" class="footermenu"> | ||
8 | [% FOREACH languages_loo IN languages_loop %] [% IF ( languages_loo.group_enabled ) %] [% IF ( languages_loo.plural ) %] <li class="more"><a class="sublangs" id="show[% languages_loo.rfc4646_subtag %]" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a><div id="sub[% languages_loo.rfc4646_subtag %]"> | ||||
9 | <div class="bd"><ul> | ||||
10 | [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %] [% IF ( sublanguages_loo.enabled ) %] [% IF ( sublanguages_loo.sublanguage_current ) %] <li> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</li> | ||||
11 | [% ELSE %] <li><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li> | ||||
12 | [% END %] [% END %] [% END %] </ul></div></div></li> | ||||
13 | |||||
14 | [% ELSE %] [% IF ( languages_loo.group_enabled ) %] [% IF ( languages_loo.current ) %] <li class="morelang">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</li> | ||||
15 | [% ELSE %] <li class="morelang"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li> | ||||
16 | [% END %] [% END %] [% END %] [% END %] [% END %] </ul> | ||||
17 | </div> | ||||
18 | 3 | 6µs | 3 | 10µs | [% END %] [% END %] [% IF ( OpacKohaUrl ) %] <span class="koha_url"> # spent 10µs making 3 calls to Template::Stash::XS::get, avg 3µs/call |
19 | Powered by <strong> | ||||
20 | [% IF template.name.match('opac-main.tt') %] <a class="koha_url" href="http://koha-community.org">Koha</a> | ||||
21 | [% ELSE %] <a class="koha_url" rel="nofollow" href="http://koha-community.org">Koha</a> | ||||
22 | 1 | 134µs | 3 | 280µs | [% END %] </strong> # spent 215µs making 1 call to Template::Stash::XS::get
# spent 46µs making 1 call to Template::VMethods::text_match
# spent 19µs making 1 call to Template::Document::AUTOLOAD |
23 | </span> | ||||
24 | 8 | 45µs | 2 | 6µs | [% END %] [% END %] [% IF persona %] <script src="https://login.persona.org/include.js"></script> # spent 6µs making 2 calls to Template::Stash::XS::get, avg 3µs/call |
25 | <script type="text/javascript" language="javascript"> | ||||
26 | |||||
27 | navigator.id.watch({ | ||||
28 | loggedInUser: [% IF emailaddress && loggedinpersona %]'[% emailaddress %]'[% ELSE %]null[% END %], | ||||
29 | onlogin: function (assertion) { | ||||
30 | $.post('/cgi-bin/koha/svc/login', | ||||
31 | { assertion: assertion }, | ||||
32 | function (data) { | ||||
33 | window.location = '/cgi-bin/koha/opac-user.pl'; | ||||
34 | } | ||||
35 | ) | ||||
36 | .fail(function() { var errstr = _("Could not login, perhaps your Persona email does not match your Koha one"); | ||||
37 | alert(errstr); | ||||
38 | }); | ||||
39 | }, | ||||
40 | onlogout: function () { | ||||
41 | window.location = '/cgi-bin/koha/opac-main.pl?logout.x=1'; | ||||
42 | } | ||||
43 | }); | ||||
44 | |||||
45 | var signinLink = document.getElementById('browserid'); | ||||
46 | |||||
47 | if (signinLink) { | ||||
48 | signinLink.onclick = function(evt) { | ||||
49 | // Requests a signed identity assertion from the user. | ||||
50 | navigator.id.request({ | ||||
51 | siteName: "[% LibraryName | html %]", | ||||
52 | returnTo: '/cgi-bin/koha/opac-user.pl', | ||||
53 | oncancel: function() { alert('user refuses to share identity.'); } | ||||
54 | }); | ||||
55 | }; | ||||
56 | } | ||||
57 | |||||
58 | </script> | ||||
59 | 1 | 5µs | [% END %] </body> # spent 5µs making 1 call to Template::Stash::XS::get | ||
60 | </html> | ||||
61 | |||||
- - | |||||
68 | 1 | 300ns | |||
- - | |||||
73 | 1 | 13µs | |||
- - | |||||
76 | 1 | 25µs |