43 lines
846 B
TypeScript
43 lines
846 B
TypeScript
import {Component, Input} from '@angular/core';
|
|
import {JSONP_PROVIDERS} from '@angular/http';
|
|
import {Observable} from 'rxjs/Observable';
|
|
import { RouteParams, RouteConfig, ROUTER_DIRECTIVES, Router } from '@angular/router-deprecated';
|
|
|
|
@Component({
|
|
selector: 'search-result',
|
|
template: `
|
|
<h3>{{title}}</h3>
|
|
|
|
`
|
|
})
|
|
export class SearchResultComponent {
|
|
@Input() title;
|
|
@Input() id;
|
|
//publications & organizations:
|
|
@Input() projects;
|
|
//datasets & publications
|
|
@Input() description;
|
|
@Input() year;
|
|
@Input() authors;
|
|
//datasets:
|
|
@Input() publisher;
|
|
//dataproviders & projects:
|
|
@Input() organizations;
|
|
//projects:
|
|
@Input() funders;
|
|
//organizations:
|
|
@Input() country;
|
|
//dataproviders:
|
|
@Input() type;
|
|
@Input() websiteURL;
|
|
@Input() OAIPMHURL;
|
|
|
|
constructor () {
|
|
|
|
}
|
|
ngOnInit() {
|
|
|
|
}
|
|
|
|
}
|