Lines 5-11
Link Here
|
5 |
<script type="text/javascript"> |
5 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
6 |
//<![CDATA[ |
7 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
7 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
8 |
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved."); |
8 |
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold."); |
|
|
9 |
var q_array = new Array(); // will hold search terms, if present |
9 |
<!-- TMPL_IF NAME="AmazonEnabled" --> |
10 |
<!-- TMPL_IF NAME="AmazonEnabled" --> |
10 |
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html |
11 |
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html |
11 |
function verify_images() { |
12 |
function verify_images() { |
Lines 21-27
function verify_images() {
Link Here
|
21 |
} |
22 |
} |
22 |
}); |
23 |
}); |
23 |
} |
24 |
} |
24 |
var q_array = new Array(); // will hold search terms, if present |
|
|
25 |
|
25 |
|
26 |
$(window).load(function() { |
26 |
$(window).load(function() { |
27 |
verify_images(); |
27 |
verify_images(); |
Lines 30-42
$(window).load(function() {
Link Here
|
30 |
function Dopop(link) { |
30 |
function Dopop(link) { |
31 |
newin=window.open(link,'popup','width=500,height=500,toolbar=false,scrollbars=yes,resizeable=yes'); |
31 |
newin=window.open(link,'popup','width=500,height=500,toolbar=false,scrollbars=yes,resizeable=yes'); |
32 |
} |
32 |
} |
|
|
33 |
function cartList(){ |
34 |
if($("#addto").find("option:selected").attr("value") == "addtolist"){ |
35 |
var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s",""); |
36 |
if (vShelfAdd()) { |
37 |
Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vShelfAdd()); |
38 |
} |
39 |
return false; |
40 |
} else if($("#addto").find("option:selected").attr("value") == "newlist"){ |
41 |
if (vShelfAdd()) { |
42 |
Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vShelfAdd()); |
43 |
} |
44 |
return false; |
45 |
} |
46 |
if($("#addto").find("option:selected").attr("value") == "addtocart"){ |
47 |
addMultiple(); |
48 |
return false; |
49 |
} |
50 |
} |
51 |
$(window).load(function() { |
52 |
new YAHOO.widget.Button("cartsubmit", { onclick: { fn: cartList }}); |
53 |
}); |
33 |
$(document).ready(function() { |
54 |
$(document).ready(function() { |
|
|
55 |
$("#placeholdc").empty(); |
34 |
$('#sortbyform').find("input:submit").hide(); |
56 |
$('#sortbyform').find("input:submit").hide(); |
35 |
$('#sort_by').change(function() { |
57 |
$('#sort_by').change(function() { |
36 |
$('#sortbyform').submit(); |
58 |
$('#sortbyform').submit(); |
37 |
}); |
59 |
}); |
38 |
|
|
|
39 |
|
40 |
$(".addtocart").show(); |
60 |
$(".addtocart").show(); |
41 |
var param1 = "<label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; |
61 |
var param1 = "<label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; |
42 |
<!-- TMPL_IF name="intranetbookbag" --> param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; <!-- /TMPL_IF --> |
62 |
<!-- TMPL_IF name="intranetbookbag" --> param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; <!-- /TMPL_IF --> |
Lines 48-54
$(".addtocart").show();
Link Here
|
48 |
param1 +="<\/optgroup><option value=\"newlist\">"+_("[ New List ]")+"<\/option>" |
68 |
param1 +="<\/optgroup><option value=\"newlist\">"+_("[ New List ]")+"<\/option>" |
49 |
<!-- /TMPL_IF --> |
69 |
<!-- /TMPL_IF --> |
50 |
<!-- /TMPL_IF --> |
70 |
<!-- /TMPL_IF --> |
51 |
param1 += "<\/select> <input type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />"; |
71 |
param1 += "<\/select> <input id=\"cartsubmit\" type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />"; |
52 |
$('#sortsubmit').hide(); |
72 |
$('#sortsubmit').hide(); |
53 |
$("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"<\/a>"); |
73 |
$("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"<\/a>"); |
54 |
$("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"<\/a>"); |
74 |
$("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"<\/a>"); |
Lines 63-88
$(".addtocart").show();
Link Here
|
63 |
|
83 |
|
64 |
$("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>"); |
84 |
$("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>"); |
65 |
|
85 |
|
66 |
function cartList(){ |
|
|
67 |
if($("#addto").find("option:selected").attr("value") == "addtolist"){ |
68 |
var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s",""); |
69 |
if (vShelfAdd()) { |
70 |
Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vShelfAdd()); |
71 |
} |
72 |
return false; |
73 |
} else if($("#addto").find("option:selected").attr("value") == "newlist"){ |
74 |
if (vShelfAdd()) { |
75 |
Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vShelfAdd()); |
76 |
} |
77 |
return false; |
78 |
} |
79 |
if($("#addto").find("option:selected").attr("value") == "addtocart"){ |
80 |
addMultiple(); |
81 |
return false; |
82 |
} |
83 |
|
84 |
} |
85 |
|
86 |
$("#selection_ops").show(); |
86 |
$("#selection_ops").show(); |
87 |
$(".selection").show(); |
87 |
$(".selection").show(); |
88 |
<!-- TMPL_IF NAME="query_desc" --> |
88 |
<!-- TMPL_IF NAME="query_desc" --> |
Lines 167-172
function GetZ3950Terms(){
Link Here
|
167 |
<!-- /TMPL_LOOP --> |
167 |
<!-- /TMPL_LOOP --> |
168 |
return strQuery; |
168 |
return strQuery; |
169 |
} |
169 |
} |
|
|
170 |
|
171 |
YAHOO.util.Event.onContentReady("searchheader", function () { |
172 |
new YAHOO.widget.Button( "z3950submit", { onclick: { fn: PopupZ3950 }}); |
173 |
<!-- TMPL_IF NAME="holdfor" --> |
174 |
var onButtonClick = function () { |
175 |
$("#holdFor").val("<!-- TMPL_VAR NAME="holdfor_cardnumber" -->"); |
176 |
placeHold(); |
177 |
} |
178 |
var HoldForButtonMenu = [ |
179 |
{ text: "Place hold", onclick: { fn: placeHold }}, |
180 |
{ text: "Place hold for <!-- TMPL_VAR NAME="holdfor_firstname" --> <!-- TMPL_VAR NAME="holdfor_surname" --> (<!-- TMPL_VAR NAME="holdfor_cardnumber" -->)", onclick: { fn: onButtonClick }} |
181 |
]; |
182 |
|
183 |
var HoldForButton = new YAHOO.widget.Button({ |
184 |
type: "split", |
185 |
label: "Place hold", |
186 |
name: "holdfor", |
187 |
menu: HoldForButtonMenu, |
188 |
container: "placeholdc", |
189 |
onclick: { fn: placeHold } |
190 |
}); |
191 |
<!-- TMPL_ELSE --> |
192 |
new YAHOO.widget.Button({ |
193 |
id: "placehold", |
194 |
type: "link", |
195 |
label: _("Place hold"), |
196 |
container: "placeholdc", |
197 |
onclick: { fn: placeHold } |
198 |
}); |
199 |
<!-- /TMPL_IF --> |
200 |
}); // YAHOO onContentReady |
170 |
//]]> |
201 |
//]]> |
171 |
</script> |
202 |
</script> |
172 |
</head> |
203 |
</head> |
Lines 231-244
function GetZ3950Terms(){
Link Here
|
231 |
| |
262 |
| |
232 |
<a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a> |
263 |
<a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a> |
233 |
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a> |
264 |
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a> |
|
|
265 |
| |
266 |
<span class="addto"></span> |
234 |
<!-- TMPL_IF NAME="CAN_user_reserveforothers" --> |
267 |
<!-- TMPL_IF NAME="CAN_user_reserveforothers" --> |
235 |
<!-- TMPL_IF NAME="DisplayMultiPlaceHold" --> |
268 |
<!-- TMPL_IF NAME="DisplayMultiPlaceHold" --> |
236 |
<input type="button" onclick="placeHold(); return false;" value="Place Hold"/> |
269 |
| <span id="placeholdc"><input type="button" id="placehold" onclick="placeHold(); return false;" value="Place Hold"/></span> |
237 |
<!-- /TMPL_IF --> |
270 |
<!-- /TMPL_IF --> |
238 |
<!-- /TMPL_IF --> |
271 |
<!-- /TMPL_IF --> |
239 |
<span class="addto"></span> |
|
|
240 |
|
272 |
|
241 |
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --><input type="button" onclick="PopupZ3950(); return false;" value="Z39.50 Search"/><!-- /TMPL_IF --> |
273 |
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --> | <input type="button" id="z3950submit" onclick="PopupZ3950(); return false;" value="Z39.50 Search"/><!-- /TMPL_IF --> |
242 |
</div> |
274 |
</div> |
243 |
</div> |
275 |
</div> |
244 |
<!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF --> |
276 |
<!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF --> |
Lines 451-456
function GetZ3950Terms(){
Link Here
|
451 |
<span class="noholdstext">No holds allowed</span> |
483 |
<span class="noholdstext">No holds allowed</span> |
452 |
<!-- TMPL_ELSE --> |
484 |
<!-- TMPL_ELSE --> |
453 |
<a id="reserve_<!-- TMPL_VAR NAME="biblionumber" -->" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a> |
485 |
<a id="reserve_<!-- TMPL_VAR NAME="biblionumber" -->" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a> |
|
|
486 |
<!-- TMPL_IF NAME="holdfor" --> | <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&findborrower=<!-- TMPL_VAR NAME="holdfor_cardnumber" -->">Hold for <!-- TMPL_VAR NAME="holdfor_firstname" --> <!-- TMPL_VAR NAME="holdfor_surname" --> (<!-- TMPL_VAR NAME="holdfor_cardnumber" -->)</a><!-- /TMPL_IF --> |
454 |
<!-- /TMPL_IF --> |
487 |
<!-- /TMPL_IF --> |
455 |
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --> |
488 |
<!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --> |
456 |
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit record</a> |
489 |
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit record</a> |
Lines 551-556
function GetZ3950Terms(){
Link Here
|
551 |
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> |
584 |
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> |
552 |
<!-- Value will be set here by placeHold() --> |
585 |
<!-- Value will be set here by placeHold() --> |
553 |
<input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" /> |
586 |
<input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" /> |
|
|
587 |
<input type="text" name="findborrower" id="holdFor" value="" /> |
554 |
<input type="hidden" name="multi_hold" value="1"/> |
588 |
<input type="hidden" name="multi_hold" value="1"/> |
555 |
</form> |
589 |
</form> |
556 |
|
590 |
|