Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc |
Statements | Executed 0 statements in 0s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 1 | 1 | 145µs | 24.5ms | __ANON__[:41] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 24.5ms (145µs+24.4) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc:41] which was called 3 times, avg 8.17ms/call:
# 3 times (145µs+24.4ms) by Template::Document::process at line 163 of Template/Document.pm, avg 8.17ms/call | ||||
2 | 3 | 9µs | $output .= $stash->get('LibraryName'); # spent 9µs making 3 calls to Template::Stash::XS::get, avg 3µs/call | ||
3 | $output .= "</a></h1><!-- Begin Catalogue Resident Search Box -->\n<div id=\"header_search\">\n\n"; | ||||
4 | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc" | ||||
5 | 3 | 0s | $output .= $context->include('patron-search-box.inc'); # spent 24.3ms making 3 calls to Template::Context::include, avg 8.11ms/call, recursion: max depth 1, sum of overlapping time 24.3ms | ||
6 | $output .= "\n\n"; | ||||
7 | #line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc" | ||||
8 | if (($stash->get('CAN_user_circulate'))) { | ||||
9 | $output .= "\n<div id=\"checkin_search\" class=\"residentsearch\">\n <p class=\"tip\">Scan a barcode to check in:</p>\n <form method=\"post\" action=\"/cgi-bin/koha/circ/returns.pl\" autocomplete=\"off\">\n <input class=\"head-searchbox\" name=\"barcode\" id=\"ret_barcode\" size=\"40\" />\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n </form>\n</div>\n "; | ||||
10 | } | ||||
11 | |||||
12 | $output .= "\n "; | ||||
13 | #line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc" | ||||
14 | if (($stash->get('CAN_user_catalogue'))) { | ||||
15 | 3 | 12µs | $output .= "\n <div id=\"catalog_search\" class=\"residentsearch\">\n <p class=\"tip\">Enter search keywords:</p>\n <form action=\"/cgi-bin/koha/catalogue/search.pl\" method=\"get\" id=\"cat-search-block\">\n <input type=\"text\" name=\"q\" id=\"search-form\" size=\"40\" value=\"\" title=\"Enter the terms you wish to search for.\" class=\"head-searchbox form-text\" />\n <input type=\"submit\" class=\"submit\" value=\"Submit\" />\n </form>\n </div>\n "; # spent 12µs making 3 calls to Template::Stash::XS::get, avg 4µs/call | ||
16 | } | ||||
17 | |||||
18 | $output .= "\n \n <ul>\n "; | ||||
19 | #line 27 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc" | ||||
20 | if (($stash->get('CAN_user_circulate'))) { | ||||
21 | $output .= "<li><a onclick=\"keep_text(0)\" href=\"#circ_search\">Check out</a></li>"; | ||||
22 | } | ||||
23 | |||||
24 | 3 | 8µs | $output .= "\n "; # spent 8µs making 3 calls to Template::Stash::XS::get, avg 2µs/call | ||
25 | #line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc" | ||||
26 | if (($stash->get('CAN_user_circulate'))) { | ||||
27 | 3 | 8µs | $output .= "<li><a onclick=\"keep_text(1)\" href=\"#checkin_search\">Check in</a></li>"; # spent 8µs making 3 calls to Template::Stash::XS::get, avg 3µs/call | ||
28 | 3 | 7µs | } # spent 7µs making 3 calls to Template::Stash::XS::get, avg 2µs/call | ||
29 | 3 | 7µs | # spent 7µs making 3 calls to Template::Stash::XS::get, avg 2µs/call | ||
30 | $output .= "\n "; | ||||
31 | #line 29 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc" | ||||
32 | if (($stash->get('CAN_user_catalogue'))) { | ||||
33 | $output .= "<li onclick=\"keep_text(2)\" class=\"ui-tabs-active\"><a href=\"#catalog_search\">Search the catalog</a></li>"; | ||||
34 | } | ||||
35 | |||||
36 | $output .= "\n </ul> \n</div><!-- /header_search -->\n</div><!-- /gradient -->\n<!-- End Catalogue Resident Search Box -->\n"; | ||||
37 | } }; | ||||
38 | if ($@) { | ||||
39 | $_tt_error = $context->catch($@, \$output); | ||||
40 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
41 | } | ||||
42 | |||||
43 | return $output; | ||||
44 | } | ||||
45 |