| Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc |
| Statements | Executed 60 statements in 167µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 4 | 1 | 1 | 483µs | 2.90ms | Template::Document::__ANON__[:120] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # spent 2.90ms (483µs+2.42) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc:120] which was called 4 times, avg 725µs/call:
# 4 times (483µs+2.42ms) by Template::Document::process at line 163 of Template/Document.pm, avg 725µs/call | ||||
| 2 | 2 | 9µs | 8 | 1.83ms | $stash->set('Branches', # spent 1.81ms making 4 calls to Template::Context::plugin, avg 452µs/call
# spent 23µs making 4 calls to Template::Stash::XS::set, avg 6µs/call |
| 3 | $context->plugin('Branches')); | ||||
| 4 | 1 | 700ns | $output .= "\n<div id=\"header\" class=\"navbar navbar-static-top\">\n <div class=\"navbar-inner\">\n <ul id=\"toplevelmenu\" class=\"nav\">\n "; | ||
| 5 | 1 | 7µs | 4 | 13µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 13µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 6 | 1 | 6µs | 4 | 12µs | if (($stash->get('CAN_user_circulate'))) { # spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 7 | 2 | 5µs | 4 | 11µs | $output .= "<li><a href=\"/cgi-bin/koha/circ/circulation-home.pl\">Circulation</a></li>"; # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 8 | } | ||||
| 9 | 1 | 200ns | |||
| 10 | 2 | 5µs | 4 | 11µs | $output .= "\n "; # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 11 | 2 | 5µs | 4 | 19µs | #line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 19µs making 4 calls to Template::Stash::XS::get, avg 5µs/call |
| 12 | 1 | 400ns | if (($stash->get('CAN_user_borrowers'))) { | ||
| 13 | $output .= "<li><a href=\"/cgi-bin/koha/members/members-home.pl\">Patrons</a></li>"; | ||||
| 14 | 1 | 500ns | } | ||
| 15 | |||||
| 16 | $output .= "\n "; | ||||
| 17 | #line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
| 18 | 1 | 6µs | 4 | 11µs | if (($stash->get('CAN_user_catalogue'))) { # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 19 | $output .= "<li><a href=\"/cgi-bin/koha/catalogue/search.pl\">Search</a></li>"; | ||||
| 20 | } | ||||
| 21 | 1 | 4µs | 4 | 12µs | # spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 22 | 1 | 200ns | $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 | 4 | 10µs | $output .= "\n <li><a href=\"#\" id=\"cartmenulink\">Cart<span id=\"basketcount\"></span></a></li>\n "; # spent 10µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 26 | } | ||||
| 27 | |||||
| 28 | 1 | 4µs | 4 | 13µs | $output .= "\n "; # spent 13µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 29 | 1 | 200ns | #line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
| 30 | $output .= $stash->get('IntranetNav'); | ||||
| 31 | 1 | 4µs | 4 | 11µ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 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 32 | 1 | 100ns | #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 | 4 | 11µs | $output .= "\n <li><a href=\"/cgi-bin/koha/cataloguing/addbooks.pl\">Cataloging</a></li>\n "; # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 35 | 1 | 100ns | } | ||
| 36 | |||||
| 37 | 1 | 4µs | 4 | 12µs | $output .= "\n "; # spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 38 | 1 | 200ns | #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 | 500ns | } | ||
| 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 | 4µs | 4 | 11µs | $output .= "\n <li><a href=\"/cgi-bin/koha/serials/serials-home.pl\">Serials</a></li>\n "; # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 47 | 1 | 400ns | } | ||
| 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 | 200ns | |||
| 55 | $output .= "\n "; | ||||
| 56 | #line 31 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||||
| 57 | 1 | 6µs | 4 | 11µs | if (($stash->get('CAN_user_reports'))) { # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 58 | 2 | 16µs | 8 | 264µs | $output .= "\n <li><a href=\"/cgi-bin/koha/reports/reports-home.pl\">Reports</a></li>\n "; # spent 163µs making 4 calls to Template::Stash::XS::get, avg 41µs/call
# spent 102µs making 4 calls to Koha::Template::Plugin::Branches::GetLoggedInBranchcode, avg 25µs/call |
| 59 | 2 | 5µs | 4 | 11µs | } # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 60 | |||||
| 61 | 1 | 4µs | 4 | 11µs | $output .= "\n "; # spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 62 | 1 | 400ns | #line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
| 63 | 1 | 200ns | 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 | 1µ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 | 5µs | 4 | 15µs | if (($stash->get('loggedinusername'))) { # spent 15µs making 4 calls to Template::Stash::XS::get, avg 4µs/call |
| 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 | 800ns | #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 | 8 | 274µs | #line 61 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 153µs making 4 calls to Template::Stash::XS::get, avg 38µs/call
# spent 120µs making 4 calls to Template::Stash::undefined, avg 30µs/call |
| 81 | if (($stash->get('AutoLocation'))) { | ||||
| 82 | $output .= "\n <brand>\n "; | ||||
| 83 | 1 | 4µs | 4 | 9µs | #line 50 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 84 | 2 | 2µs | $output .= $stash->get('LoginBranchname'); | ||
| 85 | $output .= "\n </brand>\n "; | ||||
| 86 | 1 | 4µs | 4 | 9µs | } # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 87 | 1 | 600ns | else { | ||
| 88 | 1 | 7µs | 4 | 14µs | $output .= "\n <strong>\n "; # spent 14µs making 4 calls to Template::Stash::XS::get, avg 4µs/call |
| 89 | 1 | 1µs | #line 59 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc" | ||
| 90 | 1 | 800ns | 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 | 300ns | $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 | 4µs | 4 | 12µs | # spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 106 | 1 | 200ns | $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 | 4 | 9µs | if (($stash->get('IndependentBranches'))) { # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 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 | 100ns | |||
| 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 | 3µs | } | ||
| 120 | |||||
| 121 | 1 | 8µ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 |