explore-services/portal-2/src/app/deposit/deposit.component.ts

59 lines
2.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {Component} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import { Router } from '@angular/router';
@Component({
selector: 'deposit',
template: `
<div class="container">
<div class="page-header" >
<h2>Deposit Publications</h2>
</div>
<div>
<p>
<i>
Are you a grant recipient from the following: H2020; FP7 with SC39; or ERC?
</i>
Then you are required to publish in
<a>open access</a>.
One way to do this is to deposit your publications into an open access repository.
</p>
<p>
Click the following to find more information:
<a>FP7 guidelines</a>,
<a>H2020 guidelines</a>,
<a>ERC guidelines</a> OR
<a>ask a question</a> to OpenAIREs national representative.
</p>
<h3>Locate data provider via your institution</h3>
<form>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Filter</span>
<input type="text" class="form-control" placeholder="Type keywords..." aria-describedby="sizing-addon2" [(ngModel)]="keyword" name="keyword" >
<span class="input-group-btn">
<button (click)="keywordChanged()" type="submit" class="btn btn-default">SELECT</button>
</span>
</div>
</form>
</div>
</div>
`
})
export class DepositComponent {
keyword: string='';
constructor (private _router: Router) {}
keywordChanged() {
console.info("keywordChanged: "+this.keyword);
//var value = {"name": this.keyword};
//sessionStorage.setItem("organization", JSON.stringify(value));
this._router.navigate( ['deposit-results'] );//, {"name": this.keyword}] );
}
}