Project

General

Profile

« Previous | Next » 

Revision 44262

In Projects search component and search PAge: create the proper query using url parameters, mark as checked the proper filters after getting the results from search, apply changes in other components so they can work too.

View differences:

search.component.ts
1 1
import {Component, Input, Output, EventEmitter, ViewChild} from '@angular/core';
2 2
import {Observable}       from 'rxjs/Observable';
3 3
import {ActivatedRoute, Router} from '@angular/router';
4
import {Location} from '@angular/common';
4 5

  
5 6
import { SearchPublicationsComponent } from '../searchPublications.component';
6 7
import { SearchDataprovidersComponent } from '../searchDataproviders.component';
......
132 133
      private _searchDatasetsService: SearchDatasetsService,
133 134
      private _searchOrganizationsService: SearchOrganizationsService,
134 135
      private _searchPeopleService: SearchPeopleService,
135
      private _refineResultsService: RefineResultsService) {
136
      private _refineResultsService: RefineResultsService, private location: Location ) {
136 137
    this.searchPublicationsComponent = new SearchPublicationsComponent(this.route, this._searchPublicationsService);
137 138
    this.searchDataProvidersComponent = new SearchDataprovidersComponent(this.route,this._searchDataprovidersService);
138
    this.searchProjectsComponent = new SearchProjectsComponent(this.route, this._searchProjectsService,_refineResultsService);
139
    this.searchProjectsComponent = new SearchProjectsComponent(this.route, this._searchProjectsService);
139 140
    this.searchDatasetsComponent = new SearchDatasetsComponent(this.route, this._searchDatasetsService,_refineResultsService);
140 141
    this.searchOrganizationsComponent = new SearchOrganizationsComponent(this.route, this._searchOrganizationsService,_refineResultsService);
141 142
    this.searchPeopleComponent = new SearchPeopleComponent(this.route, this._searchPeopleService);

Also available in: Unified diff