← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:11:28 2013

Filename/usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/masthead.inc
StatementsExecuted 226 statements in 947µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111577µs3.47msTemplate::Document::::__ANON__[:111]Template::Document::__ANON__[:111]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 3.47ms (577µs+2.90) within Template::Document::__ANON__[/usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/includes/masthead.inc:111] which was called: # once (577µs+2.90ms) by Template::Document::process at line 151 of Template/Document.pm
<div id="header-wrapper"><div id="members">
2 [% IF ( opacuserlogin ) %] <ul>
3112µs222µ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 17µs making 1 call to Template::Stash::XS::get # spent 5µs making 1 call to Template::Stash::undefined
4
518µs212µ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 9µs making 1 call to Template::Stash::XS::get # spent 2µs making 1 call to Template::Stash::undefined
6214µs315µ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 12µs making 2 calls to Template::Stash::XS::get, avg 6µs/call # spent 2µs making 1 call to Template::Stash::undefined
739µs14µs [% END %] </div>
# spent 4µs making 1 call to Template::Stash::XS::get
8415µs27µ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
92800ns [% IF ( opacsmallimage ) %] <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
101300ns [% ELSE %] <h1 id="libraryname">
11218µs39µ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
121400ns
131600ns<div id="fluid">
14
15[% IF ( OpacPublic ) %] <div id="fluid-offset">
1631µs[% UNLESS ( advsearch ) %]<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
17314µs27µ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 3µs/call
181400ns
191500ns <select name="idx" id="masthead_search" class="left">
20 [% IF ( ms_kw ) %] <option selected="selected" value="">Library catalogue</option>
211500ns [% ELSE %] <option value="">Library catalogue</option>
22111µs232µs [% END %] [% IF ( ms_ti ) %] <option selected="selected" value="ti">Title</option>
# spent 29µ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>
24210µs214µs [% END %] [% IF ( ms_au ) %] <option selected="selected" value="au">Author</option>
# spent 11µs making 1 call to Template::Stash::XS::get # spent 3µs making 1 call to Template::Stash::undefined
25 [% ELSE %] <option value="au">Author</option>
2629µs211µs [% END %] [% IF ( ms_su ) %] <option selected="selected" value="su">Subject</option>
# spent 9µ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>
2829µs211µ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
291300ns [% ELSE %] <option value="nb">ISBN</option>
3029µs212µ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
311400ns [% ELSE %] <option value="se">Series</option>
3229µs212µ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
331300ns [% ELSE %] <option value="callnum,phr">Call number</option>
3411µs [% END %] [% ELSE %] [% IF ( ms_callnum ) %] <option selected="selected" value="callnum">Call number</option>
351400ns [% ELSE %] <option value="callnum">Call number</option>
36316µs422µ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
371300ns[% 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>
3938µs13µs[% END %] [% IF ( OpacAddMastheadLibraryPulldown ) %] <select name="branch_group_limit" id="select_library" class="left">
# spent 3µs making 1 call to Template::Stash::XS::get
4032µs <option value="">All libraries</option>
4114µs138µ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 38µs making 1 call to Template::Context::filter
42 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %] [% END %] [% IF BranchCategoriesLoop %] </optgroup>
431400ns <optgroup label="Groups">
4428µs14µ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>
4624µs120µ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" />
4911µs [% END %] [% ELSE %] [% IF ( mylibraryfirst ) %] <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
50321µs421µs [% END %] [% END %] [% END %] <input type="submit" value="Go" id="searchsubmit" class="left" />
# spent 18µs making 3 calls to Template::Stash::XS::get, avg 6µs/call # spent 3µs making 1 call to Template::Stash::undefined
51213µs26µ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 6µs making 2 calls to Template::Stash::XS::get, avg 3µs/call
52[% ELSE %] <div style="width:80%;*margin-bottom:-30px;">
531400ns[% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %][% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %] </div>
5418µs212µs[% END %] <div id="moresearches">
# spent 10µs making 1 call to Template::Stash::XS::get # spent 2µs making 1 call to Template::Stash::undefined
5552µs<a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
56741µs823µ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 23µ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>
58216µs39µs [% END %] [% END %] </div>
# spent 9µs making 3 calls to Template::Stash::XS::get, avg 3µs/call
5921µs </div>
6072µs</div>
61
6217µs13µs[% END %] <!-- OpacPublic -->
# spent 3µs making 1 call to Template::Stash::XS::get
631600ns
6417µs13µ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
652900ns <div class="bd">
66 <h4>Public lists</h4>
67 [% IF ( pubshelves ) %] <ul class="first-of-type">
6810139µs12134µs [% FOREACH pubshelvesloo IN pubshelvesloop %] <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
# spent 118µs making 8 calls to Template::Stash::XS::get, avg 15µs/call # spent 16µs making 4 calls to Template::Stash::undefined, avg 4µs/call
6986µs [% END %] <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
7043µs </ul>
71713µs222µs [% ELSE %] No public lists [% END %] [% IF ( opacuserlogin ) %] <h4>Your lists</h4>
# spent 19µs making 1 call to Template::Iterator::AUTOLOAD # spent 3µs making 1 call to Template::Stash::XS::get
72610µs471µs [% IF ( loggedinusername ) %] [% IF ( barshelves ) %] <ul class="first-of-type">
# spent 71µs making 4 calls to Template::Context::filter, avg 18µs/call
7317µs13µs [% FOREACH barshelvesloo IN barshelvesloop %] <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;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>
75547µs525µs </ul>
# spent 24µs making 4 calls to Template::Stash::XS::get, avg 6µs/call # spent 1µs making 1 call to UNIVERSAL::isa
7618µs11.83ms [% ELSE %] <ul class="first-of-type">
# spent 1.83ms making 1 call to Template::Config::iterator
7747µs449µs <li>No private lists</li>
# spent 49µs making 4 calls to Template::Filters::html_filter, avg 12µ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>
80722µs438µs [% END %] [% END %] </div>
# spent 18µs making 1 call to Template::Iterator::get_first # spent 17µs making 2 calls to Template::Stash::XS::get, avg 8µs/call # spent 4µs making 1 call to Template::Stash::undefined
81726µs6186µs</div><!-- /listmenu /virtualshelves -->
# spent 169µs making 4 calls to Template::Iterator::get_next, avg 42µs/call # spent 14µs making 1 call to Template::Stash::XS::get # spent 3µs making 1 call to Template::Stash::undefined
82214µs27µs[% END %]
# spent 4µs making 1 call to Template::Stash::XS::set # spent 3µs making 1 call to Template::Stash::XS::get
8321µs<div id="listsDetails"></div>
842101µs19µs</div>
# spent 9µs making 1 call to Template::Stash::XS::set
8554µs</div>
8656µs<div id="breadcrumbs" class="yui-g">
87537µs525µ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 %]&amp;count=[% countrss |html %]&amp;sort_by=acqdate_dsc&amp;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 22µs making 4 calls to Template::Stash::XS::get, avg 6µs/call # spent 3µs making 1 call to Template::Stash::undefined
8832µs[% ELSE %] <strong>No results found!</strong>
8944µs<p>
9053µ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 %]&amp;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>
9148µs465µs [% ELSE %] You did not specify any search criteria. [% END %] </p>
# spent 65µs making 4 calls to Template::Context::filter, avg 16µs/call
92[% IF ( OPACNoResultsFound ) %] <div id="noresultsfound">
93[% OPACNoResultsFound %] </div>
94215µs28µs[% END %] </div>
# spent 8µs making 2 calls to Template::Stash::XS::get, avg 4µs/call
95214µs26µs[% END %]</p>[% END %]</div>
# spent 6µs making 2 calls to Template::Stash::XS::get, avg 3µs/call
9676µs222µs
# spent 22µs making 2 calls to Template::Filters::html_filter, avg 11µs/call
9722µs
9825µs242µs
# spent 42µs making 2 calls to Template::Context::filter, avg 21µs/call
9921µs
10021µs
101230µs324µs
# spent 21µs making 2 calls to Template::Stash::XS::get, avg 10µs/call # spent 3µs making 1 call to Template::Stash::undefined
- -
10336µs234µs
# spent 34µs making 2 calls to Template::Filters::html_filter, avg 17µs/call
1041800ns
1051300ns
- -
10735µs226µs
# spent 26µs making 2 calls to Template::Filters::url_filter, avg 13µs/call
- -
110316µs
- -
113259µs