Exemplo n.º 1
0
 protected void SaveMetadata()
 {
     //TODO: error handling and logging
     try
     {
         this.Cursor = Cursors.WaitCursor;
         PopulateArticleNumber();
         if (HasArticleNumber())
         {
             //XElement x = _wordUtils.GetWordDocTextWithStyles(_wordApp);
             //ParseForInlineReferences(x.ToString());
             _scServer.SaveArticleDetails(GetArticleNumber(), GetArticleDetails());
             _taxonomyTabControllers.ForEach(t => t.HasChanged = false);
             tabControl1.Refresh();
             MessageBox.Show("Article details saved!", "Elsevier", MessageBoxButtons.OK, MessageBoxIcon.Information);
             SetCheckedOutStatus();
         }
     }
     catch (WebException ex)
     {
         Globals.SitecoreAddin.LogException("Error in article details when saving metadata", ex);
         AlertConnectionFailed();
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }