/// <summary> Prepares the bib object for the save, by clearing the /// existing data in this element's related field. </summary> /// <param name="Bib"> Existing Bib object </param> public override void Prepare_For_Save(SobekCM_Item Bib) { VRACore_Info vraInfo = Bib.Get_Metadata_Module(GlobalVar.VRACORE_METADATA_MODULE_KEY) as VRACore_Info; if (vraInfo != null) { vraInfo.Clear_Style_Periods(); } }
/// <summary> Prepares the bib object for the save, by clearing any existing data in this element's related field(s) </summary> /// <param name="Bib"> Existing digital resource object which may already have values for this element's data field(s) </param> /// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param> /// <remarks> This clears any preexisting resource type values </remarks> public override void Prepare_For_Save(SobekCM_Item Bib, User_Object Current_User) { // Try to get any existing metadata module VRACore_Info vraInfo = Bib.Get_Metadata_Module(GlobalVar.VRACORE_METADATA_MODULE_KEY) as VRACore_Info; if (vraInfo != null) { vraInfo.Clear_Style_Periods(); } }