protected void publishButton_OnClick(object sender, EventArgs e) { WBLogging.Debug("In publishButton_OnClick()"); Hashtable metadataProblems = CheckMetadataOK(); if (metadataProblems.Count > 0) { PublishingApprovedByError.Text = metadataProblems["PublishingApprovedBy"].WBxToString(); CheckListError.Text = metadataProblems["CheckList"].WBxToString(); WBLogging.Debug("In publishButton_OnClick(): Page render required - not publishing at this point"); ReRenderPage(); } else { List <SPUser> approvedBy = PublishingApprovedBy.WBxGetMultiResolvedUsers(SPContext.Current.Web); process.AddExtraMetadata(WBColumn.PublishingApprovedBy, approvedBy.WBxToString()); process.AddExtraMetadata(WBColumn.PublishingApprovalChecklist, CheckBoxesCodes.Value); WBLogging.Debug("In publishButton_OnClick(): No page render required - so moving to GoToPublishPage"); GoToPublishPage(); } }
protected void CaptureChanges() { if (NewRadioButton.Checked) { process.ReplaceAction = WBPublishingProcess.REPLACE_ACTION__CREATE_NEW_SERIES; } else { if (LeaveOnIzziCheckBox.Checked) { process.ReplaceAction = WBPublishingProcess.REPLACE_ACTION__LEAVE_ON_IZZI; } else { process.ReplaceAction = WBPublishingProcess.REPLACE_ACTION__ARCHIVE_FROM_IZZI; } } if (EditShortTitle.Text != ShortTitle.Text) { process.CurrentShortTitle = EditShortTitle.Text; } process.SubjectTagsUIControlValue = SubjectTagsField.Text; WBLogging.Debug("Captured subject tags to be: " + SubjectTagsField.Text); if (process.OwningTeamUIControlValue != OwningTeamField.Text) { // OK so the owning team has changed we need to change the owning team and the associated IAO: process.OwningTeamUIControlValue = OwningTeamField.Text; WBTeam owningTeam = new WBTeam(process.TeamsTaxonomy, process.OwningTeamUIControlValue); process.OwningTeamsIAOAtTimeOfPublishing = owningTeam.InformationAssetOwnerLogin; process.AddExtraMetadata(WBColumn.IAOAtTimeOfPublishing, process.OwningTeamsIAOAtTimeOfPublishing); } process.InvolvedTeamsWithoutOwningTeamAsUIControlValue = InvolvedTeamsField.Text; process.WebPageURL = WebPageURL.Text; if (!String.IsNullOrEmpty(process.WebPageURL)) { process.AddExtraMetadata(WBColumn.IntendedWebPageURL, process.WebPageURL); } }