| 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 | Template::Document::__ANON__[:541] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 92 | 655µ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 | [% IF ( OpacStarRatings == 'all' ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.rating.js"></script> | ||||
| 3 | 20 | 93µ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 | 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 | 3 | 9µ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 | //<![CDATA[ | ||||
| 7 | 2 | 2µs | [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %] | ||
| 8 | 1 | 3µ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 | 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 | if (document.bookbag_form.biblionumber[i].checked) { | ||||
| 14 | checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/"); | ||||
| 15 | checkedCount++; | ||||
| 16 | } | ||||
| 17 | } | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | if (checkedCount > 0) { | ||||
| 21 | holdBiblioNums(checkedBiblioNums); | ||||
| 22 | } 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 | 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 | 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 | 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 | 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 | 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 | $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]"); | ||||
| 98 | }); | ||||
| 99 | 7 | 23µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
| 100 | |||||
| 101 | 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 | 4µs | var element = this; # spent 4µs making 1 call to Template::Stash::XS::get | ||
| 105 | |||||
| 106 | 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 | 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 | 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 | 7µs | [% END %] # spent 7µs making 1 call to Template::Stash::XS::get | ||
| 133 | |||||
| 134 | 1 | 4µs | [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %] # spent 4µs making 1 call to Template::Stash::XS::get | ||
| 135 | |||||
| 136 | [% IF ( opacbookbag ) %] | ||||
| 137 | [% IF ( virtualshelves ) %] | ||||
| 138 | 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 | 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 | 4µ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 | 2 | 7µ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 | 4 | 19µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
| 156 | [% ELSE %] | ||||
| 157 | var param1 = "<label for=\"addto\">"+_("Add to list: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; | ||||
| 158 | [% 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 | [% END %] | ||||
| 165 | [% END %] | ||||
| 166 | param1 += "<\/select> <input type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />"; | ||||
| 167 | 3 | 10µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
| 168 | |||||
| 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 | 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 | return false; | ||||
| 184 | }); | ||||
| 185 | [% ELSE %] | ||||
| 186 | $("#addto").click(function(){ | ||||
| 187 | cartList(); | ||||
| 188 | return false; | ||||
| 189 | }); | ||||
| 190 | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get | ||
| 191 | 3 | 9µs | 1 | 3µs | [% END %] # spent 3µs making 1 call to Template::Stash::XS::get |
| 192 | |||||
| 193 | function cartList(){ | ||||
| 194 | if($("#addto").find("option:selected").attr("value") == "addtolist"){ | ||||
| 195 | var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s",""); | ||||
| 196 | if (vShelfAdd()) { | ||||
| 197 | Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd()); | ||||
| 198 | } | ||||
| 199 | return false; | ||||
| 200 | } 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 | 6µ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 | Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd()); | ||||
| 208 | 1 | 4µ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 | } | ||||
| 211 | if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){ | ||||
| 212 | addMultiple(); | ||||
| 213 | return false; | ||||
| 214 | } | ||||
| 215 | } | ||||
| 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 | 4µs | [% END %] # spent 4µs making 1 call to Template::Stash::XS::get | ||
| 233 | 3 | 10µs | 1 | 46µs | [% END %] # spent 46µs making 1 call to Template::Stash::XS::get |
| 234 | 3 | 52µs | 1 | 4µs | [% END %] # spent 4µs making 1 call to Template::Stash::XS::get |
| 235 | $("#holdDetails").hide(); | ||||
| 236 | |||||
| 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 | 4 | 9µs | // ensure that we don't have "" at the end of the array, which can | ||
| 240 | // break the highlighter | ||||
| 241 | 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 | q_array = q_array.splice(0,-1); | ||||
| 243 | } | ||||
| 244 | highlightOn(); | ||||
| 245 | $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;}); | ||||
| 246 | 8 | 21µ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 | |||||
| 248 | 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 | 4 | 13µs | $("#tagsel_cancel").click(function(){ | ||
| 254 | tagCanceled(); | ||||
| 255 | 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 | 4 | 43µs | }); | ||
| 261 | |||||
| 262 | 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 | 14µs | $(this).hide(); # spent 14µs making 1 call to Template::Stash::XS::get | ||
| 266 | $("#tagform"+thisid).show(); | ||||
| 267 | 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 | 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 | 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 | 12µs | }); # spent 12µs making 1 call to Template::Filters::html_filter | ||
| 280 | $(".tagbutton").click(function(){ | ||||
| 281 | var thisid = $(this).attr("title"); | ||||
| 282 | var tag = $("#newtag"+thisid).val(); | ||||
| 283 | if (!tag || (tag == "")) { | ||||
| 284 | alert(MSG_NO_TAG_SPECIFIED); | ||||
| 285 | return false; | ||||
| 286 | } | ||||
| 287 | KOHA.Tags.add_tag_button(thisid, tag); | ||||
| 288 | return false; | ||||
| 289 | }); | ||||
| 290 | 1 | 7µs | [% END %] # spent 7µs making 1 call to Template::Stash::XS::get | ||
| 291 | 1 | 4µs | [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %] # spent 4µs making 1 call to Template::Stash::XS::get | ||
| 292 | 1 | 4µs | [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] # spent 4µs making 1 call to Template::Stash::XS::get | ||
| 293 | 1 | 4µs | [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] # spent 4µs making 1 call to Template::Stash::XS::get | ||
| 294 | |||||
| 295 | [% IF ( DidYouMean ) %] | ||||
| 296 | $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]", | ||||
| 297 | function() { | ||||
| 298 | $(".searchsuggestion").parent().parent().css({ | ||||
| 299 | "border-color": "#F4ECBE", | ||||
| 300 | "background-color": "#FFFBEA" | ||||
| 301 | }); | ||||
| 302 | }); | ||||
| 303 | 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 | 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 | 89.7ms | [% INCLUDE 'masthead.inc' %] <div id="yui-main"> # spent 89.7ms making 1 call to Template::Context::include | ||
| 314 | <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 | 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 | [% 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 | 11µ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 | 5µ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 | [% IF ( total ) %] | ||||
| 330 | [% IF ( scan ) %] | ||||
| 331 | <h1>Scan index:</h1> | ||||
| 332 | <form action="/cgi-bin/koha/opac-search.pl" method="get"> | ||||
| 333 | <table> | ||||
| 334 | <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 | 16 | 92µs | [% END %] | ||
| 384 | 16 | 161µ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 | 11 | 60µ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 | 1 | 8µs | <!-- TABLE RESULTS START --> # spent 8µs making 1 call to Template::Stash::XS::get | ||
| 387 | 1 | 6µ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 | 1 | 9µ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 | 1 | 4µ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 | 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 | 1 | 23µs | <span class="clearall"></span> # spent 23µs making 1 call to Template::Iterator::get_first | ||
| 394 | 1 | 13µ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 | 1 | 18µ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 | 1 | 3µ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 | 1 | 1µ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 | 14 | 34µs | 1 | 4µs | <div id="holdDetails"></div> # spent 4µs making 1 call to Template::Stash::XS::set |
| 399 | |||||
| 400 | [% IF ( TagsInputEnabled && loggedinusername ) %] <span id="tagsel_span"> | ||||
| 401 | <input id="tagsel_tag" class="submit" type="submit" value="Tag"/> | ||||
| 402 | </span> | ||||
| 403 | <span id="tagsel_form" style="display:none"> | ||||
| 404 | <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 | <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 | 3µs | [% END %] </div> # spent 3µs making 1 call to Template::Stash::XS::get | ||
| 412 | |||||
| 413 | </td></tr> | ||||
| 414 | <!-- Actual Search Results --> | ||||
| 415 | [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] | ||||
| 416 | [% UNLESS ( loop.odd ) %] | ||||
| 417 | <tr class="highlight"> | ||||
| 418 | [% ELSE %] <tr> | ||||
| 419 | 188 | 1.64ms | 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 | 50 | 471µ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 | |||||
| 422 | [% IF !item_level_itypes || BiblioItemtypeImage == 'Koha' %] [% UNLESS ( noItemTypeImages ) %] <td class="itypecol"> | ||||
| 423 | [% IF ( SEARCH_RESULT.imageurl ) %] <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" alt="[% SEARCH_RESULT.description %]" /> | ||||
| 424 | [% END %] [% IF ( SEARCH_RESULT.score_avg ) %] <img src="[% themelang %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/> | ||||
| 425 | [% END %] </td> | ||||
| 426 | 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 | 1 | 114µ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 | [% IF ( SEARCH_RESULT.coins ) %] | ||||
| 432 | 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 | 150 | 1.17ms | 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 | [% 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 | [% 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 | [% 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 | [% 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 | 75 | 505µ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 | <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 | [% END %] [% IF ( SEARCH_RESULT.num_quotations ) %] <span class="social_data">[% SEARCH_RESULT.num_quotations %] Quotations</span> | ||||
| 457 | [% END %] </span> | ||||
| 458 | 1 | 277µs | 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 | 75 | 760µs | 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 | |||||
| 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 | [% 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 | 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 | 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 | [% ELSE %] | ||||
| 475 | [% IF ( SEARCH_RESULT.itemsissued ) %] | ||||
| 476 | <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 | 75 | 581µs | 25 | 127µs | [% END %] # spent 127µs making 25 calls to Template::Stash::XS::get, avg 5µs/call |
| 479 | 75 | 285µs | 25 | 172µs | [% END %] # spent 172µs making 25 calls to Template::Stash::XS::get, avg 7µs/call |
| 480 | 75 | 488µ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 | 75 | 526µs | 25 | 156µs | [% END %] # spent 156µs making 25 calls to Template::Stash::XS::get, avg 6µs/call |
| 482 | |||||
| 483 | [% IF ( TagsInputEnabled ) %] | ||||
| 484 | [% IF ( loggedinusername ) %] | ||||
| 485 | <a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a> | ||||
| 486 | <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 | <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 | <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 | 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 | 25 | 387µ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 | 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 | 300 | 2.67ms | 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 | </td><td> | ||||
| 500 | 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 | 225 | 2.48ms | 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 | [% 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 | 100 | 872µs | [% END %] [% ELSE %] <span class="no-image">No cover image available</span> | ||
| 504 | 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 | 1 | 118µ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 | [% ELSE %] <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]"> | ||||
| 508 | 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 | 153µs | [% END %][% END %] </td> # spent 153µs making 25 calls to Template::Stash::XS::get, avg 6µs/call | ||
| 510 | 25 | 594µs | </tr> # spent 594µs making 25 calls to Template::Filters::url_filter, avg 24µs/call | ||
| 511 | [% END %] </table> | ||||
| 512 | </form> | ||||
| 513 | 11 | 120µ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 | <!-- The value will be set by holdBiblioNums() in basket.js --> | ||||
| 515 | 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 | 13µs | 1 | 1µs | </div> # spent 1µs making 1 call to UNIVERSAL::isa |
| 518 | 13 | 86µ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 | |||||
| 520 | 9 | 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 | </div> | ||||
| 522 | 1 | 25µs | </div> # spent 25µs making 1 call to Template::Iterator::get_first | ||
| 523 | 1 | 12µ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 | 1 | 18µs | <!-- FACETS START --> # spent 18µs making 1 call to Template::Stash::XS::set | ||
| 525 | 1 | 55.9ms | [% INCLUDE 'opac-facets.inc' %] # spent 55.9ms making 1 call to Template::Context::include | ||
| 526 | <!-- FACETS END --> | ||||
| 527 | 1275 | 9.78ms | </div></div> | ||
| 528 | 3 | 73µs | 1 | 7µs | [% END %] </div> # spent 7µs making 1 call to Template::Stash::XS::get |
| 529 | |||||
| 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 | 1 | 5µ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 | |||||
| - - | |||||
| 535 | 1 | 800ns | |||
| - - | |||||
| 540 | 1 | 50µs | |||
| - - | |||||
| 543 | 1 | 183µs |