Method | Description | |
---|---|---|
GetMetadata ( |
Create a Clearshare.Metadata object by reading values out of the dom's bloomDataDiv
|
|
LogMetdata ( |
||
SetMetadata ( SIL.Windows.Forms.ClearShare.Metadata metadata, |
Call this when we have a new set of metadata to use. It 1) sets the bloomDataDiv with the data, 2) causes any template fields in the book to get the new values 3) updates the license image on disk
|
Method | Description | |
---|---|---|
ConvertNewLinesToHtmlBreaks ( string s ) : string | ||
CopyItemToFieldsInPages ( |
||
GetMetadataWithDefaultCopyrightAndLicense ( string brandingNameOrPath ) : SIL.Windows.Forms.ClearShare.Metadata | ||
ShouldSetToDefaultCopyrightAndLicense ( |
||
UpdateBookLicenseIcon ( SIL.Windows.Forms.ClearShare.Metadata metadata, string bookFolderPath ) : void |
Get the license from the metadata and save it.
|
|
UpdateDomFromDataDiv ( |
Propagating the copyright and license information in the bloomDataDiv to template fields found in the pages of the book (normally just the credits page). This is "internal" just as a convention, that it is accessible for testing purposes only |
public static GetMetadata ( |
||
dom | ||
brandingNameOrFolderPath | string | Normally, the branding is just a name, which we look up in the official branding folder //but unit tests can instead provide a path to the folder. /// |
return | SIL.Windows.Forms.ClearShare.Metadata |
public static LogMetdata ( |
||
dom | ||
return | void |
public static SetMetadata ( SIL.Windows.Forms.ClearShare.Metadata metadata, |
||
metadata | SIL.Windows.Forms.ClearShare.Metadata | |
dom | ||
bookFolderPath | string | |
collectionSettings | ||
return | void |