Bloom.Book.BookCopyrightAndLicense.ShouldSetToDefaultCopyrightAndLicense C# (CSharp) Method

ShouldSetToDefaultCopyrightAndLicense() private static method

private static ShouldSetToDefaultCopyrightAndLicense ( HtmlDom dom ) : bool
dom HtmlDom
return bool
        private static bool ShouldSetToDefaultCopyrightAndLicense(HtmlDom dom)
        {
            var hasCopyright = !dom.GetBookSetting("copyright").Empty;
            var hasLicenseUrl = !dom.GetBookSetting("licenseUrl").Empty;
            var hasLicenseNotes = !dom.GetBookSetting("licenseNotes").Empty;

            //Enhance: this logic is perhaps overly restrictive?
            return !hasCopyright && !hasLicenseUrl && !hasLicenseNotes;
        }