diff --git a/docs/releases/v2.5.7.md b/docs/releases/v2.5.7.md index 5e6a2ef22cad04a1190c4fe5691eb45e870086a1..4a8698429cde82cf60e500e7cdb290a3c90a85de 100644 --- a/docs/releases/v2.5.7.md +++ b/docs/releases/v2.5.7.md @@ -3,6 +3,9 @@ ## Bugfix - 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 diff --git a/src/assets/images/atlas-selection/waxholm-v4.png b/src/assets/images/atlas-selection/waxholm-v4.png new file mode 100644 index 0000000000000000000000000000000000000000..d0af0a5be2b2cf40fd814dce032fbd0801da30a8 Binary files /dev/null and b/src/assets/images/atlas-selection/waxholm-v4.png differ diff --git a/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.component.ts b/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.component.ts index d3fcb22161ad3e74d66002f083f32c724f5224f1..4b911265407de5f74d5615cfe2eae2e7a14b6b6b 100644 --- a/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.component.ts +++ b/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.component.ts @@ -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 diff --git a/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.template.html b/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.template.html index ab89e43adb9a94f391b1a29a3f67fc893754ae3b..2bce44e578033cd6aa517f3dae798aafb6944bc4 100644 --- a/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.template.html +++ b/src/atlasComponents/regionalFeatures/bsFeatures/genericInfo/genericInfoCmp/genericInfo.template.html @@ -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 diff --git a/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts b/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts index 3857c15b96f04952065f4001f9e298dc6d04330b..84c42160985d551a495cf6a2713aa25738578b36 100644 --- a/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts +++ b/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts @@ -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/39a1384b-8413-4d27-af8d-22432225401f', 'allen-mouse-2015.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/2449a7f0-6dd0-4b5a-8f1e-aec0db03679d', 'waxholm-v2.png'], ['minds/core/parcellationatlas/v1.0.0/11017b35-7056-4593-baad-3934d211daba', 'waxholm-v1.png'],