Filename | /usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/modules/opac-results.tt |
Statements | Executed 3032 statements in 25.1ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 11.9ms | 322ms | __ANON__[:541] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 10 | 131µs | 17 | 53.2ms | # spent 322ms (11.9+310) within Template::Document::__ANON__[/usr/share/koha/opac/htdocs/opac-tmpl/prog/en-NZ/modules/opac-results.tt:541] which was called:
# once (11.9ms+310ms) by Template::Document::process at line 151 of Template/Document.pm # spent 53.1ms making 2 calls to Template::Context::include, avg 26.5ms/call
# spent 70µs making 11 calls to Template::Stash::XS::get, avg 6µs/call
# spent 9µs making 2 calls to Template::Stash::undefined, avg 5µs/call
# spent 8µs making 2 calls to Template::Stash::XS::set, avg 4µs/call |
2 | 7 | 8µs | [% IF ( OpacStarRatings == 'all' ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.rating.js"></script> | ||
3 | 7 | 22µs | 2 | 7µs | <link rel="stylesheet" type="text/css" href="[% themelang %]/css/jquery.rating.css" />[% END %] <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> # spent 7µs making 2 calls to Template::Stash::XS::get, avg 3µs/call |
4 | 7 | 14µs | 1 | 3µs | [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.highlight-3.js"></script> # spent 3µs making 1 call to Template::Stash::XS::get |
5 | 7 | 28µs | 6 | 150µs | [% END %]<script type="text/javascript"> # spent 147µs making 5 calls to Template::Context::filter, avg 29µs/call
# spent 3µs making 1 call to Template::Stash::XS::get |
6 | 1 | 800ns | //<![CDATA[ | ||
7 | 3 | 3µs | [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %] | ||
8 | 6 | 58µs | 6 | 43µs | function holdMultiple() { # spent 40µs making 5 calls to Template::Stash::XS::get, avg 8µs/call
# spent 3µs making 1 call to Template::Stash::undefined |
9 | var checkedBiblioNums = ""; // Separated by "/" | ||||
10 | 5 | 14µs | 5 | 138µs | var checkedCount = 0; # spent 138µs making 5 calls to Template::Filters::html_filter, avg 28µs/call |
11 | if(document.bookbag_form.biblionumber.length > 0) { | ||||
12 | for (var i=0; i < document.bookbag_form.biblionumber.length; i++) { | ||||
13 | 4 | 4µs | if (document.bookbag_form.biblionumber[i].checked) { | ||
14 | checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/"); | ||||
15 | checkedCount++; | ||||
16 | 1 | 2µs | } | ||
17 | } | ||||
18 | } | ||||
19 | |||||
20 | if (checkedCount > 0) { | ||||
21 | holdBiblioNums(checkedBiblioNums); | ||||
22 | 1 | 1µs | } else { | ||
23 | alert(MSG_NO_RECORD_SELECTED); | ||||
24 | } | ||||
25 | } | ||||
26 | |||||
27 | function holdBiblioNums(numList) { | ||||
28 | // numList: biblio numbers separated by "/" | ||||
29 | $("#hold_form_biblios").attr("value", numList); | ||||
30 | $("#hold_form").submit(); | ||||
31 | 1 | 14µs | 2 | 6µs | }[% END %][% END %] # spent 6µs making 2 calls to Template::Stash::XS::get, avg 3µs/call |
32 | |||||
33 | [% IF ( TagsInputEnabled && loggedinusername ) %] | ||||
34 | function tagSelected() { | ||||
35 | var checkedBoxes = $(".searchresults :checkbox:checked"); | ||||
36 | if ($(checkedBoxes).size() == 0) { | ||||
37 | 1 | 700ns | alert(MSG_NO_RECORD_SELECTED); | ||
38 | } else { | ||||
39 | $("#tagsel_tag").hide(); | ||||
40 | $("#sort_by").hide(); | ||||
41 | $("#tagsel_form").show(); | ||||
42 | } | ||||
43 | } | ||||
44 | |||||
45 | function tagCanceled() { | ||||
46 | $("#tagsel_form").hide(); | ||||
47 | $("#tagsel_tag").show(); | ||||
48 | $("#sort_by").show(); | ||||
49 | $("#tagsel_new").val(""); | ||||
50 | $("#tagsel_status, .tagstatus").empty().hide(); | ||||
51 | } | ||||
52 | |||||
53 | function tagAdded() { | ||||
54 | var checkedBoxes = $(".searchresults :checkbox:checked"); | ||||
55 | if ($(checkedBoxes).size() == 0) { | ||||
56 | alert(MSG_NO_RECORD_SELECTED); | ||||
57 | return false; | ||||
58 | } | ||||
59 | |||||
60 | var tag = $("#tagsel_new").val(); | ||||
61 | if (!tag || (tag == "")) { | ||||
62 | alert(MSG_NO_TAG_SPECIFIED); | ||||
63 | return false; | ||||
64 | } | ||||
65 | |||||
66 | var bibs = []; | ||||
67 | for (var i = 0; i < $(checkedBoxes).size(); i++) { | ||||
68 | var box = $(checkedBoxes).get(i); | ||||
69 | bibs[i] = $(box).val(); | ||||
70 | } | ||||
71 | |||||
72 | KOHA.Tags.add_multitags_button(bibs, tag); | ||||
73 | return false; | ||||
74 | 1 | 7µs | 1 | 3µs | }[% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
75 | [% IF ( OpacHighlightedWords ) %] | ||||
76 | var q_array = new Array(); // holds search terms if available | ||||
77 | |||||
78 | 1 | 700ns | function highlightOff() { | ||
79 | $("td").removeHighlight(); | ||||
80 | $(".highlight_toggle").toggle(); | ||||
81 | } | ||||
82 | function highlightOn() { | ||||
83 | var x; | ||||
84 | for (x in q_array) { | ||||
85 | if ( q_array[x].length > 0 ) { | ||||
86 | $(".title").highlight(q_array[x]); | ||||
87 | $(".author").highlight(q_array[x]); | ||||
88 | $(".results_summary").highlight(q_array[x]); | ||||
89 | } | ||||
90 | } | ||||
91 | $(".highlight_toggle").toggle(); | ||||
92 | } | ||||
93 | 1 | 8µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
94 | $(document).ready(function(){ | ||||
95 | [% IF ( OpacHighlightedWords ) %] | ||||
96 | $('a.title').each(function() { | ||||
97 | 1 | 1µs | $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]"); | ||
98 | }); | ||||
99 | 2 | 15µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
100 | 2 | 1µs | |||
101 | 1 | 3µs | 1 | 16µs | [% IF ( IDreamBooksResults ) %] # spent 16µs making 1 call to Template::Context::filter |
102 | $('.idbresult').each(function() { | ||||
103 | var isbn = $(this).children('a').text().replace(/\s*/,''); | ||||
104 | 1 | 8µs | 1 | 4µs | var element = this; # spent 4µs making 1 call to Template::Stash::XS::get |
105 | |||||
106 | 1 | 3µs | 1 | 423µs | if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) { # spent 423µs making 1 call to Template::Filters::uri_filter |
107 | // Use Microsoft XDR for IE version 8 or above | ||||
108 | var xdr = new XDomainRequest(); | ||||
109 | 1 | 900ns | xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e"); | ||
110 | xdr.onload = function() { | ||||
111 | json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... }; | ||||
112 | 1 | 1µs | eval(json); // json is now a regular JSON object | ||
113 | if(json.total_results > 0 && json.book.rating > 0){ | ||||
114 | $(element).children('a').html("<img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+" by "+json.book.author+"' title='Rating based on reviews of "+json.book.title+"'>"+json.book.rating+"%"); | ||||
115 | $(element).show(); | ||||
116 | } else { | ||||
117 | $(element).remove(); | ||||
118 | } | ||||
119 | } | ||||
120 | xdr.send(); | ||||
121 | } else { | ||||
122 | $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){ | ||||
123 | if(json.total_results > 0 && json.book.rating > 0){ | ||||
124 | $(element).children('a').html("<img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+" by "+json.book.author+"' title='Rating based on reviews of "+json.book.title+"'>"+json.book.rating+"%"); | ||||
125 | $(element).show(); | ||||
126 | } else { | ||||
127 | $(element).remove(); | ||||
128 | } | ||||
129 | }); | ||||
130 | } | ||||
131 | }); | ||||
132 | 1 | 12µs | 1 | 7µs | [% END %] # spent 7µs making 1 call to Template::Stash::XS::get |
133 | |||||
134 | 1 | 8µs | 1 | 4µs | [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
135 | |||||
136 | 1 | 900ns | [% IF ( opacbookbag ) %] | ||
137 | [% IF ( virtualshelves ) %] | ||||
138 | 1 | 800ns | var param1 = "<label for=\"addto\">"+_("Add to: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; | ||
139 | [% IF ( opacbookbag ) %] param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; | ||||
140 | 1 | 8µs | 1 | 3µs | [% END %][% IF ( virtualshelves ) %][% IF ( loggedinusername ) %][% IF ( addbarshelves ) %] # spent 3µs making 1 call to Template::Stash::XS::get |
141 | param1 += "<optgroup label=\""+_("Your lists:")+"\">";[% FOREACH addbarshelvesloo IN addbarshelvesloop %] | ||||
142 | param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>";[% END %] | ||||
143 | param1 += "<\/optgroup>";[% END %] | ||||
144 | [% IF ( addpubshelves ) %]param1 += "<optgroup label=\""+_("Public lists:")+"\">"[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>"[% END %]; | ||||
145 | param1 += "<\/optgroup>";[% END %] | ||||
146 | [% IF (( addbarshelvesloop && addbarshelvesloop.size>9) || (addpubshelvesloop && addpubshelvesloop.size>9 )) %] | ||||
147 | param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>"; | ||||
148 | [% END %] | ||||
149 | param1 += "<option value=\"newlist\">[ "+_("New list")+" ]<\/option>"; | ||||
150 | 1 | 10µs | 2 | 17µs | [% END %] # spent 13µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::undefined |
151 | 1 | 8µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
152 | param1 += "<\/select> <input type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />"; | ||||
153 | [% ELSE %] | ||||
154 | var param1 = "<a id=\"addto\" class=\"addtocart\" href=\"#\">" + _("Add to cart") + "<\/a>"; | ||||
155 | 2 | 9µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
156 | 1 | 1µs | [% ELSE %] | ||
157 | var param1 = "<label for=\"addto\">"+_("Add to list: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; | ||||
158 | 1 | 1µs | [% IF ( virtualshelves ) %][% IF ( loggedinusername ) %][% IF ( addbarshelves ) %] | ||
159 | param1 += "<optgroup label=\""+_("Your lists:")+"\">";[% FOREACH addbarshelvesloo IN addbarshelvesloop %] | ||||
160 | param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>";[% END %] | ||||
161 | param1 += "<\/optgroup>";[% END %] | ||||
162 | [% IF ( addpubshelves ) %]param1 += "<optgroup label=\""+_("Public lists:")+"\">"[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>"[% END %][% END %] | ||||
163 | param1 +="<\/optgroup><option value=\"newlist\">[ "+_("New list")+" ]<\/option>" | ||||
164 | 1 | 1µs | [% END %] | ||
165 | [% END %] | ||||
166 | param1 += "<\/select> <input type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />"; | ||||
167 | 1 | 8µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
168 | 1 | 1µs | |||
169 | $('#sortsubmit').hide(); | ||||
170 | $('#sort_by').change(function() { | ||||
171 | $('#bookbag_form').submit(); | ||||
172 | }); | ||||
173 | $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>"); | ||||
174 | $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>"); | ||||
175 | 1 | 10µs | 1 | 4µs | [% IF ( opacbookbag ) %]$("span.addto").html(param1);[% ELSE %][% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]$("span.addto").html(param1);[% END %][% END %][% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
176 | [% IF ( opacbookbag || virtualshelves ) %] | ||||
177 | [% IF ( virtualshelves ) %] | ||||
178 | $("#addto").change(function(){ | ||||
179 | cartList(); | ||||
180 | }); | ||||
181 | $(".addto").find("input:submit").click(function(){ | ||||
182 | cartList(); | ||||
183 | 1 | 700ns | return false; | ||
184 | }); | ||||
185 | [% ELSE %] | ||||
186 | $("#addto").click(function(){ | ||||
187 | cartList(); | ||||
188 | return false; | ||||
189 | }); | ||||
190 | 1 | 8µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
191 | 1 | 9µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
192 | 1 | 1µs | |||
193 | function cartList(){ | ||||
194 | if($("#addto").find("option:selected").attr("value") == "addtolist"){ | ||||
195 | 1 | 2µs | var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s",""); | ||
196 | if (vShelfAdd()) { | ||||
197 | 1 | 600ns | Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd()); | ||
198 | } | ||||
199 | return false; | ||||
200 | 1 | 2µs | } else if($("#addto").find("option:selected").attr("value") == "newlist"){ | ||
201 | [% IF ( loggedinusername ) %]if (vShelfAdd()) { | ||||
202 | Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd()); | ||||
203 | 1 | 10µs | 2 | 13µs | }[% ELSE %] alert(_("You must be logged in to create or add to lists")); [% END %] # spent 10µs making 1 call to Template::Stash::XS::get
# spent 3µs making 1 call to Template::Stash::undefined |
204 | return false; | ||||
205 | } else if($("#addto").find("option:selected").attr("value") == "morelists"){ | ||||
206 | [% IF ( loggedinusername ) %]if (vShelfAdd()) { | ||||
207 | 1 | 1µs | Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd()); | ||
208 | 1 | 9µs | 2 | 12µs | }[% ELSE %] alert(_("You must be logged in to create or add to lists")); [% END %] # spent 10µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::undefined |
209 | return false; | ||||
210 | 1 | 800ns | } | ||
211 | if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){ | ||||
212 | 1 | 1µs | addMultiple(); | ||
213 | return false; | ||||
214 | } | ||||
215 | 1 | 1µs | } | ||
216 | $("#CheckAll").click(function(){ | ||||
217 | $("#bookbag_form").checkCheckboxes(); | ||||
218 | return false; | ||||
219 | }); | ||||
220 | $("#CheckNone").click(function(){ | ||||
221 | $("#bookbag_form").unCheckCheckboxes(); | ||||
222 | return false; | ||||
223 | }); | ||||
224 | [% IF ( RequestOnOpac ) %] | ||||
225 | [% IF ( opacuserlogin ) %] | ||||
226 | [% IF ( DisplayMultiPlaceHold ) %] | ||||
227 | $("#placehold").html("<input class=\"submit\" type=\"submit\" value=\""+_("Place reserve")+"\"/>"); | ||||
228 | $("#placehold").find("input:submit").click(function(){ | ||||
229 | holdMultiple(); | ||||
230 | return false; | ||||
231 | }); | ||||
232 | 1 | 9µs | 1 | 4µs | [% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
233 | 1 | 51µs | 1 | 46µs | [% END %] # spent 46µs making 1 call to Template::Stash::XS::get |
234 | 2 | 9µs | 1 | 4µs | [% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
235 | 1 | 600ns | $("#holdDetails").hide(); | ||
236 | 1 | 800ns | |||
237 | [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]"; | ||||
238 | q_array = query_desc.split(" "); | ||||
239 | 2 | 2µs | // ensure that we don't have "" at the end of the array, which can | ||
240 | 1 | 2µs | // break the highlighter | ||
241 | 1 | 4µs | 1 | 18µs | while (q_array.length > 0 && q_array[q_array.length-1] == "") { # spent 18µs making 1 call to Template::Context::filter |
242 | 1 | 900ns | q_array = q_array.splice(0,-1); | ||
243 | } | ||||
244 | highlightOn(); | ||||
245 | $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;}); | ||||
246 | 3 | 16µs | 2 | 7µs | $("#highlight_toggle_off").show().click(function() {highlightOff();});[% END %][% END %] # spent 7µs making 2 calls to Template::Stash::XS::get, avg 3µs/call |
247 | 2 | 2µs | |||
248 | 1 | 5µs | 1 | 35µs | [% IF ( TagsInputEnabled && loggedinusername ) %] # spent 35µs making 1 call to Template::Context::filter |
249 | $("#tagsel_tag").click(function(){ | ||||
250 | tagSelected(); | ||||
251 | return false; | ||||
252 | }); | ||||
253 | 1 | 2µs | $("#tagsel_cancel").click(function(){ | ||
254 | 1 | 1µs | tagCanceled(); | ||
255 | 1 | 4µs | 1 | 22µs | return false; # spent 22µs making 1 call to Template::Context::filter |
256 | }); | ||||
257 | $("#tagsel_button").click(function(){ | ||||
258 | tagAdded(); | ||||
259 | return false; | ||||
260 | 1 | 2µs | }); | ||
261 | 1 | 1µs | |||
262 | 1 | 4µs | 1 | 21µs | $(".tag_add").click(function(){ # spent 21µs making 1 call to Template::Context::filter |
263 | var thisid = $(this).attr("id"); | ||||
264 | thisid = thisid.replace("tag_add",""); | ||||
265 | 1 | 26µs | 1 | 14µs | $(this).hide(); # spent 14µs making 1 call to Template::Stash::XS::get |
266 | $("#tagform"+thisid).show(); | ||||
267 | 1 | 11µs | 1 | 38µs | $("#newtag"+thisid).focus(); # spent 38µs making 1 call to Template::Filters::__ANON__[Template/Filters.pm:506] |
268 | $("#newtag"+thisid+"_status").empty().hide(); | ||||
269 | return false; | ||||
270 | }); | ||||
271 | 1 | 6µs | 1 | 16µs | $(".cancel_tag_add").click(function(){ # spent 16µs making 1 call to Template::Filters::__ANON__[Template/Filters.pm:506] |
272 | var thisid = $(this).attr("id"); | ||||
273 | thisid = thisid.replace("cancel",""); | ||||
274 | $("#tagform"+thisid).hide(); | ||||
275 | 1 | 4µs | 1 | 10µs | $("#tag_add"+thisid).show(); # spent 10µs making 1 call to Template::Filters::__ANON__[Template/Filters.pm:506] |
276 | $("#newtag"+thisid).val(""); | ||||
277 | $("#newtag"+thisid+"_status").empty().hide(); | ||||
278 | return false; | ||||
279 | 1 | 2µs | 1 | 12µs | }); # spent 12µs making 1 call to Template::Filters::html_filter |
280 | $(".tagbutton").click(function(){ | ||||
281 | var thisid = $(this).attr("title"); | ||||
282 | 1 | 2µs | var tag = $("#newtag"+thisid).val(); | ||
283 | if (!tag || (tag == "")) { | ||||
284 | alert(MSG_NO_TAG_SPECIFIED); | ||||
285 | return false; | ||||
286 | } | ||||
287 | 1 | 900ns | KOHA.Tags.add_tag_button(thisid, tag); | ||
288 | return false; | ||||
289 | }); | ||||
290 | 1 | 13µs | 1 | 7µs | [% END %] # spent 7µs making 1 call to Template::Stash::XS::get |
291 | 1 | 8µs | 1 | 4µs | [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
292 | 1 | 14µs | 1 | 4µs | [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
293 | 1 | 8µs | 1 | 4µs | [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
294 | 1 | 900ns | |||
295 | 1 | 4µs | [% IF ( DidYouMean ) %] | ||
296 | 1 | 700ns | $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]", | ||
297 | 1 | 900ns | function() { | ||
298 | $(".searchsuggestion").parent().parent().css({ | ||||
299 | "border-color": "#F4ECBE", | ||||
300 | "background-color": "#FFFBEA" | ||||
301 | }); | ||||
302 | }); | ||||
303 | 1 | 8µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
304 | |||||
305 | }); | ||||
306 | |||||
307 | //]]> | ||||
308 | </script> | ||||
309 | </head> | ||||
310 | <body id="results"> | ||||
311 | 2 | 10µs | 1 | 3µs | [% IF ( opacfacets ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %] <div id="bd"> # spent 3µs making 1 call to Template::Stash::XS::get |
312 | |||||
313 | 1 | 26µs | 1 | 89.7ms | [% INCLUDE 'masthead.inc' %] <div id="yui-main"> # spent 89.7ms making 1 call to Template::Context::include |
314 | 1 | 2µs | <div class="yui-b"> | ||
315 | <div id="userresults" class="container"> | ||||
316 | [% IF ( DidYouMean ) %] <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div> | ||||
317 | 2 | 55µs | 2 | 25.0ms | [% END %] <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div> # spent 25.0ms making 1 call to Template::Context::include
# spent 7µs making 1 call to Template::Stash::XS::get |
318 | 2 | 4µs | [% IF ( koha_spsuggest ) %] Did you mean: <ul style="list-style: none;"> | ||
319 | [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %] <li> | ||||
320 | <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion %]">[% SPELL_SUGGES.spsuggestion %]</a> | ||||
321 | </li> | ||||
322 | [% END %] </ul> | ||||
323 | 1 | 31µs | 2 | 51µs | [% END %] [% IF ( query_error ) %] <div class="dialog alert"> # spent 43µs making 1 call to Template::Stash::XS::get
# spent 8µs making 1 call to Template::Stash::undefined |
324 | <h4>Error:</h4> | ||||
325 | [% query_error %] </div> | ||||
326 | 1 | 14µs | 2 | 19µs | [% END %] # spent 15µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::undefined |
327 | |||||
328 | <!-- Search Results Table --> | ||||
329 | 1 | 1µs | [% IF ( total ) %] | ||
330 | [% IF ( scan ) %] | ||||
331 | 1 | 1µs | <h1>Scan index:</h1> | ||
332 | <form action="/cgi-bin/koha/opac-search.pl" method="get"> | ||||
333 | <table> | ||||
334 | 1 | 2µs | <tr> | ||
335 | <td> | ||||
336 | Scan index for: <input type="text" name="q" id="scan-index" size="35" value="" /> | ||||
337 | </td> | ||||
338 | </tr> | ||||
339 | <tr> | ||||
340 | <td> | ||||
341 | <label for="scan-index">Indexed in:</label> | ||||
342 | <select name="idx" id="scan-index"> | ||||
343 | <option value="">Any word</option> | ||||
344 | <option value="kw,phr:">Any phrase</option> | ||||
345 | <option value="ti:">Title</option> | ||||
346 | <option value="ti,phr:">Title phrase</option> | ||||
347 | <option value="au,phr:">Author</option> | ||||
348 | <option value="su:">Subject</option> | ||||
349 | <option value="su,phr:">Subject phrase</option> | ||||
350 | <option value="se:">Series</option> | ||||
351 | <option value="pb:">Publisher</option> | ||||
352 | <option value="nt:">Notes</option> | ||||
353 | <option value="se:">Series Title</option> | ||||
354 | <option value="sn:">ISBN</option> | ||||
355 | <option value="ss:">ISSN</option> | ||||
356 | </select> | ||||
357 | <input type="hidden" name="scan" value="1" /> | ||||
358 | </td> | ||||
359 | </tr> | ||||
360 | </table> | ||||
361 | </form> | ||||
362 | |||||
363 | <form action="/cgi-bin/koha/opac-search.pl" method="get"> | ||||
364 | <table> | ||||
365 | <tr> | ||||
366 | <th>Term/Phrase</th> | ||||
367 | <th>Count</th> | ||||
368 | </tr> | ||||
369 | [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% IF ( SEARCH_RESULT.even ) %] <tr class="highlight"> | ||||
370 | [% ELSE %] <tr> | ||||
371 | [% END %] <td> | ||||
372 | <a href="/cgi-bin/koha/opac-search.pl?q=[% SEARCH_RESULT.scan_use |url %]"[% SEARCH_RESULT.title |url %]"">[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %]</a> | ||||
373 | </td> | ||||
374 | <td> | ||||
375 | [% SEARCH_RESULT.author %] </td> | ||||
376 | </tr> | ||||
377 | [% END %] </table> | ||||
378 | </form> | ||||
379 | [% ELSE %] <div class="searchresults"> | ||||
380 | <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form"> | ||||
381 | [% IF ( searchdesc ) %] [% FOREACH QUERY_INPUT IN QUERY_INPUTS %] <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/> | ||||
382 | [% END %] [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %] <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/> | ||||
383 | 4 | 7µs | [% END %] | ||
384 | 6 | 25µs | 2 | 28µs | [% END %] # spent 21µs making 1 call to Template::Iterator::AUTOLOAD
# spent 7µs making 1 call to Template::Stash::XS::get |
385 | 7 | 19µs | 5 | 89µs | # spent 81µs making 4 calls to Template::Context::filter, avg 20µs/call
# spent 8µs making 1 call to Template::Iterator::AUTOLOAD |
386 | 2 | 19µs | 1 | 8µs | <!-- TABLE RESULTS START --> # spent 8µs making 1 call to Template::Stash::XS::get |
387 | 1 | 24µs | 2 | 33µs | <table> # spent 27µs making 1 call to Template::Stash::XS::get
# spent 6µs making 1 call to Template::Stash::undefined |
388 | 5 | 127µs | 5 | 37µs | <tr><td colspan="6" class="resultscontrol"> # spent 35µs making 4 calls to Template::Stash::XS::get, avg 9µs/call
# spent 2µs making 1 call to UNIVERSAL::isa |
389 | 4 | 40µs | 3 | 25.4ms | <div class="resort"> <select id="sort_by" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select> <input type="submit" class="submit clearfix" id="sortsubmit" value="Go" /></div> # spent 25.3ms making 1 call to Template::Context::include
# spent 57µs making 1 call to Template::Config::iterator
# spent 1µs making 1 call to UNIVERSAL::isa |
390 | 6 | 18µs | 5 | 116µs | <div class="cartlist"> # spent 83µs making 4 calls to Template::Filters::html_filter, avg 21µs/call
# spent 33µs making 1 call to Template::Config::iterator |
391 | <!-- checkall, clearall are now needed for placehold --> | ||||
392 | <span class="checkall"></span> | ||||
393 | 5 | 9µs | 1 | 23µs | <span class="clearall"></span> # spent 23µs making 1 call to Template::Iterator::get_first |
394 | 5 | 34µs | 5 | 52µs | [% IF ( OpacHighlightedWords ) %] <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a> # spent 30µs making 2 calls to Template::Iterator::get_next, avg 15µs/call
# spent 15µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Iterator::get_first
# spent 4µs making 1 call to Template::Stash::undefined |
395 | 3 | 30µs | 2 | 9µs | <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a> # spent 4µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::XS::set |
396 | 3 | 30µs | 2 | 9µs | [% END %] [% IF ( opacbookbag || virtualshelves ) %] <span class="addto"></span> # spent 5µs making 1 call to Template::Stash::XS::get
# spent 4µs making 1 call to Template::Stash::XS::set |
397 | 4 | 40µs | 2 | 19µs | [% END %] <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span> # spent 16µs making 1 call to Template::Stash::XS::set
# spent 3µs making 1 call to Template::Stash::XS::get |
398 | 5 | 14µs | 1 | 4µs | <div id="holdDetails"></div> # spent 4µs making 1 call to Template::Stash::XS::set |
399 | 4 | 7µs | |||
400 | 3 | 15µs | [% IF ( TagsInputEnabled && loggedinusername ) %] <span id="tagsel_span"> | ||
401 | 2 | 6µs | <input id="tagsel_tag" class="submit" type="submit" value="Tag"/> | ||
402 | </span> | ||||
403 | 1 | 2µs | <span id="tagsel_form" style="display:none"> | ||
404 | 1 | 900ns | <label for="tagsel_new">New tag:</label> | ||
405 | <input name="tagsel_new" id="tagsel_new" maxlength="100" /> | ||||
406 | <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add" /> | ||||
407 | 1 | 1µs | <a href="#" id="tagsel_cancel">(done)</a> | ||
408 | </span> | ||||
409 | <span id="tagsel_status" class="tagsel_tatus" style="display:none;"> | ||||
410 | Tag status here. </span> | ||||
411 | 1 | 8µs | 1 | 3µs | [% END %] </div> # spent 3µs making 1 call to Template::Stash::XS::get |
412 | |||||
413 | </td></tr> | ||||
414 | <!-- Actual Search Results --> | ||||
415 | 1 | 800ns | [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] | ||
416 | [% UNLESS ( loop.odd ) %] | ||||
417 | <tr class="highlight"> | ||||
418 | [% ELSE %] <tr> | ||||
419 | 125 | 2.57ms | 150 | 1.93ms | [% END %] <td class="select selectcol">[% IF ( opacbookbag ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% ELSE %] [% IF ( virtualshelves ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% ELSE %] [% IF ( RequestOnOpac ) %][% UNLESS ( SEARCH_RESULT.norequests ) %][% IF ( opacuserlogin ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% END %][% END %][% END %][% END %][% END %]</td> # spent 1.81ms making 125 calls to Template::Stash::XS::get, avg 14µs/call
# spent 119µs making 25 calls to Template::Iterator::odd, avg 5µs/call |
420 | 150 | 884µs | 50 | 400µs | <td class="select selectcol">[% UNLESS suppress_result_number %][% SEARCH_RESULT.result_number %].[% END %]</td> # spent 400µs making 50 calls to Template::Stash::XS::get, avg 8µs/call |
421 | 25 | 22µs | |||
422 | [% IF !item_level_itypes || BiblioItemtypeImage == 'Koha' %] [% UNLESS ( noItemTypeImages ) %] <td class="itypecol"> | ||||
423 | 13 | 72µs | [% IF ( SEARCH_RESULT.imageurl ) %] <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" alt="[% SEARCH_RESULT.description %]" /> | ||
424 | 25 | 24µs | [% END %] [% IF ( SEARCH_RESULT.score_avg ) %] <img src="[% themelang %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/> | ||
425 | [% END %] </td> | ||||
426 | 50 | 615µs | 50 | 352µs | [% END %] [% END %] [% IF ( AuthorisedValueImages ) %] <td class="itypecol"> # spent 352µs making 50 calls to Template::Stash::XS::get, avg 7µs/call |
427 | [% FOREACH authorised_value_image IN SEARCH_RESULT.authorised_value_images %] [% IF ( authorised_value_image.imageurl ) %] <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]"> | ||||
428 | [% END %] [% END %] </td> | ||||
429 | 25 | 370µs | 50 | 704µs | [% END %] <td> # spent 509µs making 25 calls to Template::Stash::XS::get, avg 20µs/call
# spent 195µs making 25 calls to Template::Stash::undefined, avg 8µs/call |
430 | [% IF ( COinSinOPACResults ) %] | ||||
431 | 25 | 22µs | [% IF ( SEARCH_RESULT.coins ) %] | ||
432 | 25 | 569µs | 25 | 258µs | <!-- COinS / Openurl --><span class="Z3988" title="[% SEARCH_RESULT.coins %]"></span> # spent 258µs making 25 calls to Template::Stash::XS::get, avg 10µs/call |
433 | 100 | 1.38ms | 75 | 726µs | [% END %] [% END %] [% IF ( OPACXSLTResultsDisplay ) %] [% SEARCH_RESULT.XSLTResultsRecord %] [% ELSE %] [% IF ( BiblioDefaultViewmarc ) %]<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title"> # spent 726µs making 75 calls to Template::Stash::XS::get, avg 10µs/call |
434 | 100 | 88µs | [% ELSE %] [% IF ( BiblioDefaultViewisbd ) %]<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title"> | ||
435 | [% ELSE %]<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title"> | ||||
436 | 25 | 19µs | [% END %] [% END %] [% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield|html %][% END %]</a> | ||
437 | [% IF ( SEARCH_RESULT.author ) %]by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% SEARCH_RESULT.author |url %]" title="Search for works by this author" class="author">[% SEARCH_RESULT.author %]</a> | ||||
438 | [% ELSE %] [% END %] <span class="results_summary publisher"><span class="label">Publication:</span> | ||||
439 | 25 | 26µs | [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %][% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode|html %][% END %][% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear %] [% ELSE %][% IF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate %][% END %][% END %] [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages %][% END %] [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes|html %][% END %] [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size %][% END %] [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %] </span> | ||
440 | [% IF ( SEARCH_RESULT.summary ) %] <span class="result_summary"> | ||||
441 | [% SEARCH_RESULT.summary %] </span> | ||||
442 | [% END %] [% IF ( SEARCH_RESULT.copyrightdate ) %]<span class="results_summary date"><span class="label">Date:</span>[% SEARCH_RESULT.copyrightdate %]</span>[% END %] <span class="results_summary availability"> | ||||
443 | <span class="label">Availability:</span> | ||||
444 | 25 | 30µs | [% IF ( SEARCH_RESULT.available_items_loop.size() ) %] <span class="available"><strong>Copies available:</strong> | ||
445 | [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %] [% IF available_items_loo.this_branch %]<span class="highlight-row-results">[% ELSE %]<span>[% END %] [% IF ( singleBranchMode ) %] [% available_items_loo.location %] [% ELSE %] [% available_items_loo.branchname %] [% END %] [% IF ( OPACItemsResultsDisplay ) %] [% UNLESS ( singleBranchMode ) %][% available_items_loo.location %][% END %] [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% available_items_loo.itemcallnumber |url %]">[% available_items_loo.itemcallnumber %]</a>][% END %] [% END %] ([% available_items_loo.count %]), </span> | ||||
446 | [% END %] </span> | ||||
447 | [% ELSE %] [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %] [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %] <span id="alternateholdings">[% ALTERNATEHOLDING.holding %]</span>, [% END %] [% ELSE %] <span class="unavailable">No items available:</span> | ||||
448 | [% END %] [% END %] <span class="unavailable"> | ||||
449 | [% IF ( SEARCH_RESULT.onloancount ) %] Issued ([% SEARCH_RESULT.onloancount %]), [% END %] [% IF ( SEARCH_RESULT.wthdrawncount ) %] Withdrawn ([% SEARCH_RESULT.wthdrawncount %]), [% END %] [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount %]),[% END %][% END %] [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount %]),[% END %] [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount %]),[% END %] [% IF ( SEARCH_RESULT.onholdcount ) %] On reserve ([% SEARCH_RESULT.onholdcount %]),[% END %] [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount %]),[% END %] </span> | ||||
450 | </span> | ||||
451 | 25 | 368µs | 25 | 220µs | [% END %] [% IF ( SEARCH_RESULT.score_avg ) %] <span class="result_summary"> # spent 220µs making 25 calls to Template::Stash::XS::get, avg 9µs/call |
452 | 25 | 13µs | <img src="[% themelang %]/../images/Star[% SEARCH_RESULT.score_int %].gif" title="" style="max-height: 15px;"/> <span style="font-size: 85%;">[% SEARCH_RESULT.score_avg %] / 5 (on [% SEARCH_RESULT.num_scores %] rates)</span> | ||
453 | [% IF ( SEARCH_RESULT.num_critics ) %] <span class="social_data">[% SEARCH_RESULT.num_critics %] Internet user critics</span> | ||||
454 | [% END %] [% IF ( SEARCH_RESULT.num_critics_pro ) %] <span class="social_data">[% SEARCH_RESULT.num_critics_pro %] Professional critics</span> | ||||
455 | [% END %] [% IF ( SEARCH_RESULT.num_videos ) %] <span class="social_data">[% SEARCH_RESULT.num_videos %] Video extracts</span> | ||||
456 | 25 | 16µs | [% END %] [% IF ( SEARCH_RESULT.num_quotations ) %] <span class="social_data">[% SEARCH_RESULT.num_quotations %] Quotations</span> | ||
457 | [% END %] </span> | ||||
458 | 50 | 1.05ms | 100 | 1.53ms | [% END %] [% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %] [% IF ( TagsShowEnabled ) %] [% IF ( SEARCH_RESULT.TagLoop.size ) %] <div class="results_summary tags"><span class="label">Tags:</span> # spent 1.22ms making 50 calls to Template::Stash::XS::get, avg 24µs/call
# spent 310µs making 50 calls to Template::Stash::undefined, avg 6µs/call |
459 | <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li> | ||||
460 | [% END %] </ul> | ||||
461 | </div> | ||||
462 | 100 | 1.64ms | 100 | 1.51ms | [% END %] [% END %] [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<span class="results_summary"><span class="label">Match:</span> [% SEARCH_RESULT.searchhighlightblob %]</span>[% END %] [% IF ( OpacStarRatings == 'all' ) %] <div class="results_summary ratings"> # spent 1.35ms making 75 calls to Template::Stash::XS::get, avg 18µs/call
# spent 163µs making 25 calls to Template::Stash::undefined, avg 7µs/call |
463 | 50 | 84µs | |||
464 | [% FOREACH i IN [ 1 2 3 4 5 ] %] [% IF ( SEARCH_RESULT.rating_avg == i ) %] <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber %]" value="[% i %]" checked="checked" disabled="disabled" /> | ||||
465 | [% ELSE %] <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber %]" value="[% i %]" disabled="disabled" /> | ||||
466 | 25 | 34µs | [% END %] [% END %] <input type="hidden" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> | ||
467 | <input type="hidden" name="loggedinuser" value="[% loggedinuser %]" /> | ||||
468 | |||||
469 | [% IF ( SEARCH_RESULT.rating_total ) > 0 %] <span id="rating_total_[% SEARCH_RESULT.biblionumber %]"> ([% SEARCH_RESULT.rating_total %] votes)</span> | ||||
470 | [% ELSE %] <br /> | ||||
471 | [% END %] </div> | ||||
472 | 25 | 337µs | 25 | 206µs | [% END %] <span class="results_summary actions"><span class="label">Actions:</span> # spent 206µs making 25 calls to Template::Stash::XS::get, avg 8µs/call |
473 | 50 | 538µs | 25 | 308µs | [% IF ( RequestOnOpac ) %] [% UNLESS ( SEARCH_RESULT.norequests ) %] [% IF ( opacuserlogin ) %] [% IF ( AllowOnShelfHolds ) %] <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Place reserve</a><!-- add back when available 0 holds in queue--> # spent 308µs making 25 calls to Template::Stash::XS::get, avg 12µs/call |
474 | 25 | 39µs | [% ELSE %] | ||
475 | [% IF ( SEARCH_RESULT.itemsissued ) %] | ||||
476 | 25 | 12µs | <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Place reserve</a><!-- add back when available 0 holds in queue--> | ||
477 | [% END %] | ||||
478 | 25 | 248µs | 25 | 127µs | [% END %] # spent 127µs making 25 calls to Template::Stash::XS::get, avg 5µs/call |
479 | 75 | 381µs | 25 | 172µs | [% END %] # spent 172µs making 25 calls to Template::Stash::XS::get, avg 7µs/call |
480 | 50 | 662µs | 50 | 816µs | [% END %] # spent 666µs making 25 calls to Template::Stash::XS::get, avg 27µs/call
# spent 150µs making 25 calls to Template::Stash::undefined, avg 6µs/call |
481 | 50 | 300µs | 25 | 156µs | [% END %] # spent 156µs making 25 calls to Template::Stash::XS::get, avg 6µs/call |
482 | 25 | 19µs | |||
483 | 25 | 15µs | [% IF ( TagsInputEnabled ) %] | ||
484 | [% IF ( loggedinusername ) %] | ||||
485 | <a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a> | ||||
486 | 25 | 15µs | <span id="tagform[% SEARCH_RESULT.biblionumber %]" class="tag_results_input" style="display:none;"> | ||
487 | <label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag(s), separated by a comma:</label> | ||||
488 | <input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" /> | ||||
489 | 25 | 16µs | <input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" /> | ||
490 | <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber %]" href="#">(done)</a> | ||||
491 | </span> | ||||
492 | 25 | 18µs | <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;"> | ||
493 | Tag status here. </span> | ||||
494 | [% ELSIF ( loop.first ) %]<span id="login4tags">Log in to add tags.</span> | ||||
495 | 25 | 258µs | 25 | 145µs | [% END %] [% END %] [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a> # spent 145µs making 25 calls to Template::Stash::XS::get, avg 6µs/call |
496 | 50 | 717µs | 75 | 862µs | [% END %][% END %][% END %] [% IF ( opacbookbag ) %] [% IF ( SEARCH_RESULT.incart ) %] <a class="addtocart cart[% SEARCH_RESULT.biblionumber %]" href="#" onclick="addRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">In your cart</a> <a class="cartRemove cartR[% SEARCH_RESULT.biblionumber %]" href="#" onclick="delSingleRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">(remove)</a> # spent 705µs making 50 calls to Template::Stash::XS::get, avg 14µs/call
# spent 156µs making 25 calls to Template::Stash::undefined, avg 6µs/call |
497 | 100 | 1.76ms | 100 | 981µs | [% ELSE %] <a class="addtocart cart[% SEARCH_RESULT.biblionumber %]" href="#" onclick="addRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">Add to cart</a> <a style="display:none;" class="cartRemove cartR[% SEARCH_RESULT.biblionumber %]" href="#" onclick="delSingleRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">(remove)</a> # spent 981µs making 100 calls to Template::Stash::XS::get, avg 10µs/call |
498 | 150 | 1.12ms | 75 | 1.01ms | [% END %] [% END %] </span> # spent 861µs making 50 calls to Template::Stash::XS::get, avg 17µs/call
# spent 147µs making 25 calls to Template::Stash::undefined, avg 6µs/call |
499 | 25 | 18µs | </td><td> | ||
500 | 50 | 439µs | 25 | 215µs | <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]"> # spent 215µs making 25 calls to Template::Stash::XS::get, avg 9µs/call |
501 | 175 | 2.96ms | 175 | 3.61ms | [% IF ( OPACLocalCoverImages ) %]<span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>[% END %] [% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %][% IF ( using_https ) %]<span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" /></span>[% ELSE %]<span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" /></span>[% END %][% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] [% IF ( SyndeticsEnabled ) %] [% IF ( SyndeticsCoverImages ) %] [% IF SEARCH_RESULT.normalized_isbn %] [% IF ( using_https ) %] <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" /></span> # spent 2.76ms making 125 calls to Template::Stash::XS::get, avg 22µs/call
# spent 659µs making 25 calls to Template::Iterator::AUTOLOAD, avg 26µs/call
# spent 186µs making 25 calls to Template::Stash::undefined, avg 7µs/call |
502 | 100 | 195µs | [% ELSE %] <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" /></span> | ||
503 | 50 | 84µs | [% END %] [% ELSE %] <span class="no-image">No cover image available</span> | ||
504 | 125 | 880µs | 75 | 501µs | [% END %] [% END %] [% END %] [% IF ( GoogleJackets ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></span>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] [% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn %]<span style="block" title="[% SEARCH_RESULT.biblionumber %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] </a> # spent 501µs making 75 calls to Template::Stash::XS::get, avg 7µs/call |
505 | 75 | 598µs | 75 | 1.76ms | [% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% SEARCH_RESULT.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /></a>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] [% IF ( IDreamBooksResults ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<div class="idbresult" style="display: none;"> # spent 1.01ms making 25 calls to Template::Context::filter, avg 41µs/call
# spent 542µs making 25 calls to Template::Stash::XS::get, avg 22µs/call
# spent 203µs making 25 calls to Template::Stash::undefined, avg 8µs/call |
506 | [% IF ( IDreamBooksReviews ) %] <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]#idb_critic_reviews"> | ||||
507 | 25 | 47µs | [% ELSE %] <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]"> | ||
508 | 25 | 606µs | 25 | 330µs | [% END %] [% SEARCH_RESULT.normalized_isbn %]</a></div> # spent 330µs making 25 calls to Template::Stash::XS::get, avg 13µs/call |
509 | 25 | 388µs | 25 | 153µs | [% END %][% END %] </td> # spent 153µs making 25 calls to Template::Stash::XS::get, avg 6µs/call |
510 | 25 | 112µs | 25 | 594µs | </tr> # spent 594µs making 25 calls to Template::Filters::url_filter, avg 24µs/call |
511 | [% END %] </table> | ||||
512 | 25 | 16µs | </form> | ||
513 | 76 | 119µs | 1 | 10µs | <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl"> # spent 10µs making 1 call to Template::Iterator::AUTOLOAD |
514 | 51 | 48µs | <!-- The value will be set by holdBiblioNums() in basket.js --> | ||
515 | 26 | 184µs | 26 | 555µs | <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/> # spent 552µs making 25 calls to Template::Iterator::get_next, avg 22µs/call
# spent 4µs making 1 call to Template::Stash::XS::get |
516 | </form> | ||||
517 | 2 | 7µs | 1 | 1µs | </div> # spent 1µs making 1 call to UNIVERSAL::isa |
518 | 29 | 117µs | 5 | 5.68ms | [% END %] <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div> # spent 5.55ms making 1 call to Template::Context::include
# spent 101µs making 1 call to Template::Config::iterator
# spent 23µs making 1 call to Template::Stash::XS::get
# spent 6µs making 1 call to Template::Stash::undefined
# spent 5µs making 1 call to Template::Stash::XS::set |
519 | 2 | 4µs | |||
520 | 5 | 66µs | 5 | 54µs | [% ELSE %] [% END %] [% IF ( suggestion ) %] [% IF ( AnonSuggestions ) %]<div class="suggestion">Not finding what you're looking for?<br /> Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div>[% ELSE %][% IF ( loggedinusername ) %]<div class="suggestion">Not finding what you're looking for?<br /> Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div>[% END %][% END %] [% END %] </div> # spent 46µs making 4 calls to Template::Stash::XS::get, avg 11µs/call
# spent 8µs making 1 call to Template::Stash::undefined |
521 | 3 | 12µs | </div> | ||
522 | 1 | 6µs | 1 | 25µs | </div> # spent 25µs making 1 call to Template::Iterator::get_first |
523 | 2 | 13µs | 1 | 6µs | [% IF ( opacfacets ) %] <div class="yui-b"><div id="facetcontainer" class="container"> # spent 6µs making 1 call to Template::Stash::XS::get |
524 | 2 | 33µs | 1 | 18µs | <!-- FACETS START --> # spent 18µs making 1 call to Template::Stash::XS::set |
525 | 2 | 70µs | 1 | 55.9ms | [% INCLUDE 'opac-facets.inc' %] # spent 55.9ms making 1 call to Template::Context::include |
526 | 3 | 7µs | <!-- FACETS END --> | ||
527 | 26 | 43µs | </div></div> | ||
528 | 26 | 59µs | 1 | 7µs | [% END %] </div> # spent 7µs making 1 call to Template::Stash::XS::get |
529 | 3 | 4µs | |||
530 | [% IF ( LibraryThingForLibrariesID ) %] [% IF ( using_https ) %] <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha" type="text/javascript"></script> | ||||
531 | [% ELSE %] <script src="http://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha" type="text/javascript"></script> | ||||
532 | 2 | 95µs | 3 | 35.5ms | [% END %] [% END %] [% INCLUDE 'opac-bottom.inc' %] # spent 35.5ms making 1 call to Template::Context::include
# spent 23µs making 1 call to Template::Stash::XS::get
# spent 6µs making 1 call to Template::Stash::undefined |
533 | 1 | 5µs | |||
- - | |||||
535 | 1 | 800ns | |||
- - | |||||
538 | 1 | 1µs | |||
- - | |||||
540 | 1 | 50µs | |||
- - | |||||
543 | 1 | 183µs |