Skip to content

Commit 0cb455b

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-1817 Code fixup
1 parent 45e0de6 commit 0cb455b

4 files changed

Lines changed: 6 additions & 24 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<ds-item-page-cc-license-field
22
[item]="item"
3-
[variant]="variant"
3+
variant="full"
44
[ccLicenseNameField]="ccLicenseNameField"
5-
[showName]="showName">
5+
[showTitle]="false"
6+
[showName]="true">
67
</ds-item-page-cc-license-field>

src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/boxes/metadata/rendering-types/cc-license-large/cc-license-large.component.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ import {RenderingTypeValueModelComponent} from "../rendering-type-value.model";
1212
styleUrl: './cc-license-large.component.scss'
1313
})
1414
export class CcLicenseLargeComponent extends RenderingTypeValueModelComponent {
15-
/**
16-
* 'full' variant shows image, a disclaimer (optional) and name (always), better for the item page content.
17-
* 'small' variant shows image and name (optional), better for the item page sidebar
18-
*/
19-
@Input() variant = 'full';
20-
21-
/**
22-
* Shows the CC license name with the image. Always show if image fails to load
23-
*/
24-
@Input() showName? = true;
2515

2616
/**
2717
* Filed name containing the CC license name, as configured in the back-end, in the 'dspace.cfg' file, propertie
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<ds-item-page-cc-license-field
22
[item]="item"
3-
[variant]="variant"
3+
variant="small"
44
[ccLicenseNameField]="ccLicenseNameField"
5-
[showName]="showName">
5+
[showTitle]="false"
6+
[showName]="false">
67
</ds-item-page-cc-license-field>

src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/boxes/metadata/rendering-types/cc-license-small/cc-license-small.component.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ import {RenderingTypeValueModelComponent} from "../rendering-type-value.model";
1212
styleUrl: './cc-license-small.component.scss'
1313
})
1414
export class CcLicenseSmallComponent extends RenderingTypeValueModelComponent {
15-
/**
16-
* 'full' variant shows image, a disclaimer (optional) and name (always), better for the item page content.
17-
* 'small' variant shows image and name (optional), better for the item page sidebar
18-
*/
19-
@Input() variant = 'small';
20-
21-
/**
22-
* Shows the CC license name with the image. Always show if image fails to load
23-
*/
24-
@Input() showName? = true;
2515

2616
/**
2717
* Filed name containing the CC license name, as configured in the back-end, in the 'dspace.cfg' file, propertie

0 commit comments

Comments
 (0)