diff --git a/services/searchResearchResults.service.ts b/services/searchResearchResults.service.ts index 29c53dce..9872d559 100644 --- a/services/searchResearchResults.service.ts +++ b/services/searchResearchResults.service.ts @@ -144,7 +144,6 @@ export class SearchResearchResultsService { url += "?format=json"; url += "&fq=" + params; url += "&sortBy=resultdateofacceptance,descending"; - url += "&fq=" + encodeURIComponent( "resultacceptanceyear <= " + (new Date()).getFullYear()); url += "&page=" + (page - 1) + "&size=" + size; return this.http.get((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url) diff --git a/utils/fetchEntitiesClasses/fetchResearchResults.class.ts b/utils/fetchEntitiesClasses/fetchResearchResults.class.ts index be80ca6d..cff53b97 100644 --- a/utils/fetchEntitiesClasses/fetchResearchResults.class.ts +++ b/utils/fetchEntitiesClasses/fetchResearchResults.class.ts @@ -47,7 +47,7 @@ export class FetchResearchResults { public getResultsForCommunity(resultType:string, communityId: string, page: number, size: number, properties:EnvProperties, contextId = null) { this.searchUtils.status = this.errorCodes.LOADING; - 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( + this.subscriptions.push(this._searchResearchResultsService.search(resultType, "", "&fq=communityid=" + communityId + (contextId?'&fq=categoryid=' + encodeURIComponent(contextId):''), page, size, "resultdateofacceptance,descending", [], properties).subscribe( data => { this.searchUtils.totalResults = data[0]; this.results = data[1];