Skip to content

Commit

Permalink
Maj module er
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsag committed Oct 19, 2021
1 parent 189bdbf commit 27c73e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/ClientEr.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ ClientEr.prototype.getFeatures = function (typeName, params) {
if (typeof params._start !== 'undefined') {
queryParams['startIndex'] = params._start;
}

if (typeof params._propertyNames !== 'undefined') {
queryParams['propertyName'] = params._propertyNames.join();
}
Expand Down
4 changes: 2 additions & 2 deletions lib/buildErCqlFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function bboxToFilter(bbox){
parts.push('updated_at AFTER '+ value_date[0]+' AND updated_at BEFORE '+ value_date[1]);

} else if (name == 'namepr') { //Traiter le cas du produit avec le parametre name
parts.push(' name ILIKE \'%'+ params[name] + '%\' OR name_complement ILIKE \'%'+ params[name] + '%\'');

parts.push(' name ILIKE \'%'+ params[name] + '%\' OR name_complement ILIKE \'%'+ params[name] + '%\'');
} else {
parts.push(name+'=\''+ params[name]+'\'');
}
Expand Down

0 comments on commit 27c73e8

Please sign in to comment.