Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc |
Statements | Executed 23 statements in 86µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 75µs | 6.53ms | __ANON__[:48] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 6.53ms (75µs+6.45) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc:48] which was called:
# once (75µs+6.45ms) by Template::Document::process at line 163 of Template/Document.pm | ||||
2 | 1 | 8µs | 1 | 4µs | $output .= $stash->get('LibraryName'); # spent 4µs making 1 call to Template::Stash::XS::get |
3 | 1 | 400ns | $output .= "</a></h1><!-- Begin Main page Resident Search Box -->\n\n<div id=\"header_search\">\n "; | ||
4 | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||||
5 | 1 | 5µs | 1 | 0s | $output .= $context->include('patron-search-box.inc'); # spent 6.43ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 6.43ms |
6 | 1 | 700ns | $output .= "\n"; | ||
7 | 1 | 400ns | #line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||
8 | 1 | 500ns | 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 name=\"barcode\" class=\"head-searchbox\" id=\"ret_barcode\" size=\"40\" accesskey=\"r\" />\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n </form>\n</div>"; | ||||
10 | } | ||||
11 | |||||
12 | $output .= "\n"; | ||||
13 | 1 | 9µs | 1 | 3µs | #line 22 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" # spent 3µs making 1 call to Template::Stash::XS::get |
14 | if (($stash->get('CAN_user_borrowers'))) { | ||||
15 | $output .= "\n<div id=\"patron_search\" class=\"residentsearch\">\n <p class=\"tip\">Enter patron card number or partial name:</p>\n <form action=\"/cgi-bin/koha/members/member.pl\" method=\"post\">\n <input name=\"searchmember\" class=\"head-searchbox\" id=\"searchmember\" size=\"40\" type=\"text\"/>\n <input type=\"hidden\" name=\"quicksearch\" value=\"1\" />\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n </form>\n</div>"; | ||||
16 | } | ||||
17 | 1 | 900ns | |||
18 | $output .= "\n"; | ||||
19 | #line 30 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||||
20 | if (($stash->get('CAN_user_catalogue'))) { | ||||
21 | $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\" class=\"head-searchbox\" size=\"40\" accesskey=\"q\" />\n <input type=\"submit\" class=\"submit\" value=\"Submit\"/>\n </form>\n</div>"; | ||||
22 | 1 | 12µs | 1 | 2µs | } # spent 2µs making 1 call to Template::Stash::XS::get |
23 | |||||
24 | $output .= "\n\n<ul>\n "; | ||||
25 | #line 33 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||||
26 | 1 | 600ns | if (($stash->get('CAN_user_circulate'))) { | ||
27 | $output .= "<li><a onclick=\"keep_text(0)\" href=\"#circ_search\">Check out</a></li>"; | ||||
28 | } | ||||
29 | |||||
30 | 1 | 7µs | 1 | 3µs | $output .= "\n "; # spent 3µs making 1 call to Template::Stash::XS::get |
31 | #line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||||
32 | if (($stash->get('CAN_user_circulate'))) { | ||||
33 | 1 | 6µs | 1 | 2µs | $output .= "<li><a onclick=\"keep_text(1)\" href=\"#checkin_search\">Check in</a></li>"; # spent 2µs making 1 call to Template::Stash::XS::get |
34 | 2 | 7µs | 1 | 2µs | } # spent 2µs making 1 call to Template::Stash::XS::get |
35 | 1 | 6µs | 1 | 3µs | # spent 3µs making 1 call to Template::Stash::XS::get |
36 | 1 | 5µs | 1 | 2µs | $output .= "\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
37 | 1 | 600ns | #line 35 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||
38 | 1 | 400ns | if (($stash->get('CAN_user_borrowers'))) { | ||
39 | 1 | 600ns | $output .= "<li><a onclick=\"keep_text(2)\" href=\"#patron_search\">Search patrons</a></li>"; | ||
40 | 1 | 1µs | } | ||
41 | |||||
42 | 1 | 300ns | $output .= "\n "; | ||
43 | #line 36 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc" | ||||
44 | if (($stash->get('CAN_user_catalogue'))) { | ||||
45 | $output .= "<li><a onclick=\"keep_text(3)\" href=\"#catalog_search\">Search the catalog</a></li>"; | ||||
46 | } | ||||
47 | 1 | 8µs | |||
48 | $output .= "\n</ul>\n\n</div><!-- /header_search -->\n</div><!-- /gradient -->\n<!-- End Main page Resident Search Box -->\n"; | ||||
49 | 1 | 5µs | } }; | ||
50 | if ($@) { | ||||
51 | $_tt_error = $context->catch($@, \$output); | ||||
52 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
53 | } | ||||
54 | |||||
55 | return $output; | ||||
56 | } | ||||
57 |