forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the CC license field component configurable
- Loading branch information
Showing
6 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Config } from './config.interface'; | ||
|
||
export interface CreativeCommonsLicenseConfig extends Config { | ||
|
||
/** | ||
* CC icon variant ('small' or 'full') | ||
* Used by {@link ItemPageCcLicenseFieldComponent}. | ||
*/ | ||
variant: 'small' | 'full'; | ||
|
||
/** | ||
* Field name containing the CC license URI | ||
* Used by {@link ItemPageCcLicenseFieldComponent}. | ||
*/ | ||
uriField: string; | ||
|
||
/** | ||
* Field name containing the CC license URI | ||
* Used by {@link ItemPageCcLicenseFieldComponent}. | ||
*/ | ||
nameField: string; | ||
|
||
/** | ||
* Shows the CC license name with the image. Always show if image fails to load | ||
* Used by {@link ItemPageCcLicenseFieldComponent}. | ||
*/ | ||
showName: boolean; | ||
|
||
/** | ||
* Show the disclaimer in the 'full' variant of the component | ||
* Used by {@link ItemPageCcLicenseFieldComponent}. | ||
*/ | ||
showDisclaimer: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters