Skip to content

Commit 6df7037

Browse files
committed
Add CC license component to the simple item page
1 parent fc179a2 commit 6df7037

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
[fields]="['datacite.relation.isReferencedBy']"
8787
[label]="'item.page.dataset'">
8888
</ds-item-page-uri-field>
89+
<ds-item-page-cc-license-field [item]="object" [variant]="'full'">
90+
</ds-item-page-cc-license-field>
8991
<div>
9092
<a class="btn btn-outline-primary" [routerLink]="[itemPageRoute + '/full']" role="button">
9193
<i class="fas fa-info-circle"></i> {{"item.page.link.full" | translate}}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { ThemedMediaViewerComponent } from '../../../media-viewer/themed-media-v
2121
import { MiradorViewerComponent } from '../../../mirador-viewer/mirador-viewer.component';
2222
import { ThemedFileSectionComponent } from '../../field-components/file-section/themed-file-section.component';
2323
import { ItemPageAbstractFieldComponent } from '../../field-components/specific-field/abstract/item-page-abstract-field.component';
24+
import { ItemPageCcLicenseFieldComponent } from '../../field-components/specific-field/cc-license/item-page-cc-license-field.component';
2425
import { ItemPageDateFieldComponent } from '../../field-components/specific-field/date/item-page-date-field.component';
2526
import { GenericItemPageFieldComponent } from '../../field-components/specific-field/generic/generic-item-page-field.component';
2627
import { ThemedItemPageTitleFieldComponent } from '../../field-components/specific-field/title/themed-item-page-field.component';
@@ -39,7 +40,7 @@ import { ItemComponent } from '../shared/item.component';
3940
templateUrl: './untyped-item.component.html',
4041
changeDetection: ChangeDetectionStrategy.OnPush,
4142
standalone: true,
42-
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule],
43+
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule, ItemPageCcLicenseFieldComponent],
4344
})
4445
export class UntypedItemComponent extends ItemComponent {
4546

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { MetadataFieldWrapperComponent } from '../../../../../../../app/shared/m
2828
import { listableObjectComponent } from '../../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
2929
import { ThemedResultsBackButtonComponent } from '../../../../../../../app/shared/results-back-button/themed-results-back-button.component';
3030
import { ThemedThumbnailComponent } from '../../../../../../../app/thumbnail/themed-thumbnail.component';
31+
import { ItemPageCcLicenseFieldComponent } from 'src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component';
3132

3233
/**
3334
* Component that represents an untyped Item page
@@ -41,7 +42,7 @@ import { ThemedThumbnailComponent } from '../../../../../../../app/thumbnail/the
4142
templateUrl: '../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.html',
4243
changeDetection: ChangeDetectionStrategy.OnPush,
4344
standalone: true,
44-
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule],
45+
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule, ItemPageCcLicenseFieldComponent],
4546
})
4647
export class UntypedItemComponent extends BaseComponent {
4748
}

0 commit comments

Comments
 (0)