Revision 61004
Added by Argiro Kokogiannaki almost 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/services/searchResearchResults.service.ts | ||
---|---|---|
144 | 144 |
url += "?format=json"; |
145 | 145 |
url += "&fq=" + params; |
146 | 146 |
url += "&sortBy=resultdateofacceptance,descending"; |
147 |
url += "&fq=" + encodeURIComponent( "resultacceptanceyear <= " + (new Date()).getFullYear()); |
|
148 | 147 |
url += "&page=" + (page - 1) + "&size=" + size; |
149 | 148 |
|
150 | 149 |
return this.http.get((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url) |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/fetchEntitiesClasses/fetchResearchResults.class.ts | ||
---|---|---|
47 | 47 |
|
48 | 48 |
public getResultsForCommunity(resultType:string, communityId: string, page: number, size: number, properties:EnvProperties, contextId = null) { |
49 | 49 |
this.searchUtils.status = this.errorCodes.LOADING; |
50 |
this.subscriptions.push(this._searchResearchResultsService.search(resultType, "", "&fq=" + encodeURIComponent( "resultacceptanceyear <= " + (new Date()).getFullYear()) + "&fq=communityid=" + communityId + (contextId?'&fq=categoryid=' + encodeURIComponent(contextId):''), page, size, "resultdateofacceptance,descending", [], properties).subscribe(
|
|
50 |
this.subscriptions.push(this._searchResearchResultsService.search(resultType, "", "&fq=communityid=" + communityId + (contextId?'&fq=categoryid=' + encodeURIComponent(contextId):''), page, size, "resultdateofacceptance,descending", [], properties).subscribe( |
|
51 | 51 |
data => { |
52 | 52 |
this.searchUtils.totalResults = data[0]; |
53 | 53 |
this.results = data[1]; |
Also available in: Unified diff
[Library|Trunk]
-revert change filtering recent results with values <= current year