Changeset 30822
- Timestamp:
- 2016-09-19T11:30:23+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/berrybasket/berrycheckout.js
r29322 r30822 2 2 var urlonly = false; 3 3 var mailinfo = new Array(); 4 mailinfo['address'] = "To: ";5 mailinfo['cc'] = "CC: ";6 mailinfo['bcc'] = "Bcc: ";7 mailinfo['subject'] = "Subject: ";4 mailinfo['address'] = gs.text.berry.to; 5 mailinfo['cc'] = gs.text.berry.cc; 6 mailinfo['bcc'] = gs.text.berry.bcc; 7 mailinfo['subject'] = gs.text.berry.subject; 8 8 var textwin; 9 9 var mailwin; … … 47 47 urlonly = false; 48 48 49 this.value='URL only view';49 this.value=gs.text.berry.url_only; 50 50 51 51 populateUrlsAndMetadata(parea); … … 60 60 urlonly = true; 61 61 62 this.value='URL and Metadata view';62 this.value=gs.text.berry.url_and_metadata; 63 63 64 64 return; … … 114 114 115 115 if (docList.length == 0){ 116 content.appendChild(document.createTextNode("Your berry basket is empty."));116 content.appendChild(document.createTextNode(gs.text.berry.empty_basket)); 117 117 return; 118 118 } … … 193 193 berryCheckoutPageClear(); 194 194 if (docList.length == 0){ 195 content.appendChild(document.createTextNode("Your berry basket is empty."));195 content.appendChild(document.createTextNode(gs.text.berry.empty_basket)); 196 196 return; 197 197 } … … 241 241 input.setAttribute("class", "sendbutton"); 242 242 input.setAttribute("type", "button"); 243 input.setAttribute("value", "send");243 input.setAttribute("value", gs.text.berry.send); 244 244 content.appendChild(input); 245 245 } … … 252 252 253 253 if (docList.length == 0){ 254 content.appendChild(document.createTextNode("Your berry basket is empty."));254 content.appendChild(document.createTextNode(gs.text.berry.empty_basket)); 255 255 return; 256 256 } … … 298 298 input.setAttribute("class", "sendbutton"); 299 299 input.setAttribute("type", "button"); 300 input.setAttribute("value", "send");300 input.setAttribute("value", gs.text.berry.send); 301 301 content.appendChild(input); 302 302 … … 313 313 if (urlonly) 314 314 { 315 cb.value='URL and Metadata view';315 cb.value=gs.text.berry.url_and_metadata; 316 316 } 317 317 else 318 318 { 319 cb.value='URL only view';319 cb.value=gs.text.berry.url_only; 320 320 } 321 321 … … 382 382 var url =root_url+"?a=d&c="+doc['collection']+"&d="+doc['name']+"\n"; 383 383 var metadata = ""; 384 for (var metaItem in doc){ 385 metadata += metaItem+": "+ doc[metaItem]+"\n"; 386 } 384 if (doc['title']) { 385 metadata += gs.text.berry.doc_title+": "+doc['title']+"\n"; 386 } 387 if (doc['root_title']) { 388 metadata += gs.text.berry.doc_root_title+": "+doc['root_title']+"\n"; 389 390 } 391 if (doc['name']) { 392 metadata += gs.text.berry.doc_name+": "+doc['name']+"\n"; 393 } 394 if (doc['collection']) { 395 metadata += gs.text.berry.doc_collection+": "+doc['collection']+"\n"; 396 } 397 if (doc['date']) { 398 metadata += gs.text.berry.doc_date+": "+doc['date']+"\n"; 399 } 387 400 fulltext +=url+metadata+"\n"; 388 401 } … … 412 425 success: function(o) { 413 426 var result = o.responseText; 414 alert("Sending mail Succeeded");427 alert(gs.text.berry.send_success); 415 428 } , 416 429 failure: function(o) { 417 alert("Sending mail falied");430 alert(gs.text.berry.send_fail); 418 431 } 419 432 }
Note:
See TracChangeset
for help on using the changeset viewer.