Lines 442-448
Link Here
|
442 |
*/ |
442 |
*/ |
443 |
function GetZ3950Terms(){ |
443 |
function GetZ3950Terms(){ |
444 |
var frameworkcode = document.getElementById("frameworkcode").value; |
444 |
var frameworkcode = document.getElementById("frameworkcode").value; |
445 |
var strQuery = "&frameworkcode=" + frameworkcode; |
445 |
var strQuery = "&frameworkcode=" + encodeURIComponent(frameworkcode); |
446 |
var mandatories = new Array(); |
446 |
var mandatories = new Array(); |
447 |
var mandatories_label = new Array(); |
447 |
var mandatories_label = new Array(); |
448 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
448 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
Lines 459-465
Link Here
|
459 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
459 |
for(var i=0,len=mandatories.length; i<len ; i++){ |
460 |
var field_value = document.getElementById(mandatories[i]).value; |
460 |
var field_value = document.getElementById(mandatories[i]).value; |
461 |
if( field_value ){ |
461 |
if( field_value ){ |
462 |
strQuery += "&"+mandatories_label[i]+"="+field_value; |
462 |
strQuery += "&"+encodeURIComponent(mandatories_label[i])+"="+encodeURIComponent(field_value); |
463 |
} |
463 |
} |
464 |
} |
464 |
} |
465 |
return strQuery; |
465 |
return strQuery; |
466 |
- |
|
|