Project

General

Profile

1
import {Component, Input} from '@angular/core';
2
import {SearchResult}     from '../../utils/entities/searchResult';
3
import {ErrorCodes} from '../../utils/properties/openaireProperties';
4
import {RouterHelper} from '../../utils/routerHelper.class';
5

    
6
@Component({
7
    selector: 'tab-result',
8
    templateUrl: 'tabResult.component.html'
9
  })
10

    
11
export class TabResultComponent {
12
    @Input() results: SearchResult[];
13
    @Input() status: number;
14
    @Input() type: string;
15
    @Input() urlParam: string;
16
    @Input() showLoading: boolean = false;
17
    @Input() showOrganizations: boolean = true;
18

    
19
    public errorCodes:ErrorCodes = new ErrorCodes();
20
    public routerHelper:RouterHelper = new RouterHelper();
21
    public errorMessage: string = "No results found";
22
    constructor () {
23

    
24
    }
25

    
26
    ngOnInit() {}
27

    
28
        public  quote(params: string):string {
29
            return '"'+params+'"';
30
        }
31
}
(35-35/36)