add url encoding to filter values - fixing #3174
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@49290 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
f3866f424a
commit
efc7f31043
|
@ -122,7 +122,7 @@ export class SearchPageComponent {
|
|||
var allFqs = "";
|
||||
|
||||
this.queryParameters = new Map<string,string>();
|
||||
|
||||
|
||||
for(var i=0; i< this.refineFields.length ; i++){
|
||||
var filterId = this.refineFields[i];
|
||||
|
||||
|
@ -136,7 +136,7 @@ export class SearchPageComponent {
|
|||
countvalues++;
|
||||
var paramId = this.fieldIdsMap[filterId].param;
|
||||
// parameters+='&' + paramId+ '='+ value;//+"&" + this.fieldIdsMap[paramId].operator + "="+((countvalues == 1)?"and":"or");
|
||||
fq+=(fq.length > 0 ? " " + "or" + " ":"" ) + filterId +" exact " +value;// StringUtils.quote(value) ;
|
||||
fq+=(fq.length > 0 ? " " + "or" + " ":"" ) + filterId +" exact " +StringUtils.URIEncode(value);
|
||||
}
|
||||
if(countvalues > 0){
|
||||
fq="&fq="+fq;
|
||||
|
|
Loading…
Reference in New Issue