Lines 449-455
Link Here
|
449 |
*/ |
449 |
*/ |
450 |
function GetZ3950Terms(){ |
450 |
function GetZ3950Terms(){ |
451 |
var frameworkcode = document.getElementById("frameworkcode").value; |
451 |
var frameworkcode = document.getElementById("frameworkcode").value; |
452 |
var strQuery = "&frameworkcode=" + frameworkcode; |
452 |
var strQuery = "&frameworkcode=" + encodeURIComponent(frameworkcode); |
453 |
var mandatories = new Array(); |
453 |
var mandatories = new Array(); |
454 |
var mandatories_label = new Array(); |
454 |
var mandatories_label = new Array(); |
455 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
455 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
Lines 466-472
Link Here
|
466 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
466 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
467 |
var field_value = document.getElementById(mandatories[i]).value; |
467 |
var field_value = document.getElementById(mandatories[i]).value; |
468 |
if( field_value ){ |
468 |
if( field_value ){ |
469 |
strQuery += "&"+mandatories_label[i]+"="+field_value; |
469 |
strQuery += "&"+encodeURIComponent(mandatories_label[i])+"="+encodeURIComponent(field_value); |
470 |
} |
470 |
} |
471 |
} |
471 |
} |
472 |
return strQuery; |
472 |
return strQuery; |
473 |
- |
|
|