Project

General

Profile

« Previous | Next » 

Revision 61004

[Library|Trunk]
-revert change filtering recent results with values <= current year

View differences:

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