From d46248e99be7383fe3308d37d1d77be56b81f427 Mon Sep 17 00:00:00 2001 From: Alisa Ismailati Date: Mon, 20 Nov 2023 16:48:14 +0100 Subject: [PATCH] [CST-11884] added notify related information in the item details page --- .../metadata-uri-values.component.html | 2 +- .../metadata-values.component.ts | 10 ++++++++ .../publication/publication.component.html | 24 +++++++++---------- .../untyped-item/untyped-item.component.html | 12 ++++++++++ src/assets/i18n/en.json5 | 6 +++++ 5 files changed, 41 insertions(+), 13 deletions(-) diff --git a/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.html b/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.html index 9091beb6c7..4cef0a1592 100644 --- a/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.html +++ b/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.html @@ -1,5 +1,5 @@ - + {{ linktext || mdValue.value }} diff --git a/src/app/item-page/field-components/metadata-values/metadata-values.component.ts b/src/app/item-page/field-components/metadata-values/metadata-values.component.ts index cbbae9006d..fcf98b094d 100644 --- a/src/app/item-page/field-components/metadata-values/metadata-values.component.ts +++ b/src/app/item-page/field-components/metadata-values/metadata-values.component.ts @@ -4,6 +4,7 @@ import { APP_CONFIG, AppConfig } from '../../../../config/app-config.interface'; import { BrowseDefinition } from '../../../core/shared/browse-definition.model'; import { hasValue } from '../../../shared/empty.util'; import { VALUE_LIST_BROWSE_DEFINITION } from '../../../core/shared/value-list-browse-definition.resource-type'; +import { environment } from './../../../../environments/environment'; /** * This component renders the configured 'values' into the ds-metadata-field-wrapper component. @@ -90,4 +91,13 @@ export class MetadataValuesComponent implements OnChanges { } return queryParams; } + + /** + * Checks if the given link value is an internal link. + * @param linkValue - The link value to check. + * @returns True if the link value starts with the base URL defined in the environment configuration, false otherwise. + */ + hasInternalLink(linkValue: string): boolean { + return linkValue.startsWith(environment.ui.baseUrl); + } } diff --git a/src/app/item-page/simple/item-types/publication/publication.component.html b/src/app/item-page/simple/item-types/publication/publication.component.html index 3014fcb302..40932ff2f9 100644 --- a/src/app/item-page/simple/item-types/publication/publication.component.html +++ b/src/app/item-page/simple/item-types/publication/publication.component.html @@ -84,18 +84,18 @@ [label]="'item.page.uri'"> - - - - - - + + + + + +
{{"item.page.link.full" | translate}} diff --git a/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html b/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html index 904b7e039c..9e07287b49 100644 --- a/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html +++ b/src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html @@ -70,6 +70,18 @@ [label]="'item.page.uri'"> + + + + + +
{{"item.page.link.full" | translate}} diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index e01964a4fb..c7bbc7e5f0 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -2625,6 +2625,12 @@ "item.page.uri": "URI", + "item.page.endorsment": "Endorsment", + + "item.page.review": "Review", + + "item.page.dataset": "Dataset", + "item.page.bitstreams.view-more": "Show more", "item.page.bitstreams.collapse": "Collapse",