Filename | /usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/opac-bottom.inc |
Statements | Executed 26 statements in 242µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 90µs | 296µs | __ANON__[:74] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 296µs (90+206) within Template::Document::__ANON__[/usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/opac-bottom.inc:74] which was called:
# once (90µs+206µs) by Template::Document::process at line 151 of Template/Document.pm | ||||
2 | 1 | 6µs | [% opaccredits %] </div> # spent 6µs making 1 call to Template::Stash::XS::get | ||
3 | 9 | 62µs | 1 | 8µs | [% END %] </div> # spent 8µ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 | 2µ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 | 8µs | 3 | 14µs | [% END %] [% END %] [% IF ( OpacKohaUrl ) %] <span class="koha_url"> # spent 14µs making 3 calls to Template::Stash::XS::get, avg 4µ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 | 26µs | 3 | 229µs | [% END %] </strong> # spent 156µs making 1 call to Template::Stash::XS::get
# spent 37µs making 1 call to Template::VMethods::text_match
# spent 35µs making 1 call to Template::Document::AUTOLOAD |
23 | </span> | ||||
24 | 8 | 95µs | 2 | 10µs | [% END %] [% END %] [% IF persona %] <script src="https://login.persona.org/include.js"></script> # spent 10µs making 2 calls to Template::Stash::XS::get, avg 5µ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 | 8µs | |||
- - | |||||
76 | 1 | 41µs |