import {Component, Input} from '@angular/core'; import {EnvProperties} from '../../../utils/properties/env-properties'; import {ClaimDBContext, ClaimDBProject, ClaimDBResult} from "../claimHelper.class"; //Usage Example " " //externalUrl @Component({ selector: 'claim-entity', template: `
{{type == 'publication'?'publication':(type == 'dataset'?'research data':(type == 'other'?'other':'software'))}}
Link to {{type == 'publication'?'publication':(type == 'dataset'?'research data':(type == 'other'?'other':'software'))}}:
Link to project:
Link to community: {{entity.title}}
` }) export class ClaimEntityFormatter { @Input() entity: ClaimDBResult | ClaimDBContext | ClaimDBProject; @Input() type: string; @Input() properties: EnvProperties; @Input() externalPortalUrl: string = null; @Input() source: boolean = true; constructor() { } ngOnInit() { } }