2019-07-23 14:23:12 +02:00
|
|
|
import {Component, Input} from '@angular/core';
|
|
|
|
import {Meta, Title} from '@angular/platform-browser';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
@Component({
|
2019-07-23 14:23:12 +02:00
|
|
|
selector: 'my-claims',
|
|
|
|
template: `
|
|
|
|
<div id="tm-main" class=" uk-section uk-padding-remove-top uk-margin-small-top tm-middle">
|
|
|
|
<div class="uk-grid" >
|
|
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
|
|
|
|
|
|
|
<div class="uk-container uk-margin-top">
|
|
|
|
<div class="uk-h5 uk-text-bold">
|
|
|
|
My links
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class=" ">
|
|
|
|
Manage your links in OpenAIRE
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<displayClaims [enableDelete]=true [myClaims]=true [isAdmin]=false [showUserEmail]=false
|
|
|
|
moreClaimsURL="/participate/claim" [claimsInfoURL]=claimsInfoURL
|
2019-07-24 14:46:29 +02:00
|
|
|
></displayClaims>
|
2019-07-23 14:23:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-23 14:23:12 +02:00
|
|
|
`
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
})
|
2019-07-23 14:23:12 +02:00
|
|
|
export class MyClaimsComponent {
|
|
|
|
@Input() claimsInfoURL: string;
|
2018-10-25 11:33:56 +02:00
|
|
|
|
2019-07-23 14:23:12 +02:00
|
|
|
constructor(private _meta: Meta, private _title: Title) {
|
|
|
|
let title = "OpenAIRE | My links";
|
2018-06-29 13:01:48 +02:00
|
|
|
|
2019-07-23 14:23:12 +02:00
|
|
|
this._meta.updateTag({content: title}, "property='og:title'");
|
Replace meta service import and use with meta and title from angular/platform-browser for user, publication, claimAdmin,claimsByToken, directLinking, linkingGeneric, myClaims, depositBySubject, depositBySubjectResult, deposit, depositResult, dataProvider, htmlProjectReport, organization, project, software, search, advancedSearchPage, searchPage and searchPageTableView component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51835 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-17 15:00:23 +02:00
|
|
|
this._title.setTitle(title);
|
2019-07-23 14:23:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit() {
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|