Skip to content
Snippets Groups Projects
Unverified Commit d8ba82cf authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #1110 from FZJ-INM1-BDA/bugfix_uiFixes

Bugfix UI fixes
parents e4b5c825 a8e19cb8
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
## Bugfix ## Bugfix
- fixed version in console - fixed version in console
- fixed UI bug: multiple doi overlap
- fixed UI bug: sometimes missing doi are also rendered
- fixed waxholm v4 preview image
## Feature ## Feature
......
src/assets/images/atlas-selection/waxholm-v4.png

178 KiB

...@@ -56,6 +56,11 @@ export class GenericInfoCmp extends BsRegionInputBase implements OnChanges, Afte ...@@ -56,6 +56,11 @@ export class GenericInfoCmp extends BsRegionInputBase implements OnChanges, Afte
doi: string doi: string
}[] }[]
public doiUrls: {
cite: string
doi: string
}[]
template: TemplateRef<any> template: TemplateRef<any>
viewref: ViewRef viewref: ViewRef
...@@ -72,6 +77,7 @@ export class GenericInfoCmp extends BsRegionInputBase implements OnChanges, Afte ...@@ -72,6 +77,7 @@ export class GenericInfoCmp extends BsRegionInputBase implements OnChanges, Afte
this.description = description this.description = description
this.name = name this.name = name
this.urls = urls this.urls = urls
this.doiUrls = this.urls.filter(d => !!d.doi)
this.useClassicUi = useClassicUi this.useClassicUi = useClassicUi
if (dataType) this.dataType = dataType if (dataType) this.dataType = dataType
if (typeof isGdprProtected !== 'undefined') this.isGdprProtected = isGdprProtected if (typeof isGdprProtected !== 'undefined') this.isGdprProtected = isGdprProtected
......
...@@ -27,10 +27,9 @@ ...@@ -27,10 +27,9 @@
<!-- explore --> <!-- explore -->
<ng-container> <ng-container>
<a *ngFor="let kgRef of (urls || [])" <a *ngFor="let kgRef of (doiUrls || [])"
[href]="kgRef.doi | doiParserPipe" [href]="kgRef.doi | doiParserPipe"
class="color-inherit" class="color-inherit"
mat-icon-button
[matTooltip]="ARIA_LABELS.EXPLORE_DATASET_IN_KG" [matTooltip]="ARIA_LABELS.EXPLORE_DATASET_IN_KG"
target="_blank"> target="_blank">
<iav-dynamic-mat-button <iav-dynamic-mat-button
......
...@@ -277,6 +277,7 @@ const previewImgMap = new Map([ ...@@ -277,6 +277,7 @@ const previewImgMap = new Map([
['minds/core/parcellationatlas/v1.0.0/05655b58-3b6f-49db-b285-64b5a0276f83', 'allen-mouse-2017.png'], ['minds/core/parcellationatlas/v1.0.0/05655b58-3b6f-49db-b285-64b5a0276f83', 'allen-mouse-2017.png'],
['minds/core/parcellationatlas/v1.0.0/39a1384b-8413-4d27-af8d-22432225401f', 'allen-mouse-2015.png'], ['minds/core/parcellationatlas/v1.0.0/39a1384b-8413-4d27-af8d-22432225401f', 'allen-mouse-2015.png'],
['minds/core/referencespace/v1.0.0/d5717c4a-0fa1-46e6-918c-b8003069ade8', 'waxholm.png'], ['minds/core/referencespace/v1.0.0/d5717c4a-0fa1-46e6-918c-b8003069ade8', 'waxholm.png'],
['minds/core/parcellationatlas/v1.0.0/ebb923ba-b4d5-4b82-8088-fa9215c2e1fe-v4', 'waxholm-v4.png'],
['minds/core/parcellationatlas/v1.0.0/ebb923ba-b4d5-4b82-8088-fa9215c2e1fe', 'waxholm-v3.png'], ['minds/core/parcellationatlas/v1.0.0/ebb923ba-b4d5-4b82-8088-fa9215c2e1fe', 'waxholm-v3.png'],
['minds/core/parcellationatlas/v1.0.0/2449a7f0-6dd0-4b5a-8f1e-aec0db03679d', 'waxholm-v2.png'], ['minds/core/parcellationatlas/v1.0.0/2449a7f0-6dd0-4b5a-8f1e-aec0db03679d', 'waxholm-v2.png'],
['minds/core/parcellationatlas/v1.0.0/11017b35-7056-4593-baad-3934d211daba', 'waxholm-v1.png'], ['minds/core/parcellationatlas/v1.0.0/11017b35-7056-4593-baad-3934d211daba', 'waxholm-v1.png'],
......
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