public AddDocumentTask(Page page)
                : base(page)
            {
                NoIndex = page.GetValue<bool>("noIndex");
                if (NoIndex)
                    return;

                Title = page["headline"];
                if (string.IsNullOrEmpty(Title))
                    Title = page.EntityName;

                TemplateName = page.Template.Name;

                if (TemplateName == "NewsPage")
                {
                    var newsPage = page.CastAs<NewsPage>();
                    Date = newsPage.Date;
                    Subjects = (newsPage["subjects"]?? string.Empty).Split(',','|',';');
                }

                Summary = page["metaDescription"];
                if (string.IsNullOrEmpty(Summary))
                    Summary = page["intro"];
                if (string.IsNullOrEmpty(Summary))
                {
                    var html = page.GetValue<Html>("body");
                    if (!html.IsEmpty)
                        Summary = html.GetExtract(150, true).ToString();
                }
            }