| Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc |
| Statements | Executed 64 statements in 234µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 4 | 1 | 1 | 632µs | 87.9ms | Template::Document::__ANON__[:99] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # spent 87.9ms (632µs+87.2) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc:99] which was called 4 times, avg 22.0ms/call:
# 4 times (632µs+87.2ms) by Template::Document::process at line 163 of Template/Document.pm, avg 22.0ms/call | ||||
| 2 | 2 | 9µs | 8 | 140µs | $stash->set('Koha', # spent 125µs making 4 calls to Template::Context::plugin, avg 31µs/call
# spent 15µs making 4 calls to Template::Stash::XS::set, avg 4µs/call |
| 3 | 1 | 9µs | 8 | 1.28ms | $context->plugin('Koha')); # spent 1.26ms making 4 calls to Template::Context::plugin, avg 315µs/call
# spent 18µs making 4 calls to Template::Stash::XS::set, avg 4µs/call |
| 4 | 2 | 9µs | 8 | 2.56ms | $output .= "\n"; # spent 2.54ms making 4 calls to Template::Context::plugin, avg 634µs/call
# spent 21µs making 4 calls to Template::Stash::XS::set, avg 5µs/call |
| 5 | 4 | 17µs | 12 | 40µs | #line 2 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 40µs making 12 calls to Template::Stash::XS::get, avg 3µs/call |
| 6 | 3 | 900ns | # USE | ||
| 7 | 2 | 5µs | 4 | 9µs | $stash->set('AudioAlerts', # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 8 | 2 | 7µs | 4 | 9µs | $context->plugin('AudioAlerts')); # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 9 | 3 | 7µs | 4 | 10µs | $output .= "\n"; # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 10 | 2 | 6µs | 4 | 10µs | #line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 11 | 2 | 5µs | 4 | 0s | # USE # spent 36.9ms making 4 calls to Template::Context::include, avg 9.22ms/call, recursion: max depth 1, sum of overlapping time 36.9ms |
| 12 | 2 | 10µs | 8 | 64µs | $stash->set('String', # spent 48µs making 4 calls to Template::Stash::XS::get, avg 12µs/call
# spent 15µs making 4 calls to Template::Stash::undefined, avg 4µs/call |
| 13 | $context->plugin('String')); | ||||
| 14 | 1 | 6µs | 4 | 10µs | $output .= "\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<link rel=\"shortcut icon\" href=\""; # spent 10µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 15 | 2 | 5µs | 4 | 9µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 16 | 3 | 8µs | 4 | 9µs | if (($stash->get('IntranetFavicon'))) { # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 17 | 2 | 6µs | 4 | 10µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 18 | 2 | 8µs | 4 | 10µs | $output .= $stash->get('IntranetFavicon'); # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 19 | 2 | 7µs | 4 | 9µs | } # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 20 | 2 | 6µs | 4 | 10µs | else { # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 21 | 1 | 400ns | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||
| 22 | $output .= $stash->get('interface'); | ||||
| 23 | $output .= "/"; | ||||
| 24 | 1 | 6µs | 8 | 34µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 28µs making 4 calls to Template::Stash::XS::get, avg 7µs/call
# spent 6µs making 4 calls to Template::Stash::undefined, avg 2µs/call |
| 25 | 1 | 5µs | 4 | 10µs | $output .= $stash->get('theme'); # spent 10µs making 4 calls to Template::Stash::XS::get, avg 3µs/call |
| 26 | $output .= "/img/favicon.ico"; | ||||
| 27 | 1 | 300ns | } | ||
| 28 | 1 | 4µs | 4 | 10µs | # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 29 | 2 | 600ns | $output .= "\" type=\"image/x-icon\" />\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||
| 30 | 1 | 4µs | 4 | 0s | #line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 16.3ms making 4 calls to Template::Context::include, avg 4.07ms/call, recursion: max depth 1, sum of overlapping time 16.3ms |
| 31 | 1 | 500ns | $output .= $stash->get('interface'); | ||
| 32 | $output .= "/lib/jquery/jquery-ui.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 33 | #line 8 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 34 | $output .= $stash->get('interface'); | ||||
| 35 | $output .= "/lib/bootstrap/bootstrap.min.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 36 | #line 9 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 37 | 1 | 7µs | 4 | 14µs | $output .= $stash->get('interface'); # spent 14µs making 4 calls to Template::Stash::XS::get, avg 4µs/call |
| 38 | 1 | 600ns | $output .= "/lib/font-awesome/css/font-awesome.min.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\""; | ||
| 39 | #line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 40 | $output .= $stash->get('themelang'); | ||||
| 41 | $output .= "/css/print.css\" />\n"; | ||||
| 42 | #line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 43 | $output .= $context->include('intranetstylesheet.inc'); | ||||
| 44 | $output .= "\n"; | ||||
| 45 | #line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 46 | if (($stash->get('bidi'))) { | ||||
| 47 | $output .= "<link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 48 | #line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 49 | $output .= $stash->get('themelang'); | ||||
| 50 | $output .= "/css/right-to-left.css\" />"; | ||||
| 51 | } | ||||
| 52 | |||||
| 53 | $output .= "\n\n<script type=\"text/javascript\" src=\""; | ||||
| 54 | #line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 55 | $output .= $stash->get('interface'); | ||||
| 56 | 1 | 4µs | 4 | 10µs | $output .= "/lib/jquery/jquery.js\"></script>\n<script type=\"text/javascript\" src=\""; # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 57 | 2 | 5µs | 4 | 9µs | #line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 58 | 1 | 800ns | $output .= $stash->get('interface'); | ||
| 59 | $output .= "/lib/jquery/jquery-ui.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
| 60 | 1 | 200ns | #line 16 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||
| 61 | $output .= $stash->get('interface'); | ||||
| 62 | $output .= "/lib/shortcut/shortcut.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
| 63 | #line 17 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 64 | 1 | 300ns | $output .= $stash->get('interface'); | ||
| 65 | $output .= "/lib/jquery/plugins/jquery.cookie.min.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
| 66 | 1 | 4µs | 4 | 10µs | #line 18 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 10µs making 4 calls to Template::Stash::XS::get, avg 2µs/call |
| 67 | $output .= $stash->get('interface'); | ||||
| 68 | $output .= "/lib/jquery/plugins/jquery.highlight-3.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
| 69 | #line 19 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 70 | $output .= $stash->get('interface'); | ||||
| 71 | $output .= "/lib/bootstrap/bootstrap.min.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
| 72 | #line 20 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 73 | $output .= $stash->get('interface'); | ||||
| 74 | $output .= "/lib/jquery/plugins/jquery.validate.min.js\"></script>\n\n"; | ||||
| 75 | #line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 76 | if (($stash->get('login'))) { | ||||
| 77 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 78 | #line 23 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 79 | $output .= $stash->get('themelang'); | ||||
| 80 | $output .= "/css/login.css\" />\n"; | ||||
| 81 | } | ||||
| 82 | |||||
| 83 | $output .= "\n"; | ||||
| 84 | #line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 85 | if (($stash->get('IntranetUserCSS'))) { | ||||
| 86 | $output .= "<style type=\"text/css\">"; | ||||
| 87 | 2 | 40µs | 16 | 43.4ms | #line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 21.8ms making 8 calls to Template::Stash::XS::get, avg 2.72ms/call
# spent 21.6ms making 4 calls to Koha::Template::Plugin::Koha::Preference, avg 5.40ms/call
# spent 17µs making 4 calls to Template::Stash::undefined, avg 4µs/call |
| 88 | $output .= $stash->get('IntranetUserCSS'); | ||||
| 89 | $output .= "</style>"; | ||||
| 90 | 1 | 6µs | 4 | 0s | } # spent 8.04ms making 4 calls to Template::Context::include, avg 2.01ms/call, recursion: max depth 1, sum of overlapping time 8.04ms |
| 91 | 1 | 2µs | |||
| 92 | $output .= "\n\n<!-- koha core js -->\n<script type=\"text/javascript\" src=\""; | ||||
| 93 | 1 | 300ns | #line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||
| 94 | $output .= $stash->get('themelang'); | ||||
| 95 | $output .= "/js/staff-global.js\"></script>\n\n"; | ||||
| 96 | #line 30 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 97 | $output .= $context->include('validator-strings.inc'); | ||||
| 98 | 1 | 4µs | $output .= "\n"; | ||
| 99 | #line 37 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 100 | 1 | 8µs | if (($stash->get('IntranetUserJS'))) { | ||
| 101 | $output .= "\n <script type=\"text/javascript\">\n //<![CDATA[\n "; | ||||
| 102 | #line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 103 | $output .= $stash->get('IntranetUserJS'); | ||||
| 104 | $output .= "\n //]]>\n </script>\n"; | ||||
| 105 | } | ||||
| 106 | |||||
| 107 | $output .= "\n\n"; | ||||
| 108 | #line 57 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 109 | if (($stash->get('virtualshelves') || $stash->get('intranetbookbag'))) { | ||||
| 110 | $output .= "\n<script type=\"text/javascript\">\n //<![CDATA[\n var MSG_BASKET_EMPTY = _(\"Your cart is currently empty\");\n var MSG_RECORD_IN_BASKET = _(\"This item is already in your cart\");\n var MSG_RECORD_ADDED = _(\"This item has been added to your cart\");\n var MSG_NRECORDS_ADDED = _(\"%s item(s) added to your cart\");\n var MSG_NRECORDS_IN_BASKET = _(\"%s already in your cart\");\n var MSG_NO_RECORD_SELECTED = _(\"No item was selected\");\n var MSG_NO_RECORD_ADDED = _(\"No item was added to your cart (already in your cart) !\");\n var MSG_CONFIRM_DEL_BASKET = _(\"Are you sure you want to empty your cart?\");\n var MSG_CONFIRM_DEL_RECORDS = _(\"Are you sure you want to remove the selected items?\");\n var MSG_IN_YOUR_CART = _(\"Items in your cart: %s\");\n var MSG_NON_RESERVES_SELECTED = _(\"One or more selected items cannot be reserved.\");\n //]]>\n </script>\n\n <script type=\"text/javascript\" src=\""; | ||||
| 111 | #line 56 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 112 | $output .= $stash->get('themelang'); | ||||
| 113 | $output .= "/js/basket.js\"></script>\n"; | ||||
| 114 | } | ||||
| 115 | |||||
| 116 | $output .= "\n\n"; | ||||
| 117 | #line 66 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 118 | if ($stash->get('LocalCoverImages')) { | ||||
| 119 | $output .= "\n <script type=\"text/javascript\" src=\""; | ||||
| 120 | #line 60 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 121 | $output .= $stash->get('themelang'); | ||||
| 122 | $output .= "/js/localcovers.js\"></script>\n <script type=\"text/javascript\">\n //<![CDATA[\n var NO_LOCAL_JACKET = _(\"No cover image available\");\n //]]>\n </script>\n"; | ||||
| 123 | } | ||||
| 124 | |||||
| 125 | $output .= "\n\n"; | ||||
| 126 | #line 87 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 127 | if ($stash->get(['Koha', 0, 'Preference', [ 'AudioAlerts' ]]) || $stash->get('AudioAlertsPage')) { | ||||
| 128 | $output .= "\n <script type=\"text/javascript\">\n //<![CDATA[\n var AUDIO_ALERT_PATH = '"; | ||||
| 129 | #line 71 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 130 | $output .= $stash->get('interface'); | ||||
| 131 | $output .= "/"; | ||||
| 132 | #line 71 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 133 | $output .= $stash->get('theme'); | ||||
| 134 | $output .= "/sound/';\n var AUDIO_ALERTS = JSON.parse( '"; | ||||
| 135 | #line 72 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 136 | |||||
| 137 | # FILTER | ||||
| 138 | $output .= do { | ||||
| 139 | my $output = ''; | ||||
| 140 | my $_tt_filter = $context->filter('replace', [ '\'', ('' . "\\'") ]) | ||||
| 141 | || $context->throw($context->error); | ||||
| 142 | |||||
| 143 | $output .= $stash->get(['AudioAlerts', 0, 'AudioAlerts', 0]); | ||||
| 144 | |||||
| 145 | &$_tt_filter($output); | ||||
| 146 | }; | ||||
| 147 | |||||
| 148 | $output .= "' );\n //]]>\n\n \$( document ).ready(function() {\n if ( AUDIO_ALERTS ) {\n for ( var k in AUDIO_ALERTS ) {\n var alert = AUDIO_ALERTS[k];\n if ( \$( alert.selector ).length ) {\n playSound( alert.sound );\n break;\n }\n }\n }\n });\n </script>\n"; | ||||
| 149 | } | ||||
| 150 | |||||
| 151 | $output .= "\n\n<!-- For keeping the text when navigating the search tabs -->\n"; | ||||
| 152 | #line 90 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
| 153 | $output .= $context->include('searchbox-keep-text.inc'); | ||||
| 154 | $output .= "\n"; | ||||
| 155 | } }; | ||||
| 156 | if ($@) { | ||||
| 157 | $_tt_error = $context->catch($@, \$output); | ||||
| 158 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
| 159 | } | ||||
| 160 | |||||
| 161 | return $output; | ||||
| 162 | } | ||||
| 163 |