Skip to content
Snippets Groups Projects
Commit 7e83b6c5 authored by Xiao Gui's avatar Xiao Gui
Browse files

visual bug fix: multiple dois

parent e4b5c825
No related merge requests found
......@@ -56,6 +56,11 @@ export class GenericInfoCmp extends BsRegionInputBase implements OnChanges, Afte
doi: string
}[]
public doiUrls: {
cite: string
doi: string
}[]
template: TemplateRef<any>
viewref: ViewRef
......@@ -72,6 +77,7 @@ export class GenericInfoCmp extends BsRegionInputBase implements OnChanges, Afte
this.description = description
this.name = name
this.urls = urls
this.doiUrls = this.urls.filter(d => !!d.doi)
this.useClassicUi = useClassicUi
if (dataType) this.dataType = dataType
if (typeof isGdprProtected !== 'undefined') this.isGdprProtected = isGdprProtected
......
......@@ -27,10 +27,9 @@
<!-- explore -->
<ng-container>
<a *ngFor="let kgRef of (urls || [])"
<a *ngFor="let kgRef of (doiUrls || [])"
[href]="kgRef.doi | doiParserPipe"
class="color-inherit"
mat-icon-button
[matTooltip]="ARIA_LABELS.EXPLORE_DATASET_IN_KG"
target="_blank">
<iav-dynamic-mat-button
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment