Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc |
Statements | Executed 64 statements in 253µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 159µs | 20.5ms | __ANON__[:99] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # spent 20.5ms (159µs+20.4) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc:99] which was called:
# once (159µs+20.4ms) by Template::Document::process at line 163 of Template/Document.pm | ||||
2 | 2 | 9µs | 2 | 32µs | $stash->set('Koha', # spent 29µs making 1 call to Template::Context::plugin
# spent 3µs making 1 call to Template::Stash::XS::set |
3 | 1 | 13µs | 2 | 1.28ms | $context->plugin('Koha')); # spent 1.28ms making 1 call to Template::Context::plugin
# spent 8µs making 1 call to Template::Stash::XS::set |
4 | 2 | 12µs | 2 | 2.19ms | $output .= "\n"; # spent 2.19ms making 1 call to Template::Context::plugin
# spent 6µs making 1 call to Template::Stash::XS::set |
5 | 4 | 17µs | 3 | 8µs | #line 2 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 8µs making 3 calls to Template::Stash::XS::get, avg 3µs/call |
6 | 3 | 2µs | # USE | ||
7 | 2 | 6µs | 1 | 2µs | $stash->set('AudioAlerts', # spent 2µs making 1 call to Template::Stash::XS::get |
8 | 2 | 6µs | 1 | 2µs | $context->plugin('AudioAlerts')); # spent 2µs making 1 call to Template::Stash::XS::get |
9 | 3 | 6µs | 1 | 2µs | $output .= "\n"; # spent 2µs making 1 call to Template::Stash::XS::get |
10 | 2 | 7µs | 1 | 2µs | #line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
11 | 2 | 6µs | 1 | 0s | # USE # spent 5.40ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 5.40ms |
12 | 2 | 12µs | 2 | 16µs | $stash->set('String', # spent 12µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::undefined |
13 | $context->plugin('String')); | ||||
14 | 1 | 7µs | 1 | 3µs | $output .= "\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<link rel=\"shortcut icon\" href=\""; # spent 3µs making 1 call to Template::Stash::XS::get |
15 | 2 | 6µs | 1 | 2µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
16 | 3 | 6µs | 1 | 2µs | if (($stash->get('IntranetFavicon'))) { # spent 2µs making 1 call to Template::Stash::XS::get |
17 | 2 | 5µs | 1 | 2µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
18 | 2 | 7µs | 1 | 2µs | $output .= $stash->get('IntranetFavicon'); # spent 2µs making 1 call to Template::Stash::XS::get |
19 | 2 | 6µs | 1 | 2µs | } # spent 2µs making 1 call to Template::Stash::XS::get |
20 | 2 | 5µs | 1 | 2µs | else { # spent 2µs making 1 call to Template::Stash::XS::get |
21 | 1 | 300ns | #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 | 2 | 8µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 6µs making 1 call to Template::Stash::XS::get
# spent 1µs making 1 call to Template::Stash::undefined |
25 | 1 | 5µs | 1 | 2µs | $output .= $stash->get('theme'); # spent 2µs making 1 call to Template::Stash::XS::get |
26 | $output .= "/img/favicon.ico"; | ||||
27 | 1 | 500ns | } | ||
28 | 1 | 5µs | 1 | 2µs | # spent 2µs making 1 call to Template::Stash::XS::get |
29 | 2 | 800ns | $output .= "\" type=\"image/x-icon\" />\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||
30 | 1 | 6µs | 1 | 0s | #line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 1.54ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 1.54ms |
31 | 1 | 600ns | $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 | 1 | 3µs | $output .= $stash->get('interface'); # spent 3µs making 1 call to Template::Stash::XS::get |
38 | 1 | 500ns | $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 | 5µs | 1 | 2µs | $output .= "/lib/jquery/jquery.js\"></script>\n<script type=\"text/javascript\" src=\""; # spent 2µs making 1 call to Template::Stash::XS::get |
57 | 2 | 6µs | 1 | 2µs | #line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
58 | 1 | 1µs | $output .= $stash->get('interface'); | ||
59 | $output .= "/lib/jquery/jquery-ui.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
60 | 1 | 400ns | #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 | 400ns | $output .= $stash->get('interface'); | ||
65 | $output .= "/lib/jquery/plugins/jquery.cookie.min.js\"></script>\n<script type=\"text/javascript\" src=\""; | ||||
66 | 1 | 5µs | 1 | 2µs | #line 18 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
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 | 39µs | 4 | 15.7ms | #line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" # spent 7.86ms making 2 calls to Template::Stash::XS::get, avg 3.93ms/call
# spent 7.82ms making 1 call to Koha::Template::Plugin::Koha::Preference
# spent 5µs making 1 call to Template::Stash::undefined |
88 | $output .= $stash->get('IntranetUserCSS'); | ||||
89 | $output .= "</style>"; | ||||
90 | 1 | 10µs | 1 | 0s | } # spent 1.98ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 1.98ms |
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 | 5µs | $output .= "\n"; | ||
99 | #line 37 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc" | ||||
100 | 1 | 10µ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 |