Skip to content

Commit d043c83

Browse files
committed
LIBDRUM-912. Added "External Link to Data Files" to simple item page
Added an "External Link to Data Files" field in the left column of the simple item page, which displays the value of the "dc.relation.uri" metadata field. https://umd-dit.atlassian.net/browse/LIBDRUM-912
1 parent 1a5cd96 commit d043c83

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7200,6 +7200,8 @@
72007200

72017201
"item.page.doi": "DRUM DOI",
72027202

7203+
"item.page.externalDataFilesLink": "External Link to Data Files",
7204+
72037205
"item.page.publicationLink": "Publication or External Link",
72047206

72057207
"item.page.publicationLink.datasetOrSoftware": "Related Publication Link",

src/themes/drum/app/item-page/simple/item-types/untyped-item/untyped-item.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ <h2 class="item-page-title-field mr-auto">
4141
[label]="publicationLinkLabelI18nKey">
4242
</ds-item-page-uri-field>
4343

44+
<!-- External Link to Data Files -->
45+
<ds-item-page-uri-field [item]="object"
46+
[fields]="['dc.relation.uri']"
47+
[label]="externalDataFilesLinkLabelI18nKey">
48+
</ds-item-page-uri-field>
49+
4450
<!-- Date -->
4551
<ds-item-page-date-field [item]="object"></ds-item-page-date-field>
4652

src/themes/drum/app/item-page/simple/item-types/untyped-item/untyped-item.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import { listableObjectComponent } from '../../../../../../../app/shared/object-
5555
export class UntypedItemComponent extends BaseComponent implements OnInit {
5656
public publicationLinkLabelI18nKey = 'item.page.publicationLink';
5757
public citationLabelI18nKey = 'item.page.citation';
58+
public externalDataFilesLinkLabelI18nKey = 'item.page.externalDataFilesLink';
5859

5960
ngOnInit(): void {
6061
super.ngOnInit();

0 commit comments

Comments
 (0)