Filename | /usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/masthead.inc |
Statements | Executed 226 statements in 1.02ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 562µs | 3.38ms | __ANON__[:111] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 3.38ms (562µs+2.82) within Template::Document::__ANON__[/usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/masthead.inc:111] which was called:
# once (562µs+2.82ms) by Template::Document::process at line 151 of Template/Document.pm | ||||
2 | [% IF ( opacuserlogin ) %] <ul> | ||||
3 | 1 | 12µs | 2 | 24µs | [% UNLESS ( loggedinusername ) %] <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>[% END %] [% IF ( loggedinusername ) %] <li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</span></a></span></li> # spent 18µs making 1 call to Template::Stash::XS::get
# spent 7µs making 1 call to Template::Stash::undefined |
4 | |||||
5 | 1 | 9µs | 2 | 12µs | [% END %] [% IF ( ShowOpacRecentSearchLink ) %] <li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a class="logout" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history" onclick="return confirm(MSG_DELETE_SEARCH_HISTORY);">x</a>]</li> # spent 10µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
6 | 2 | 15µs | 3 | 16µs | [% END %] [% IF ( loggedinusername ) %]<li>[% IF persona %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>[% ELSE %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">[% END %]Log out</a></li>[% END %] </ul> # spent 14µs making 2 calls to Template::Stash::XS::get, avg 7µs/call
# spent 2µs making 1 call to Template::Stash::undefined |
7 | 3 | 10µs | 1 | 4µs | [% END %] </div> # spent 4µs making 1 call to Template::Stash::XS::get |
8 | 4 | 14µs | 2 | 7µs | [% IF ( opacheader ) %] [% opacheader %] [% END %] <div id="opac-main-search" class="yui-g"> # spent 7µs making 2 calls to Template::Stash::XS::get, avg 3µs/call |
9 | 2 | 800ns | [% IF ( opacsmallimage ) %] <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');"> | ||
10 | 1 | 300ns | [% ELSE %] <h1 id="libraryname"> | ||
11 | 2 | 18µs | 3 | 9µs | [% END %]<a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalogue[% END %]</a></h1> # spent 9µs making 3 calls to Template::Stash::XS::get, avg 3µs/call |
12 | 1 | 400ns | |||
13 | 1 | 600ns | <div id="fluid"> | ||
14 | |||||
15 | [% IF ( OpacPublic ) %] <div id="fluid-offset"> | ||||
16 | 3 | 2µs | [% UNLESS ( advsearch ) %]<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform"> | ||
17 | 3 | 15µs | 2 | 7µs | <label for="masthead_search" class="left"> Search [% UNLESS ( OpacAddMastheadLibraryPulldown ) %] [% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %] [% END %] </label> # spent 7µs making 2 calls to Template::Stash::XS::get, avg 4µs/call |
18 | 1 | 400ns | |||
19 | 1 | 500ns | <select name="idx" id="masthead_search" class="left"> | ||
20 | [% IF ( ms_kw ) %] <option selected="selected" value="">Library catalogue</option> | ||||
21 | 1 | 500ns | [% ELSE %] <option value="">Library catalogue</option> | ||
22 | 1 | 8µs | 2 | 14µs | [% END %] [% IF ( ms_ti ) %] <option selected="selected" value="ti">Title</option> # spent 12µs making 1 call to Template::Stash::XS::get
# spent 3µs making 1 call to Template::Stash::undefined |
23 | [% ELSE %] <option value="ti">Title</option> | ||||
24 | 2 | 9µs | 2 | 12µs | [% END %] [% IF ( ms_au ) %] <option selected="selected" value="au">Author</option> # spent 10µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
25 | [% ELSE %] <option value="au">Author</option> | ||||
26 | 2 | 10µs | 2 | 12µs | [% END %] [% IF ( ms_su ) %] <option selected="selected" value="su">Subject</option> # spent 10µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
27 | [% ELSE %] <option value="su">Subject</option> | ||||
28 | 2 | 9µs | 2 | 11µs | [% END %] [% IF ( ms_nb ) %] <option selected="selected" value="nb">ISBN</option> # spent 9µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
29 | 1 | 400ns | [% ELSE %] <option value="nb">ISBN</option> | ||
30 | 2 | 9µs | 2 | 12µs | [% END %] [% IF ( ms_se ) %] <option selected="selected" value="se">Series</option> # spent 10µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
31 | 1 | 400ns | [% ELSE %] <option value="se">Series</option> | ||
32 | 2 | 9µs | 2 | 12µs | [% END %] [% IF ( numbersphr ) %] [% IF ( ms_callnum ) %] <option selected="selected" value="callnum,phr">Call number</option> # spent 10µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
33 | 1 | 400ns | [% ELSE %] <option value="callnum,phr">Call number</option> | ||
34 | 1 | 1µs | [% END %] [% ELSE %] [% IF ( ms_callnum ) %] <option selected="selected" value="callnum">Call number</option> | ||
35 | 1 | 400ns | [% ELSE %] <option value="callnum">Call number</option> | ||
36 | 3 | 17µs | 4 | 23µs | [% END %] [% END %]</select> # spent 18µs making 2 calls to Template::Stash::XS::get, avg 9µs/call
# spent 4µs making 2 calls to Template::Stash::undefined, avg 2µs/call |
37 | 1 | 200ns | [% IF ( ms_value ) %] <input type="text" title="Type search term" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div> | ||
38 | [% ELSE %] <input type="text" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div> | ||||
39 | 3 | 10µs | 1 | 4µs | [% END %] [% IF ( OpacAddMastheadLibraryPulldown ) %] <select name="branch_group_limit" id="select_library" class="left"> # spent 4µs making 1 call to Template::Stash::XS::get |
40 | 3 | 2µs | <option value="">All libraries</option> | ||
41 | 1 | 4µs | 1 | 37µs | [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %] [% FOREACH BranchesLoo IN BranchesLoop %] [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option> # spent 37µs making 1 call to Template::Context::filter |
42 | [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %] [% END %] [% IF BranchCategoriesLoop %] </optgroup> | ||||
43 | 1 | 400ns | <optgroup label="Groups"> | ||
44 | 2 | 9µs | 1 | 4µs | [% FOREACH bc IN BranchCategoriesLoop %] [% IF ( bc.selected ) %] <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option> # spent 4µs making 1 call to Template::Stash::XS::get |
45 | [% ELSE %] <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option> | ||||
46 | 2 | 4µs | 1 | 20µs | [% END %] [% END %] </optgroup> # spent 20µs making 1 call to Template::Filters::html_filter |
47 | [% END %] </select> | ||||
48 | [% ELSE %] [% IF ( opac_limit_override ) %] [% IF ( opac_search_limit ) %] <input name="limit" value="[% opac_search_limit %]" type="hidden" /> | ||||
49 | 1 | 1µs | [% END %] [% ELSE %] [% IF ( mylibraryfirst ) %] <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" /> | ||
50 | 3 | 40µs | 4 | 60µs | [% END %] [% END %] [% END %] <input type="submit" value="Go" id="searchsubmit" class="left" /> # spent 43µs making 3 calls to Template::Stash::XS::get, avg 14µs/call
# spent 17µs making 1 call to Template::Stash::undefined |
51 | 2 | 24µs | 2 | 10µs | [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %] [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %] </form> # spent 10µs making 2 calls to Template::Stash::XS::get, avg 5µs/call |
52 | [% ELSE %] <div style="width:80%;*margin-bottom:-30px;"> | ||||
53 | 1 | 1µs | [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %][% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %] </div> | ||
54 | 1 | 8µs | 2 | 12µs | [% END %] <div id="moresearches"> # spent 9µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
55 | 5 | 10µs | <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a> | ||
56 | 7 | 45µs | 8 | 25µs | [% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %] [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>[% END %] [% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %] [% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %] [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %] [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %] [% IF ( suggestion ) %] [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a> # spent 25µs making 8 calls to Template::Stash::XS::get, avg 3µs/call |
57 | [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a> | ||||
58 | 2 | 18µs | 3 | 9µs | [% END %] [% END %] </div> # spent 9µs making 3 calls to Template::Stash::XS::get, avg 3µs/call |
59 | 2 | 2µs | </div> | ||
60 | 7 | 10µs | </div> | ||
61 | |||||
62 | 1 | 8µs | 1 | 3µs | [% END %] <!-- OpacPublic --> # spent 3µs making 1 call to Template::Stash::XS::get |
63 | 1 | 600ns | |||
64 | 1 | 7µs | 1 | 3µs | [% IF ( opacbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %] [% IF ( virtualshelves ) %] <div id="listsmenu" class="yuimenu" style="display: none"> # spent 3µs making 1 call to Template::Stash::XS::get |
65 | 2 | 900ns | <div class="bd"> | ||
66 | <h4>Public lists</h4> | ||||
67 | [% IF ( pubshelves ) %] <ul class="first-of-type"> | ||||
68 | 10 | 130µs | 12 | 130µs | [% FOREACH pubshelvesloo IN pubshelvesloop %] <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li> # spent 113µs making 8 calls to Template::Stash::XS::get, avg 14µs/call
# spent 17µs making 4 calls to Template::Stash::undefined, avg 4µs/call |
69 | 8 | 5µs | [% END %] <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li> | ||
70 | 4 | 4µs | </ul> | ||
71 | 7 | 14µs | 2 | 20µs | [% ELSE %] No public lists [% END %] [% IF ( opacuserlogin ) %] <h4>Your lists</h4> # spent 17µs making 1 call to Template::Iterator::AUTOLOAD
# spent 3µs making 1 call to Template::Stash::XS::get |
72 | 6 | 21µs | 4 | 104µs | [% IF ( loggedinusername ) %] [% IF ( barshelves ) %] <ul class="first-of-type"> # spent 104µs making 4 calls to Template::Context::filter, avg 26µs/call |
73 | 1 | 14µs | 1 | 3µs | [% FOREACH barshelvesloo IN barshelvesloop %] <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li> # spent 3µs making 1 call to Template::Stash::XS::get |
74 | [% END %] <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li> | ||||
75 | 5 | 67µs | 5 | 37µs | </ul> # spent 36µs making 4 calls to Template::Stash::XS::get, avg 9µs/call
# spent 1µs making 1 call to UNIVERSAL::isa |
76 | 1 | 8µs | 1 | 1.78ms | [% ELSE %] <ul class="first-of-type"> # spent 1.78ms making 1 call to Template::Config::iterator |
77 | 4 | 8µs | 4 | 65µs | <li>No private lists</li> # spent 65µs making 4 calls to Template::Filters::html_filter, avg 16µs/call |
78 | <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul> | ||||
79 | [% END %] [% ELSE %] <ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul> | ||||
80 | 7 | 71µs | 4 | 87µs | [% END %] [% END %] </div> # spent 63µs making 2 calls to Template::Stash::XS::get, avg 32µs/call
# spent 20µs making 1 call to Template::Iterator::get_first
# spent 4µs making 1 call to Template::Stash::undefined |
81 | 7 | 30µs | 6 | 54µs | </div><!-- /listmenu /virtualshelves --> # spent 32µs making 4 calls to Template::Iterator::get_next, avg 8µs/call
# spent 17µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::undefined |
82 | 2 | 26µs | 2 | 12µs | [% END %] # spent 10µs making 1 call to Template::Stash::XS::set
# spent 3µs making 1 call to Template::Stash::XS::get |
83 | 2 | 3µs | <div id="listsDetails"></div> | ||
84 | 2 | 12µs | 1 | 5µs | </div> # spent 5µs making 1 call to Template::Stash::XS::set |
85 | 5 | 5µs | </div> | ||
86 | 5 | 7µs | <div id="breadcrumbs" class="yui-g"> | ||
87 | 5 | 40µs | 5 | 27µs | [% IF ( searchdesc ) %]<p>[% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong> [% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %] <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html |url %][% limit_cgi |html | url %]&count=[% countrss |html %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a> # spent 24µs making 4 calls to Template::Stash::XS::get, avg 6µs/call
# spent 3µs making 1 call to Template::Stash::undefined |
88 | 3 | 2µs | [% ELSE %] <strong>No results found!</strong> | ||
89 | 4 | 4µs | <p> | ||
90 | 5 | 9µs | [% IF ( searchdesc ) %] No results found for that in [% LibraryName %] catalogue. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html | url %][% limit_cgi | html | url %]&format=rss2" class="rsssearchlink"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a> | ||
91 | 4 | 8µs | 4 | 63µs | [% ELSE %] You did not specify any search criteria. [% END %] </p> # spent 63µs making 4 calls to Template::Context::filter, avg 16µs/call |
92 | [% IF ( OPACNoResultsFound ) %] <div id="noresultsfound"> | ||||
93 | [% OPACNoResultsFound %] </div> | ||||
94 | 2 | 23µs | 2 | 8µs | [% END %] </div> # spent 8µs making 2 calls to Template::Stash::XS::get, avg 4µs/call |
95 | 2 | 15µs | 2 | 7µs | [% END %]</p>[% END %]</div> # spent 7µs making 2 calls to Template::Stash::XS::get, avg 4µs/call |
96 | 7 | 7µs | 2 | 32µs | # spent 32µs making 2 calls to Template::Filters::html_filter, avg 16µs/call |
97 | 2 | 2µs | |||
98 | 2 | 4µs | 2 | 27µs | # spent 27µs making 2 calls to Template::Context::filter, avg 13µs/call |
99 | 2 | 2µs | |||
100 | 2 | 2µs | |||
101 | 2 | 20µs | 3 | 20µs | # spent 17µs making 2 calls to Template::Stash::XS::get, avg 9µs/call
# spent 3µs making 1 call to Template::Stash::undefined |
- - | |||||
103 | 3 | 5µs | 2 | 26µs | # spent 26µs making 2 calls to Template::Filters::html_filter, avg 13µs/call |
104 | 1 | 1µs | |||
105 | 1 | 300ns | |||
- - | |||||
107 | 3 | 6µs | 2 | 28µs | # spent 28µs making 2 calls to Template::Filters::url_filter, avg 14µs/call |
- - | |||||
110 | 3 | 16µs | |||
- - | |||||
113 | 2 | 59µs |