diff --git a/config/config.example.yml b/config/config.example.yml index bb8f3de58cf..7f4b2fdaf91 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -516,3 +516,14 @@ liveRegion: messageTimeOutDurationMs: 30000 # The visibility of the live region. Setting this to true is only useful for debugging purposes. isVisible: false + +# Creative Commons metadata fields +ccLicense: + # Icon variant: + # 'full' variant shows image, a disclaimer (optional) and name (always), better for the item page content. + # 'small' (default) variant shows image and name (optional), better for the item page sidebar + variant: small + # Shows the CC license name with the image. Always show if image fails to load + showName: true + # Shows the disclaimer in the 'full' variant of the component + showDisclaimer: true \ No newline at end of file diff --git a/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts b/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts index 5d244685504..7824c096f14 100644 --- a/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts +++ b/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts @@ -35,17 +35,17 @@ export class ItemPageCcLicenseFieldComponent implements OnInit { * 'full' variant shows image, a disclaimer (optional) and name (always), better for the item page content. * 'small' variant shows image and name (optional), better for the item page sidebar */ - @Input() variant?: 'small' | 'full' = this.appConfig.ccLicense.variant;; + @Input() variant?: 'small' | 'full' = this.appConfig.ccLicense.variant; /** * Shows the CC license name with the image. Always show if image fails to load */ - @Input() showName? = true; + @Input() showName? = this.appConfig.ccLicense.showName; /** * Shows the disclaimer in the 'full' variant of the component */ - @Input() showDisclaimer? = true; + @Input() showDisclaimer? = this.appConfig.ccLicense.showDisclaimer; ccLicenseUriField: string; ccLicenseNameField: string;