Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
searchResearchResults.service.ts | ||
---|---|---|
1 |
import {Injectable} from '@angular/core'; |
|
1 |
import {Injectable, OnDestroy} from '@angular/core';
|
|
2 | 2 |
import {HttpClient} from "@angular/common/http"; |
3 | 3 |
import {SearchResult} from '../utils/entities/searchResult'; |
4 | 4 |
import {RefineResultsUtils} from './servicesUtils/refineResults.class'; |
... | ... | |
13 | 13 |
private sizeOfDescription: number = 270; |
14 | 14 |
public parsingFunctions: ParsingFunctions = new ParsingFunctions(); |
15 | 15 |
|
16 |
constructor(private http: HttpClient ) {} |
|
16 |
constructor(private http: HttpClient ) { |
|
17 |
} |
|
17 | 18 |
|
19 |
|
|
18 | 20 |
search (resultType:string, params: string, refineParams:string, page: number, size: number, sortBy: string, refineFields:string[] , properties:EnvProperties):any { |
19 | 21 |
let link = properties.searchAPIURLLAst+this.getEntityName(resultType,true); |
20 | 22 |
|
Also available in: Unified diff
[Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from the component that uses them (clearSubscriptions())