forked from 4Science/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in task/dspace-cris-2023_02_x/DSC-1520 (pull request DSpace#1721)
Task/dspace cris 2023 02 x/DSC-1520 Approved-by: Francesco Molinaro
- Loading branch information
Showing
8 changed files
with
158 additions
and
13 deletions.
There are no files selected for viewing
13 changes: 9 additions & 4 deletions
13
...-layout-box-container/boxes/metadata/rendering-types/identifier/identifier.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<div [class]="field.styleValue"> | ||
<span class="text-value"> | ||
<a [target]="target" href="{{identifier?.href}}">{{ identifier?.text }}</a> | ||
</span> | ||
</div> | ||
<div class="d-flex align-items-center identifier-container-{{iconPosition}}"> | ||
<a href="{{iconLink}}" [ngbTooltip]="iconLink" target="_blank" *ngIf="subTypeIcon && iconPosition !== iconPositionEnum.NONE"> | ||
<img class="source-icon" [src]="subTypeIcon" alt="source-icon" > | ||
</a> | ||
<span class="text-value"> | ||
<a [target]="target" href="{{identifier?.href}}">{{ identifier?.text }}</a> | ||
</span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.source-icon { | ||
height: var(--ds-identifier-sybetype-icon-height); | ||
min-height: 16px; | ||
width: auto; | ||
} | ||
|
||
.identifier-container-LEFT { | ||
flex-direction: row; | ||
.source-icon { | ||
margin-right: 0.2em; | ||
} | ||
} | ||
|
||
.identifier-container-RIGHT { | ||
flex-direction: row-reverse; | ||
justify-content: flex-end; | ||
.source-icon { | ||
margin-left: 0.2em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Represents the configuration for identifier subtypes. | ||
*/ | ||
export interface IdentifierSubtypesConfig { | ||
name: string; // The name of the identifier subtype | ||
icon: string; // The icon to display for the identifier subtype | ||
iconPosition: IdentifierSubtypesIconPositionEnum; // The position of the icon relative to the identifier | ||
link: string; // The link to navigate to when the icon is clicked | ||
} | ||
|
||
export enum IdentifierSubtypesIconPositionEnum { | ||
NONE = 'NONE', | ||
LEFT = 'LEFT', | ||
RIGHT = 'RIGHT', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters