1 |
43953
|
argiro.kok
|
import {Component, Input, Output, EventEmitter, ViewChild} from '@angular/core';
|
2 |
|
|
import {Observable} from 'rxjs/Observable';
|
3 |
|
|
import {ActivatedRoute, Router} from '@angular/router';
|
4 |
44262
|
argiro.kok
|
import {Location} from '@angular/common';
|
5 |
43990
|
konstantin
|
|
6 |
44619
|
argiro.kok
|
import { SearchPublicationsComponent } from '../simple/searchPublications.component';
|
7 |
|
|
import { SearchDataprovidersComponent } from '../simple/searchDataproviders.component';
|
8 |
|
|
import { SearchProjectsComponent } from '../simple/searchProjects.component';
|
9 |
|
|
import { SearchDatasetsComponent } from '../simple/searchDatasets.component';
|
10 |
|
|
import { SearchOrganizationsComponent } from '../simple/searchOrganizations.component';
|
11 |
|
|
import { SearchPeopleComponent } from '../simple/searchPeople.component';
|
12 |
43959
|
argiro.kok
|
|
13 |
43953
|
argiro.kok
|
import {SearchPublicationsService} from '../../services/searchPublications.service';
|
14 |
43959
|
argiro.kok
|
import {SearchDataprovidersService} from '../../services/searchDataproviders.service';
|
15 |
43990
|
konstantin
|
import {SearchProjectsService} from '../../services/searchProjects.service';
|
16 |
|
|
import {SearchDatasetsService} from '../../services/searchDatasets.service';
|
17 |
44035
|
konstantin
|
import {SearchPeopleService} from '../../services/searchPeople.service';
|
18 |
43990
|
konstantin
|
import {SearchOrganizationsService} from '../../services/searchOrganizations.service';
|
19 |
43959
|
argiro.kok
|
|
20 |
43953
|
argiro.kok
|
import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
21 |
45417
|
argiro.kok
|
import {SearchFields} from '../../utils/properties/searchFields';
|
22 |
43953
|
argiro.kok
|
|
23 |
|
|
@Component({
|
24 |
|
|
selector: 'search-find',
|
25 |
|
|
template: `
|
26 |
|
|
|
27 |
45417
|
argiro.kok
|
<div class="uk-margin-top">
|
28 |
43953
|
argiro.kok
|
<div class="page-header">
|
29 |
|
|
<h1>{{pageTitle}}</h1>
|
30 |
|
|
</div>
|
31 |
45417
|
argiro.kok
|
<div class="uk-grid">
|
32 |
|
|
<div class="uk-width-1-1 uk-margin uk-panel uk-panel-box uk-panel-box-default">
|
33 |
43953
|
argiro.kok
|
|
34 |
|
|
<search-form [(keyword)]=keyword (keywordChange)="keywordChanged($event)"></search-form>
|
35 |
45417
|
argiro.kok
|
</div>
|
36 |
|
|
<div class=" uk-grid uk-margin-top uk-width-1-1">
|
37 |
43953
|
argiro.kok
|
|
38 |
45020
|
argiro.kok
|
<ul class="uk-tab uk-tab-left uk-width-large-1-5 uk-width-small-1-1 " data-uk-tab="{connect:'#searchtabs'}">
|
39 |
|
|
<li (click)="searchPublications()" >
|
40 |
|
|
<a href="#pubsTab">
|
41 |
45417
|
argiro.kok
|
Publications {{((keyword.length > 0)?'('+searchPublicationsComponent.searchUtils.totalResults+')':'')}}
|
42 |
43953
|
argiro.kok
|
</a>
|
43 |
|
|
</li>
|
44 |
44300
|
konstantin
|
<li (click)="searchDatasets()">
|
45 |
45020
|
argiro.kok
|
<a href="#dataTab" (click)="searchDatasets()">
|
46 |
45417
|
argiro.kok
|
Datasets {{((keyword.length > 0)?'('+searchDatasetsComponent.searchUtils.totalResults+')':'')}}
|
47 |
43953
|
argiro.kok
|
</a>
|
48 |
|
|
</li>
|
49 |
45020
|
argiro.kok
|
<li (click)="searchProjects()" >
|
50 |
|
|
<a href="#projectsTab">
|
51 |
45417
|
argiro.kok
|
Projects {{((keyword.length > 0)?'('+searchProjectsComponent.searchUtils.totalResults+')':'')}}
|
52 |
43953
|
argiro.kok
|
</a>
|
53 |
44300
|
konstantin
|
</li>
|
54 |
45020
|
argiro.kok
|
<li (click)="searchDataProviders()" >
|
55 |
|
|
<a href="#dataProviderTab">
|
56 |
45417
|
argiro.kok
|
Data Providers {{((keyword.length > 0)?'('+searchDataProvidersComponent.searchUtils.totalResults+')':'')}}
|
57 |
43953
|
argiro.kok
|
</a>
|
58 |
|
|
</li>
|
59 |
45020
|
argiro.kok
|
<li (click)="searchOrganizations()" >
|
60 |
|
|
<a href="#organizationsTab" >
|
61 |
45417
|
argiro.kok
|
Organizations {{((keyword.length > 0)?'('+searchOrganizationsComponent.searchUtils.totalResults+')':'')}}
|
62 |
43953
|
argiro.kok
|
</a>
|
63 |
|
|
</li>
|
64 |
45020
|
argiro.kok
|
<li (click)="searchPeople()" >
|
65 |
|
|
<a href="#peopleTab" >
|
66 |
45417
|
argiro.kok
|
People {{((keyword.length > 0)?'('+searchPeopleComponent.searchUtils.totalResults+')':'')}}
|
67 |
43953
|
argiro.kok
|
</a>
|
68 |
|
|
</li>
|
69 |
45020
|
argiro.kok
|
|
70 |
|
|
|
71 |
|
|
|
72 |
43953
|
argiro.kok
|
</ul>
|
73 |
45020
|
argiro.kok
|
|
74 |
|
|
<ul id="searchtabs" class="uk-switcher uk-margin-left uk-width-large-3-4 uk-width-small-1-1">
|
75 |
|
|
<li id="pubsTab" class="uk-active">
|
76 |
45417
|
argiro.kok
|
<div *ngIf = "keyword.length > 0">
|
77 |
|
|
<div class = "uk-text-right" *ngIf = "searchPublicationsComponent.searchUtils.totalResults> 10" ><a [href] = "linkToSearchPublications" >View all {{searchPublicationsComponent.searchUtils.totalResults}} results</a></div>
|
78 |
|
|
<search-result [(results)]="searchPublicationsComponent.results" [(status)]= "searchPublicationsComponent.status"></search-result>
|
79 |
|
|
</div>
|
80 |
|
|
<div *ngIf = "keyword.length == 0 && activeTab=='publications'" >
|
81 |
|
|
<browse-entities entityName="publication" baseUrl="/search/find/publications" [refineFields]=searchFields.RESULT_REFINE_FIELDS></browse-entities>
|
82 |
|
|
</div>
|
83 |
45020
|
argiro.kok
|
</li>
|
84 |
|
|
<li id="dataTab">
|
85 |
45417
|
argiro.kok
|
<div *ngIf = "keyword.length > 0">
|
86 |
|
|
<div class = "uk-text-right" *ngIf = "searchDatasetsComponent.searchUtils.totalResults> 10" ><a [href] = "linkToSearchDatasets" >View all {{searchDatasetsComponent.searchUtils.totalResults}} results</a></div>
|
87 |
|
|
<search-result [(results)]="searchDatasetsComponent.results" [(status)]= "searchDatasetsComponent.status"></search-result>
|
88 |
|
|
</div>
|
89 |
|
|
<div *ngIf = "keyword.length == 0 && activeTab=='datasets'" >
|
90 |
|
|
<browse-entities entityName="dataset" baseUrl="/search/find/datasets" [refineFields]=searchFields.RESULT_REFINE_FIELDS></browse-entities>
|
91 |
|
|
</div>
|
92 |
45020
|
argiro.kok
|
</li>
|
93 |
|
|
<li id="projectsTab" >
|
94 |
45417
|
argiro.kok
|
<div *ngIf = "keyword.length > 0">
|
95 |
|
|
<div class = "uk-text-right" *ngIf = "searchProjectsComponent.searchUtils.totalResults> 10" ><a [href] = "linkToSearchProjects" >View all {{searchProjectsComponent.searchUtils.totalResults}} results</a></div>
|
96 |
|
|
<search-result [(results)]="searchProjectsComponent.results" [(status)]= "searchProjectsComponent.status"></search-result>
|
97 |
|
|
</div>
|
98 |
|
|
<div *ngIf = "keyword.length == 0 && activeTab=='projects'" >
|
99 |
|
|
<browse-entities entityName="project" baseUrl="/search/find/projects" [refineFields]=searchFields.PROJECT_REFINE_FIELDS></browse-entities>
|
100 |
|
|
</div>
|
101 |
45020
|
argiro.kok
|
</li>
|
102 |
|
|
<li id="dataProviderTab">
|
103 |
45417
|
argiro.kok
|
<div *ngIf = "keyword.length > 0">
|
104 |
|
|
<div class = "uk-text-right" *ngIf = "searchDataProvidersComponent.searchUtils.totalResults> 10" ><a [href] = "linkToSearchDataproviders" >View all {{searchDataProvidersComponent.searchUtils.totalResults}} results</a></div>
|
105 |
|
|
<search-result [(results)]="searchDataProvidersComponent.results" [(status)]= "searchDataProvidersComponent.status"></search-result>
|
106 |
|
|
</div>
|
107 |
|
|
<div *ngIf = "keyword.length == 0 && activeTab=='dataproviders'" >
|
108 |
|
|
<browse-entities entityName="dataprovider" baseUrl="/search/find/dataproviders" [refineFields]=searchFields.DATASOURCE_REFINE_FIELDS></browse-entities>
|
109 |
|
|
</div>
|
110 |
45020
|
argiro.kok
|
</li>
|
111 |
|
|
<li id="organizationsTab" >
|
112 |
45417
|
argiro.kok
|
<div *ngIf = "keyword.length > 0">
|
113 |
|
|
<div class = "uk-text-right" *ngIf = "searchOrganizationsComponent.searchUtils.totalResults> 10" ><a [href] = "linkToSearchOrganizations" >View all {{searchOrganizationsComponent.searchUtils.totalResults}} results</a></div>
|
114 |
|
|
<search-result [(results)]="searchOrganizationsComponent.results" [(status)]= "searchOrganizationsComponent.status"></search-result>
|
115 |
|
|
</div>
|
116 |
|
|
<div *ngIf = "keyword.length == 0 && activeTab=='organizations'" >
|
117 |
|
|
<browse-entities entityName="organization" baseUrl="/search/find/organizations" [refineFields]=searchFields.ORGANIZATION_REFINE_FIELDS></browse-entities>
|
118 |
|
|
</div>
|
119 |
45020
|
argiro.kok
|
</li>
|
120 |
|
|
<li id="peopleTab">
|
121 |
45417
|
argiro.kok
|
<div *ngIf = "keyword.length > 0">
|
122 |
|
|
<div class = "uk-text-right" *ngIf = "searchPeopleComponent.searchUtils.totalResults> 10" ><a [href] = "linkToSearchPeople" >View all {{searchPeopleComponent.searchUtils.totalResults}} results</a></div>
|
123 |
|
|
<search-result [(results)]="searchPeopleComponent.results" [(status)]= "searchPeopleComponent.status"></search-result>
|
124 |
|
|
</div>
|
125 |
|
|
<div *ngIf = "keyword.length == 0 && activeTab=='people'" >
|
126 |
|
|
<div class="uk-alert uk-alert-info" role="alert">No person statistics found</div>
|
127 |
|
|
|
128 |
|
|
</div>
|
129 |
45020
|
argiro.kok
|
</li>
|
130 |
|
|
</ul>
|
131 |
43953
|
argiro.kok
|
</div>
|
132 |
45417
|
argiro.kok
|
|
133 |
|
|
|
134 |
43953
|
argiro.kok
|
</div>
|
135 |
|
|
`
|
136 |
|
|
})
|
137 |
|
|
export class SearchComponent {
|
138 |
44826
|
argiro.kok
|
public sub: any;
|
139 |
|
|
public subPublicationsCount: any;
|
140 |
|
|
public subDatasetsCount: any;
|
141 |
|
|
public subProjectsCount: any;
|
142 |
|
|
public subDataprovidersCount: any;
|
143 |
|
|
public subOrganizationsCount: any;
|
144 |
|
|
public subPeopleCount: any;
|
145 |
44300
|
konstantin
|
|
146 |
44826
|
argiro.kok
|
public reloadPublications: boolean;
|
147 |
|
|
public reloadDatasets: boolean;
|
148 |
|
|
public reloadProjects: boolean;
|
149 |
|
|
public reloadDataproviders: boolean;
|
150 |
|
|
public reloadOrganizations: boolean;
|
151 |
|
|
public reloadPeople: boolean;
|
152 |
44300
|
konstantin
|
|
153 |
|
|
|
154 |
44826
|
argiro.kok
|
public pageTitle = "Search in OpenAIRE"
|
155 |
|
|
public keyword:string = "";
|
156 |
|
|
public publications:string[];
|
157 |
|
|
public datasets:string[];
|
158 |
|
|
public projectsTab:string[];
|
159 |
|
|
public dataproviders:string[];
|
160 |
|
|
public organizations:string[];
|
161 |
|
|
public people:string[];
|
162 |
43953
|
argiro.kok
|
|
163 |
44826
|
argiro.kok
|
public activeTab = "publications";
|
164 |
|
|
public linkToSearchPublications = "";
|
165 |
|
|
public linkToSearchProjects = "";
|
166 |
|
|
public linkToSearchDataproviders = "";
|
167 |
|
|
public linkToSearchDatasets = "";
|
168 |
|
|
public linkToSearchOrganizations = "";
|
169 |
|
|
public linkToSearchPeople = "";
|
170 |
43953
|
argiro.kok
|
|
171 |
44826
|
argiro.kok
|
public searchPublicationsComponent : SearchPublicationsComponent;
|
172 |
|
|
public searchDataProvidersComponent : SearchDataprovidersComponent;
|
173 |
|
|
public searchProjectsComponent : SearchProjectsComponent;
|
174 |
|
|
public searchDatasetsComponent: SearchDatasetsComponent;
|
175 |
|
|
public searchOrganizationsComponent: SearchOrganizationsComponent;
|
176 |
|
|
public searchPeopleComponent: SearchPeopleComponent;
|
177 |
45417
|
argiro.kok
|
public searchFields:SearchFields = new SearchFields();
|
178 |
43959
|
argiro.kok
|
|
179 |
44826
|
argiro.kok
|
public subPub;public subData;public subProjects;public subOrg;public subPeople; public subDataPr;
|
180 |
43990
|
konstantin
|
constructor ( private route: ActivatedRoute,
|
181 |
|
|
private _searchPublicationsService: SearchPublicationsService,
|
182 |
|
|
private _searchDataprovidersService: SearchDataprovidersService,
|
183 |
|
|
private _searchProjectsService: SearchProjectsService,
|
184 |
|
|
private _searchDatasetsService: SearchDatasetsService,
|
185 |
44035
|
konstantin
|
private _searchOrganizationsService: SearchOrganizationsService,
|
186 |
44049
|
argiro.kok
|
private _searchPeopleService: SearchPeopleService,
|
187 |
44383
|
argiro.kok
|
private location: Location ) {
|
188 |
43959
|
argiro.kok
|
this.searchPublicationsComponent = new SearchPublicationsComponent(this.route, this._searchPublicationsService);
|
189 |
|
|
this.searchDataProvidersComponent = new SearchDataprovidersComponent(this.route,this._searchDataprovidersService);
|
190 |
44262
|
argiro.kok
|
this.searchProjectsComponent = new SearchProjectsComponent(this.route, this._searchProjectsService);
|
191 |
44383
|
argiro.kok
|
this.searchDatasetsComponent = new SearchDatasetsComponent(this.route, this._searchDatasetsService);
|
192 |
|
|
this.searchOrganizationsComponent = new SearchOrganizationsComponent(this.route, this._searchOrganizationsService);
|
193 |
44035
|
konstantin
|
this.searchPeopleComponent = new SearchPeopleComponent(this.route, this._searchPeopleService);
|
194 |
43953
|
argiro.kok
|
}
|
195 |
|
|
|
196 |
44826
|
argiro.kok
|
public ngOnInit() {
|
197 |
43953
|
argiro.kok
|
this.sub = this.route.queryParams.subscribe(params => {
|
198 |
|
|
this.keyword = (params['keyword'])?params['keyword']:"";
|
199 |
|
|
if(this.keyword !=null && this.keyword.length > 0){
|
200 |
44300
|
konstantin
|
this.reloadTabs();
|
201 |
43953
|
argiro.kok
|
this.searchPublications();
|
202 |
44300
|
konstantin
|
this.count();
|
203 |
43953
|
argiro.kok
|
}
|
204 |
|
|
});
|
205 |
|
|
}
|
206 |
44826
|
argiro.kok
|
public ngOnDestroy() {
|
207 |
43953
|
argiro.kok
|
this.sub.unsubscribe();
|
208 |
44300
|
konstantin
|
if(this.keyword !=null && this.keyword.length > 0){
|
209 |
44421
|
argiro.kok
|
if(this.subPub){
|
210 |
|
|
this.subPub.unsubscribe();
|
211 |
|
|
}
|
212 |
|
|
if(this.subData){
|
213 |
|
|
this.subData.unsubscribe();
|
214 |
|
|
}
|
215 |
|
|
if(this.subProjects){
|
216 |
|
|
this.subProjects.unsubscribe();
|
217 |
|
|
}
|
218 |
|
|
if(this.subOrg){
|
219 |
|
|
this.subOrg.unsubscribe();
|
220 |
|
|
}
|
221 |
|
|
if(this.subPeople){
|
222 |
|
|
this.subPeople.unsubscribe();
|
223 |
|
|
}
|
224 |
|
|
if(this.subDataPr){
|
225 |
|
|
this.subDataPr.unsubscribe();
|
226 |
|
|
}
|
227 |
44300
|
konstantin
|
this.subPublicationsCount.unsubscribe();
|
228 |
|
|
this.subDatasetsCount.unsubscribe();
|
229 |
|
|
this.subProjectsCount.unsubscribe();
|
230 |
44382
|
konstantin
|
//this.subDataprovidersCount.unsubscribe();
|
231 |
44300
|
konstantin
|
this.subOrganizationsCount.unsubscribe();
|
232 |
|
|
this.subPeopleCount.unsubscribe();
|
233 |
|
|
}
|
234 |
43953
|
argiro.kok
|
}
|
235 |
45442
|
argiro.kok
|
public searchPublications() {
|
236 |
43953
|
argiro.kok
|
this.activeTab = "publications";
|
237 |
44300
|
konstantin
|
if(this.reloadPublications) {
|
238 |
|
|
this.reloadPublications = false;
|
239 |
44338
|
konstantin
|
this.searchPublicationsComponent.getResults(this.keyword, false, 1, 10);
|
240 |
44372
|
argiro.kok
|
this.linkToSearchPublications = OpenaireProperties.getLinkToSearchPublications() + "?keyword=" + this.keyword;
|
241 |
44300
|
konstantin
|
}
|
242 |
43953
|
argiro.kok
|
}
|
243 |
45442
|
argiro.kok
|
public searchDatasets() {
|
244 |
43990
|
konstantin
|
this.activeTab = "datasets";
|
245 |
44300
|
konstantin
|
if(this.reloadDatasets) {
|
246 |
|
|
this.reloadDatasets = false;
|
247 |
44338
|
konstantin
|
this.searchDatasetsComponent.getResults(this.keyword, false, 1, 10);
|
248 |
44372
|
argiro.kok
|
this.linkToSearchDatasets = OpenaireProperties.getLinkToSearchDatasets() + "?keyword=" + this.keyword;
|
249 |
44300
|
konstantin
|
}
|
250 |
43953
|
argiro.kok
|
}
|
251 |
45442
|
argiro.kok
|
public searchProjects() {
|
252 |
43959
|
argiro.kok
|
this.activeTab = "projects";
|
253 |
44300
|
konstantin
|
if(this.reloadProjects) {
|
254 |
|
|
this.reloadProjects = false;
|
255 |
44309
|
argiro.kok
|
this.searchProjectsComponent.getResults(this.keyword, false, 1, 10);
|
256 |
44372
|
argiro.kok
|
this.linkToSearchProjects = OpenaireProperties.getLinkToSearchProjects() + "?keyword=" + this.keyword;
|
257 |
44300
|
konstantin
|
}
|
258 |
43953
|
argiro.kok
|
}
|
259 |
45442
|
argiro.kok
|
public searchDataProviders() {
|
260 |
45417
|
argiro.kok
|
this.activeTab = "dataproviders";
|
261 |
44300
|
konstantin
|
if(this.reloadDataproviders) {
|
262 |
|
|
this.reloadDataproviders = false;
|
263 |
44338
|
konstantin
|
this.searchDataProvidersComponent.getResults(this.keyword, false, 1, 10);
|
264 |
44372
|
argiro.kok
|
this.linkToSearchDataproviders = OpenaireProperties.getLinkToSearchDataProviders() + "?keyword=" + this.keyword;
|
265 |
44300
|
konstantin
|
}
|
266 |
43953
|
argiro.kok
|
}
|
267 |
45442
|
argiro.kok
|
public searchOrganizations() {
|
268 |
43990
|
konstantin
|
this.activeTab = "organizations";
|
269 |
44300
|
konstantin
|
if(this.reloadOrganizations) {
|
270 |
|
|
this.reloadOrganizations = false;
|
271 |
44338
|
konstantin
|
this.searchOrganizationsComponent.getResults(this.keyword, false, 1, 10);
|
272 |
44372
|
argiro.kok
|
this.linkToSearchOrganizations = OpenaireProperties.getLinkToSearchOrganizations() + "?keyword=" + this.keyword;
|
273 |
44300
|
konstantin
|
}
|
274 |
43953
|
argiro.kok
|
}
|
275 |
45442
|
argiro.kok
|
public searchPeople() {
|
276 |
44035
|
konstantin
|
this.activeTab = "people";
|
277 |
44300
|
konstantin
|
if(this.reloadPeople) {
|
278 |
|
|
this.reloadPeople = false;
|
279 |
44338
|
konstantin
|
this.searchPeopleComponent.getResults(this.keyword, false, 1, 10);
|
280 |
44372
|
argiro.kok
|
this.linkToSearchPeople = OpenaireProperties.getLinkToSearchPeople() + "?keyword=" + this.keyword;
|
281 |
44300
|
konstantin
|
}
|
282 |
43953
|
argiro.kok
|
}
|
283 |
|
|
|
284 |
44881
|
argiro.kok
|
public keywordChanged($event){
|
285 |
43959
|
argiro.kok
|
this.keyword = $event.value;
|
286 |
44372
|
argiro.kok
|
console.info("Search Find: search with keyword \"" + this.keyword + "\"" );
|
287 |
44421
|
argiro.kok
|
if(location.pathname.indexOf("search/find") ==-1){
|
288 |
|
|
this.location.go(location.pathname+"search/find","?keyword=" + this.keyword);
|
289 |
|
|
}else{
|
290 |
|
|
this.location.go(location.pathname,"?keyword=" + this.keyword);
|
291 |
|
|
}
|
292 |
44300
|
konstantin
|
|
293 |
|
|
//unsubscribeSearch();
|
294 |
|
|
|
295 |
|
|
this.reloadTabs();
|
296 |
|
|
if(this.activeTab == "publications") {
|
297 |
|
|
this.searchPublications();
|
298 |
|
|
}
|
299 |
|
|
if(this.activeTab == "projects") {
|
300 |
|
|
this.searchProjects();
|
301 |
|
|
}
|
302 |
45417
|
argiro.kok
|
if(this.activeTab == "dataproviders") {
|
303 |
44300
|
konstantin
|
this.searchDataProviders();
|
304 |
|
|
}
|
305 |
|
|
if(this.activeTab == "datasets") {
|
306 |
|
|
this.searchDatasets();
|
307 |
|
|
}
|
308 |
|
|
if(this.activeTab == "organizations") {
|
309 |
|
|
this.searchOrganizations();
|
310 |
|
|
}
|
311 |
|
|
if(this.activeTab == "people") {
|
312 |
|
|
this.searchPeople();
|
313 |
|
|
}
|
314 |
|
|
this.count();
|
315 |
43953
|
argiro.kok
|
}
|
316 |
|
|
|
317 |
44300
|
konstantin
|
private count() {
|
318 |
|
|
this.subPublicationsCount = this.route.queryParams.subscribe(params => {
|
319 |
44421
|
argiro.kok
|
this.subPub = this._searchPublicationsService.numOfSearchPublications(this.keyword).subscribe(
|
320 |
44300
|
konstantin
|
data => {
|
321 |
44726
|
argiro.kok
|
this.searchPublicationsComponent.searchUtils.totalResults = data;
|
322 |
44300
|
konstantin
|
},
|
323 |
|
|
err => {
|
324 |
44907
|
argiro.kok
|
console.log(err);
|
325 |
44300
|
konstantin
|
}
|
326 |
|
|
);
|
327 |
|
|
})
|
328 |
43953
|
argiro.kok
|
|
329 |
44300
|
konstantin
|
this.subDatasetsCount = this.route.queryParams.subscribe(params => {
|
330 |
44421
|
argiro.kok
|
this.subData = this._searchDatasetsService.numOfSearchDatasets(this.keyword).subscribe(
|
331 |
44300
|
konstantin
|
data => {
|
332 |
44726
|
argiro.kok
|
this.searchDatasetsComponent.searchUtils.totalResults = data;
|
333 |
44300
|
konstantin
|
},
|
334 |
|
|
err => {
|
335 |
44907
|
argiro.kok
|
console.log(err);
|
336 |
44300
|
konstantin
|
}
|
337 |
|
|
);
|
338 |
|
|
})
|
339 |
|
|
|
340 |
|
|
this.subProjectsCount = this.route.queryParams.subscribe(params => {
|
341 |
44421
|
argiro.kok
|
this.subProjects = this._searchProjectsService.numOfSearchProjects(this.keyword).subscribe(
|
342 |
44300
|
konstantin
|
data => {
|
343 |
44726
|
argiro.kok
|
this.searchProjectsComponent.searchUtils.totalResults = data;
|
344 |
44300
|
konstantin
|
},
|
345 |
|
|
err => {
|
346 |
44907
|
argiro.kok
|
console.log(err);
|
347 |
44300
|
konstantin
|
}
|
348 |
|
|
);
|
349 |
|
|
})
|
350 |
|
|
|
351 |
44382
|
konstantin
|
this.searchDataProvidersComponent.getNumForSearch(this.keyword);
|
352 |
44300
|
konstantin
|
|
353 |
|
|
this.subOrganizationsCount = this.route.queryParams.subscribe(params => {
|
354 |
44421
|
argiro.kok
|
this.subOrg = this._searchOrganizationsService.numOfSearchOrganizations(this.keyword).subscribe(
|
355 |
44300
|
konstantin
|
data => {
|
356 |
44726
|
argiro.kok
|
this.searchOrganizationsComponent.searchUtils.totalResults = data;
|
357 |
44300
|
konstantin
|
},
|
358 |
|
|
err => {
|
359 |
44907
|
argiro.kok
|
console.log(err);
|
360 |
44300
|
konstantin
|
}
|
361 |
|
|
);
|
362 |
|
|
})
|
363 |
|
|
|
364 |
|
|
this.subPeopleCount = this.route.queryParams.subscribe(params => {
|
365 |
44421
|
argiro.kok
|
this.subPeople = this._searchPeopleService.numOfSearchPeople(this.keyword).subscribe(
|
366 |
44300
|
konstantin
|
data => {
|
367 |
44726
|
argiro.kok
|
this.searchPeopleComponent.searchUtils.totalResults = data;
|
368 |
44300
|
konstantin
|
},
|
369 |
|
|
err => {
|
370 |
44907
|
argiro.kok
|
console.log(err);
|
371 |
44300
|
konstantin
|
}
|
372 |
|
|
);
|
373 |
|
|
})
|
374 |
|
|
}
|
375 |
|
|
|
376 |
|
|
private reloadTabs() {
|
377 |
|
|
this.reloadPublications = true;
|
378 |
|
|
this.reloadDatasets = true;
|
379 |
|
|
this.reloadProjects = true;
|
380 |
|
|
this.reloadDataproviders = true;
|
381 |
|
|
this.reloadOrganizations = true;
|
382 |
|
|
this.reloadPeople = true;
|
383 |
|
|
}
|
384 |
|
|
|
385 |
43953
|
argiro.kok
|
}
|