Appearance
Attribution
The Attribution object is designed to make it as easy as possible to comply with attribution guidelines when using assets licensed under Creative Commons Attribution or other licenses where attribution is required.
An attribution object contains all the necessary information about a single asset to create a compliant attribution message as well as fully formatted helpers.
Properties
.assetName
: string readonlyassetName
The name of the asset.
.assetUrl
: string? readonlyassetUrl
A URL to the asset (e.g., a page on an asset sharing platform or library).
.authorName
: string readonlyauthorName
The name of the asset's author.
.authorUrl
: string? readonlyauthorUrl
A URL to the author's page (e.g., a website, social media page or author profile on an asset sharing platform or library).
.licenseName
: string readonlylicenseName
The lame of the license under which the asset is being used.
.licenseUrl
: string readonlylicenseUrl
A URL to the full license (e.g., a page on the Create Commons site describing the license).
.modified
: boolean readonlymodified
A boolean flag indicating whether or not the asset has been modified.
.sourceName
: string? readonlysourceName
The name of the source of the asset (e.g., the name of an asset sharing platform or library).
.sourceUrl
: string? readonlysourceUrl
The URL of the homepage of the source of the asset (e.g., the homepage of an asset sharing platform or library).
.assetHtml
: string readonlyassetHtml
A formatted HTML string that shows the asset name as a link to the asset if assetUrl
is available or as plain text if not.
authorHtml
: string readonlyauthorHtml
A formatted HTML string that shows the asset author name as a link to the author's website / profile if authorUrl
is available or as plain text if not.
html
: string readonlyhtml
A formatted HTML string that combines all available elements into a compliant attribution message.
.licenseHtml
: string readonlylicenseHtml
A formatted HTML string that shows the license name as a link to the license page.
.sourceHtml
: string readonlysourceHtml
A formatted HTML string that presents the source name as a link to the source if sourceUrl
is available or as plain text if not. If the sourceName
is not available, it will return an empty string.