1 |
49720
|
argiro.kok
|
import {Component, Input} from '@angular/core';
|
2 |
|
|
import {Observable} from 'rxjs/Observable';
|
3 |
|
|
import { Router } from '@angular/router';
|
4 |
|
|
import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
@Component({
|
9 |
|
|
selector: 'deposit-by-subject',
|
10 |
|
|
template: `
|
11 |
|
|
<div class="uk-margin-top">
|
12 |
|
|
|
13 |
|
|
<h3>Or search for domain specific repositories</h3>
|
14 |
|
|
|
15 |
|
|
<form class= "uk-grid">
|
16 |
|
|
<input type="text" [(ngModel)]="subjectKeyword" class="uk-margin-medium-left uk-padding-remove-left uk-input" name="subject" placeholder="Type keywords (e.g Biology, Natural sciences, Social Sciences, Engineering Sciences... )" style="width: 580px;" />
|
17 |
|
|
|
18 |
|
|
<button class=" uk-button uk-button-default" type="submit" (click)="search()" >
|
19 |
|
|
Search
|
20 |
|
|
</button>
|
21 |
|
|
</form>
|
22 |
|
|
</div>
|
23 |
|
|
`
|
24 |
|
|
})
|
25 |
|
|
|
26 |
|
|
export class DepositBySubjectComponent {
|
27 |
|
|
@Input() subjectKeyword: string='';
|
28 |
|
|
|
29 |
|
|
constructor (private _router: Router) { }
|
30 |
|
|
|
31 |
|
|
public search() {
|
32 |
|
|
this._router.navigate( ['participate/deposit-subject-result'], { queryParams: { "q": this.subjectKeyword } } );
|
33 |
|
|
}
|
34 |
|
|
}
|