Conversation
| if ( urlParams.startdate && urlParams.enddate ) { | ||
| aqString += ' @date = "' + urlParams.startdate.replaceAll('-','/') + '..' + urlParams.enddate.replaceAll('-','/') + '"'; | ||
| } |
There was a problem hiding this comment.
@ipaksc Can you also include the cases where there would only be a startdate provided, and when there is only an enddate provided?
There was a problem hiding this comment.
- i would
replace
if ( urlParams.startdate ) {
aqString += ' @date = "' + urlParams.startdate.replaceAll('-','/') + '..' + currentDate() + '"';
}
with
if ( urlParams.startdate ) {
aqString += ' @date >="' + urlParams.startdate.replaceAll('-','/') + '"';
}
- shouldn't the enddate be inclusuve
if ( urlParams.enddate ) {
aqString += ' @date <= "' + urlParams.enddate.replaceAll('-','/') + '"';
}
src/connector.js
Outdated
| if( declaredtype === "documents d'information" ){ | ||
| declaredtype = "documents d'information"; | ||
| } |
There was a problem hiding this comment.
@ipaksc What are you trying to accomplish exactly here? What's happening at the source that forces you to change the single quote to its HTML entity instead? Then, please evaluate if the code needs to be adapted, or if it should be the source instead.
If it's the source, then let's try to keep this as generic and flexible as possible, by determining if the source would ALWAYS have ' instead of '; and if that's the case then you should simply do a something like this instead of an IF condition:
| if( declaredtype === "documents d'information" ){ | |
| declaredtype = "documents d'information"; | |
| } | |
| declaredtype = declaredtype.replace( /'/g, ''' ); |
There was a problem hiding this comment.
@GormFrank The request comes as "documents d'information" we have to match "documents d'information" in the index or the filter will not work.
|
PR #49 supersedes this one, so I am going to close this pull request. |

No description provided.