Lines 116-122
function addRecord(val, selection,NoMsgAlert) {
Link Here
|
116 |
return 0; |
116 |
return 0; |
117 |
} |
117 |
} |
118 |
if (! NoMsgAlert ) { |
118 |
if (! NoMsgAlert ) { |
119 |
showCartUpdate( __("This item is already in your cart") ); |
119 |
showCartUpdate( __("This record is already in your cart") ); |
120 |
} |
120 |
} |
121 |
} |
121 |
} |
122 |
else { |
122 |
else { |
Lines 133-139
function addRecord(val, selection,NoMsgAlert) {
Link Here
|
133 |
return 1; |
133 |
return 1; |
134 |
} |
134 |
} |
135 |
if (! NoMsgAlert ) { |
135 |
if (! NoMsgAlert ) { |
136 |
showCartUpdate( __("This item has been added to your cart") ); |
136 |
showCartUpdate( __("This record has been added to your cart") ); |
137 |
updateLink(val,"add"); |
137 |
updateLink(val,"add"); |
138 |
} |
138 |
} |
139 |
} |
139 |
} |
Lines 205-224
function addSelRecords(valSel) {
Link Here
|
205 |
var msg = ""; |
205 |
var msg = ""; |
206 |
if (nbAdd) { |
206 |
if (nbAdd) { |
207 |
if (i > nbAdd) { |
207 |
if (i > nbAdd) { |
208 |
msg = __("%s item(s) added to your cart").format(nbAdd); |
208 |
msg = __("%s record(s) added to your cart").format(nbAdd); |
209 |
msg += "<br/>"; |
209 |
msg += "<br/>"; |
210 |
msg += __("%s already in your cart").format((i-nbAdd)); |
210 |
msg += __("%s already in your cart").format((i-nbAdd)); |
211 |
} |
211 |
} |
212 |
else { |
212 |
else { |
213 |
msg = __("%s item(s) added to your cart").format(nbAdd); |
213 |
msg = __("%s record(s) added to your cart").format(nbAdd); |
214 |
} |
214 |
} |
215 |
} |
215 |
} |
216 |
else { |
216 |
else { |
217 |
if (i < 1) { |
217 |
if (i < 1) { |
218 |
msg = __("No item was selected"); |
218 |
msg = __("No record was selected"); |
219 |
} |
219 |
} |
220 |
else { |
220 |
else { |
221 |
msg = __("No item was added to your cart (already in your cart)!"); |
221 |
msg = __("No record was added to your cart (already in your cart)!"); |
222 |
} |
222 |
} |
223 |
} |
223 |
} |
224 |
showCartUpdate(msg); |
224 |
showCartUpdate(msg); |
Lines 257-263
function delSingleRecord(biblionumber){
Link Here
|
257 |
writeCookie( nameCookie, valCookie ); |
257 |
writeCookie( nameCookie, valCookie ); |
258 |
updateBasket( arrayRecords.length-1 ); |
258 |
updateBasket( arrayRecords.length-1 ); |
259 |
updateLink(biblionumber,"del"); |
259 |
updateLink(biblionumber,"del"); |
260 |
showCartUpdate(__("The item has been removed from your cart")); |
260 |
showCartUpdate(__("The record has been removed from your cart")); |
261 |
} |
261 |
} |
262 |
|
262 |
|
263 |
function delSelRecords() { |
263 |
function delSelRecords() { |
Lines 308-314
function delSelRecords() {
Link Here
|
308 |
document.location = CGIBIN + "basket/basket.pl?" + strCookie; |
308 |
document.location = CGIBIN + "basket/basket.pl?" + strCookie; |
309 |
} |
309 |
} |
310 |
else { |
310 |
else { |
311 |
alert(__("No item was selected")); |
311 |
alert(__("No record was selected")); |
312 |
} |
312 |
} |
313 |
} |
313 |
} |
314 |
|
314 |
|
Lines 355-361
function delBasket(context,rep) {
Link Here
|
355 |
function quit() { |
355 |
function quit() { |
356 |
if (document.myform.records.value) { |
356 |
if (document.myform.records.value) { |
357 |
var rep = false; |
357 |
var rep = false; |
358 |
rep = confirm(__("Are you sure you want to remove the selected items?")); |
358 |
rep = confirm(__("Are you sure you want to remove the selected records?")); |
359 |
if (rep) { |
359 |
if (rep) { |
360 |
delSelRecords(); |
360 |
delSelRecords(); |
361 |
} |
361 |
} |
Lines 409-418
function showLess() {
Link Here
|
409 |
function updateBasket(updated_value,target) { |
409 |
function updateBasket(updated_value,target) { |
410 |
if(target){ |
410 |
if(target){ |
411 |
target.$('#basketcount').html(" <span>("+updated_value+")</span>"); |
411 |
target.$('#basketcount').html(" <span>("+updated_value+")</span>"); |
412 |
target.$('#cartDetails').html(__("Items in your cart: %s").format(updated_value)); |
412 |
target.$('#cartDetails').html(__("Records in your cart: %s").format(updated_value)); |
413 |
} else { |
413 |
} else { |
414 |
$('#basketcount').html(" <span>("+updated_value+")</span>"); |
414 |
$('#basketcount').html(" <span>("+updated_value+")</span>"); |
415 |
$('#cartDetails').html(__("Items in your cart: %s").format(updated_value)); |
415 |
$('#cartDetails').html(__("Records in your cart: %s").format(updated_value)); |
416 |
} |
416 |
} |
417 |
} |
417 |
} |
418 |
|
418 |
|
Lines 426-432
function addSelToShelf() {
Link Here
|
426 |
if(items){ |
426 |
if(items){ |
427 |
document.location = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber="+items; |
427 |
document.location = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber="+items; |
428 |
} else { |
428 |
} else { |
429 |
alert(__("No item was selected")); |
429 |
alert(__("No record was selected")); |
430 |
} |
430 |
} |
431 |
} |
431 |
} |
432 |
|
432 |
|
Lines 441-447
function vShelfAdd(biblist) {
Link Here
|
441 |
bibs.push("biblionumber=" + biblist[i].value); |
441 |
bibs.push("biblionumber=" + biblist[i].value); |
442 |
} |
442 |
} |
443 |
} |
443 |
} |
444 |
if (bibs.length === 0) { showListsUpdate(__("No item was selected")); } |
444 |
if (bibs.length === 0) { showListsUpdate(__("No record was selected")); } |
445 |
return bibs.join("&"); |
445 |
return bibs.join("&"); |
446 |
} else { |
446 |
} else { |
447 |
var bibnums = getContextBiblioNumbers(); |
447 |
var bibnums = getContextBiblioNumbers(); |
Lines 451-457
function vShelfAdd(biblist) {
Link Here
|
451 |
} |
451 |
} |
452 |
return bibs.join("&"); |
452 |
return bibs.join("&"); |
453 |
} else { |
453 |
} else { |
454 |
showListsUpdate(__("No item was selected")); |
454 |
showListsUpdate(__("No record was selected")); |
455 |
} |
455 |
} |
456 |
} |
456 |
} |
457 |
} |
457 |
} |
458 |
- |
|
|