Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc |
Statements | Executed 60 statements in 211µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
10 | 1 | 1 | 268µs | 268µs | CORE:match (opcode) | Template::Document::
1 | 1 | 1 | 130µs | 1.96ms | __ANON__[:120] | Template::Document::
1 | 1 | 1 | 6µs | 6µs | CORE:subst (opcode) | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 1.96ms (130µs+1.83) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc:120] which was called:
# once (130µs+1.83ms) by Template::Document::process at line 163 of Template/Document.pm | ||||
2 | 2 | 15µs | 2 | 1.73ms | $stash->set('Branches', # spent 1.72ms making 1 call to Template::Context::plugin
# spent 8µs making 1 call to Template::Stash::XS::set |
3 | $context->plugin('Branches')); | ||||
4 | 1 | 1µs | $output .= "\n<div id=\"header\" class=\"navbar navbar-static-top\">\n <div class=\"navbar-inner\">\n <ul id=\"toplevelmenu\" class=\"nav\">\n "; | ||
5 | 1 | 10µs | 1 | 3µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 3µs making 1 call to Template::Stash::XS::get |
6 | 1 | 6µs | 1 | 2µs | if (($stash->get('CAN_user_circulate'))) { # spent 2µs making 1 call to Template::Stash::XS::get |
7 | 2 | 6µs | 1 | 2µs | $output .= "<li><a href=\"/cgi-bin/koha/circ/circulation-home.pl\">Circulation</a></li>"; # spent 2µs making 1 call to Template::Stash::XS::get |
8 | } | ||||
9 | 1 | 800ns | |||
10 | 2 | 6µs | 1 | 3µs | $output .= "\n "; # spent 3µs making 1 call to Template::Stash::XS::get |
11 | 2 | 6µs | 1 | 2µs | #line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
12 | 1 | 700ns | if (($stash->get('CAN_user_borrowers'))) { | ||
13 | $output .= "<li><a href=\"/cgi-bin/koha/members/members-home.pl\">Patrons</a></li>"; | ||||
14 | 1 | 400ns | } | ||
15 | |||||
16 | $output .= "\n "; | ||||
17 | #line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
18 | 1 | 6µs | 1 | 3µs | if (($stash->get('CAN_user_catalogue'))) { # spent 3µs making 1 call to Template::Stash::XS::get |
19 | $output .= "<li><a href=\"/cgi-bin/koha/catalogue/search.pl\">Search</a></li>"; | ||||
20 | } | ||||
21 | 1 | 9µs | 1 | 3µs | # spent 3µs making 1 call to Template::Stash::XS::get |
22 | 1 | 700ns | $output .= "\n "; | ||
23 | #line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
24 | if (($stash->get('intranetbookbag'))) { | ||||
25 | 2 | 6µs | 1 | 2µs | $output .= "\n <li><a href=\"#\" id=\"cartmenulink\">Cart<span id=\"basketcount\"></span></a></li>\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
26 | } | ||||
27 | |||||
28 | 1 | 5µs | 1 | 2µs | $output .= "\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
29 | 1 | 300ns | #line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
30 | $output .= $stash->get('IntranetNav'); | ||||
31 | 1 | 5µs | 1 | 2µs | $output .= "\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">More <b class=\"caret\"></b></a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"/cgi-bin/koha/virtualshelves/shelves.pl\">Lists</a></li>\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
32 | 1 | 300ns | #line 18 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
33 | if (($stash->get('CAN_user_editcatalogue_edit_catalogue') || $stash->get('CAN_user_editcatalogue_edit_items'))) { | ||||
34 | 1 | 5µs | 1 | 2µs | $output .= "\n <li><a href=\"/cgi-bin/koha/cataloguing/addbooks.pl\">Cataloging</a></li>\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
35 | 1 | 300ns | } | ||
36 | |||||
37 | 1 | 5µs | 1 | 2µs | $output .= "\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
38 | 1 | 300ns | #line 21 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
39 | if (($stash->get('CAN_user_acquisition'))) { | ||||
40 | $output .= "\n <li><a href=\"/cgi-bin/koha/acqui/acqui-home.pl\">Acquisitions</a></li>\n "; | ||||
41 | 1 | 600ns | } | ||
42 | |||||
43 | $output .= "\n <li><a href=\"/cgi-bin/koha/authorities/authorities-home.pl\">Authorities</a></li>\n "; | ||||
44 | #line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
45 | if (($stash->get('CAN_user_serials'))) { | ||||
46 | 1 | 5µs | 1 | 2µs | $output .= "\n <li><a href=\"/cgi-bin/koha/serials/serials-home.pl\">Serials</a></li>\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
47 | 1 | 500ns | } | ||
48 | |||||
49 | $output .= "\n "; | ||||
50 | #line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
51 | if (($stash->get('UseCourseReserves'))) { | ||||
52 | $output .= "\n <li><a href=\"/cgi-bin/koha/course_reserves/course-reserves.pl\">Course reserves</a></li>\n "; | ||||
53 | } | ||||
54 | 1 | 400ns | |||
55 | $output .= "\n "; | ||||
56 | #line 31 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
57 | 1 | 7µs | 1 | 2µs | if (($stash->get('CAN_user_reports'))) { # spent 2µs making 1 call to Template::Stash::XS::get |
58 | 2 | 16µs | 2 | 46µs | $output .= "\n <li><a href=\"/cgi-bin/koha/reports/reports-home.pl\">Reports</a></li>\n "; # spent 30µs making 1 call to Template::Stash::XS::get
# spent 16µs making 1 call to Koha::Template::Plugin::Branches::GetLoggedInBranchcode |
59 | 2 | 7µs | 1 | 2µs | } # spent 2µs making 1 call to Template::Stash::XS::get |
60 | |||||
61 | 1 | 6µs | 1 | 2µs | $output .= "\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
62 | 1 | 400ns | #line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
63 | 1 | 400ns | if (($stash->get('CAN_user_tools'))) { | ||
64 | $output .= "\n <li><a href=\"/cgi-bin/koha/tools/tools-home.pl\">Tools</a></li>\n "; | ||||
65 | 1 | 5µs | } | ||
66 | |||||
67 | $output .= "\n "; | ||||
68 | #line 37 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
69 | if (($stash->get('CAN_user_parameters'))) { | ||||
70 | $output .= "\n <li><a href=\"/cgi-bin/koha/admin/admin-home.pl\">Administration</a></li>\n "; | ||||
71 | } | ||||
72 | |||||
73 | $output .= "\n <li><a href=\"/cgi-bin/koha/about.pl\">About Koha</a></li>\n </ul>\n </li>\n </ul>\n <ul class=\"nav pull-right\">\n "; | ||||
74 | #line 105 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
75 | 1 | 7µs | 1 | 3µs | if (($stash->get('loggedinusername'))) { # spent 3µs making 1 call to Template::Stash::XS::get |
76 | $output .= "\n <li class=\"dropdown\">\n <a href=\"#\" id=\"drop3\" role=\"button\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n <span class=\"loggedinusername\">"; | ||||
77 | 1 | 1µs | #line 46 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
78 | $output .= $stash->get('loggedinusername'); | ||||
79 | $output .= "</span>\n <span class=\"separator\">|</span>\n "; | ||||
80 | 2 | 10µs | 2 | 16µs | #line 61 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 12µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::undefined |
81 | if (($stash->get('AutoLocation'))) { | ||||
82 | $output .= "\n <brand>\n "; | ||||
83 | 1 | 6µs | 1 | 2µs | #line 50 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
84 | 2 | 2µs | $output .= $stash->get('LoginBranchname'); | ||
85 | $output .= "\n </brand>\n "; | ||||
86 | 1 | 6µs | 1 | 2µs | } # spent 2µs making 1 call to Template::Stash::XS::get |
87 | 1 | 700ns | else { | ||
88 | 1 | 6µs | 1 | 2µs | $output .= "\n <strong>\n "; # spent 2µs making 1 call to Template::Stash::XS::get |
89 | 1 | 900ns | #line 59 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
90 | 1 | 1µs | if (($stash->get('LoginBranchname') eq 'NO_LIBRARY_SET')) { | ||
91 | $output .= "\n NO LIBRARY SET\n "; | ||||
92 | } | ||||
93 | else { | ||||
94 | $output .= "\n <span id=\"logged-in-branch-name\">"; | ||||
95 | #line 57 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
96 | 1 | 600ns | $output .= $stash->get('LoginBranchname'); | ||
97 | $output .= "</span>\n <span id=\"logged-in-branch-code\" class=\"content_hidden\">"; | ||||
98 | #line 58 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
99 | $output .= $stash->get(['Branches', 0, 'GetLoggedInBranchcode', 0]); | ||||
100 | $output .= "</span>\n "; | ||||
101 | } | ||||
102 | |||||
103 | $output .= "\n </strong>\n "; | ||||
104 | } | ||||
105 | 1 | 5µs | 1 | 2µs | # spent 2µs making 1 call to Template::Stash::XS::get |
106 | 1 | 500ns | $output .= "\n <b class=\"caret\"></b>\n </a>\n <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"drop3\">\n "; | ||
107 | #line 75 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
108 | 1 | 5µs | 1 | 2µs | if (($stash->get('IndependentBranches'))) { # spent 2µs making 1 call to Template::Stash::XS::get |
109 | $output .= "\n "; | ||||
110 | #line 70 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
111 | if (($stash->get('CAN_user_management') || $stash->get('CAN_user_editcatalogue_edit_catalogue'))) { | ||||
112 | 1 | 800ns | $output .= "\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/circ/selectbranchprinter.pl\">Set library</a>\n </li>\n "; | ||
113 | } | ||||
114 | 1 | 200ns | |||
115 | $output .= "\n "; | ||||
116 | } | ||||
117 | else { | ||||
118 | $output .= "\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/circ/selectbranchprinter.pl\">Set library</a>\n </li>\n "; | ||||
119 | 1 | 5µs | } | ||
120 | |||||
121 | 1 | 9µs | $output .= "\n "; | ||
122 | #line 80 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
123 | if ($stash->get('EnableSearchHistory')) { | ||||
124 | $output .= "\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/catalogue/search-history.pl\">Search history</a>\n </li>\n "; | ||||
125 | } | ||||
126 | |||||
127 | $output .= "\n "; | ||||
128 | #line 88 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
129 | if ($stash->get('loggedinusernumber')) { | ||||
130 | $output .= "\n <li class =\"toplinks-myaccount\">\n <a class=\"toplinks\" href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber="; | ||||
131 | #line 83 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
132 | $output .= $stash->get('loggedinusernumber'); | ||||
133 | $output .= "\">My account</a>\n </li>\n <li class=\"toplinks-mycheckouts\">\n <a class=\"toplinks\" href=\"/cgi-bin/koha/circ/circulation.pl?borrowernumber="; | ||||
134 | #line 86 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
135 | $output .= $stash->get('loggedinusernumber'); | ||||
136 | $output .= "\">My checkouts</a>\n </li>\n "; | ||||
137 | } | ||||
138 | |||||
139 | $output .= "\n <li>\n <a id=\"logout\" class=\"toplinks\" href=\"/cgi-bin/koha/mainpage.pl?logout.x=1\">Log out</a>\n </li>\n </ul>\n </li>\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/help.pl\" id=\"helper\">Help</a>\n </li>\n "; | ||||
140 | } | ||||
141 | else { | ||||
142 | $output .= "\n <li class=\"loggedout\">\n <span>\n <a href=\"/cgi-bin/koha/mainpage.pl\" id=\"login\">Log in</a>\n <span class=\"separator\">|</span>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/help.pl\" id=\"helper\">Help</a>\n </span>\n </li>\n "; | ||||
143 | } | ||||
144 | |||||
145 | $output .= "\n </ul>\n </div>\n "; | ||||
146 | #line 108 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
147 | if (($stash->get('intranetbookbag'))) { | ||||
148 | $output .= "<div id=\"cartDetails\">Your cart is empty.</div>"; | ||||
149 | } | ||||
150 | |||||
151 | $output .= "\n</div>\n"; | ||||
152 | } }; | ||||
153 | if ($@) { | ||||
154 | $_tt_error = $context->catch($@, \$output); | ||||
155 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
156 | } | ||||
157 | |||||
158 | return $output; | ||||
159 | } | ||||
160 | |||||
# spent 268µs within Template::Document::CORE:match which was called 10 times, avg 27µs/call:
# 10 times (268µs+0s) by Template::Document::new at line 75 of Template/Document.pm, avg 27µs/call | |||||
# spent 6µs within Template::Document::CORE:subst which was called:
# once (6µs+0s) by Template::Document::AUTOLOAD at line 187 of Template/Document.pm |