/// <summary> Adds an uncontrolled type to this resource </summary> /// <param name="Uncontrolled_Type"> New uncontrolled type </param> /// <remarks> This type is still analyzed to see if it is actually controlled </remarks> public void Add_Uncontrolled_Type(string Uncontrolled_Type) { switch (Uncontrolled_Type.ToUpper().Replace(" ", "").Replace(",", "").Replace("-", "")) { case "TEXT": modsType = TypeOfResource_MODS_Enum.Text; break; case "CARTOGRAPHIC": modsType = TypeOfResource_MODS_Enum.Cartographic; break; case "NOTATEDMUSIC": modsType = TypeOfResource_MODS_Enum.Notated_Music; break; case "SOUNDRECORDING": modsType = TypeOfResource_MODS_Enum.Sound_Recording; break; case "SOUNDRECORDINGMUSICAL": modsType = TypeOfResource_MODS_Enum.Sound_Recording_Musical; break; case "SOUNDRECORDINGNONMUSICAL": modsType = TypeOfResource_MODS_Enum.Sound_Recording_Nonmusical; break; case "STILLIMAGE": case "IMAGE": modsType = TypeOfResource_MODS_Enum.Still_Image; break; case "MOVINGIMAGE": modsType = TypeOfResource_MODS_Enum.Moving_Image; break; case "THREEDIMENSIONALOBJECT": modsType = TypeOfResource_MODS_Enum.Three_Dimensional_Object; break; case "SOFTWAREMULTIMEDIA": case "DATASET": modsType = TypeOfResource_MODS_Enum.Sofware_Multimedia; break; case "MIXEDMATERIALS": case "MIXEDMATERIAL": modsType = TypeOfResource_MODS_Enum.Mixed_Material; break; default: if (uncontrolledTypes == null) { uncontrolledTypes = new List <string>(); } uncontrolledTypes.Add(Uncontrolled_Type); break; } }
/// <summary> Constructor for a new type of resource object </summary> public TypeOfResource_Info() { modsType = TypeOfResource_MODS_Enum.UNKNOWN; collection = false; manuscript = false; }
/// <summary> Clear all the data associated with this type </summary> public void Clear() { modsType = TypeOfResource_MODS_Enum.UNKNOWN; collection = false; manuscript = false; }
public void Add_Uncontrolled_Type(string Uncontrolled_Type) { switch (Uncontrolled_Type.ToUpper().Replace(" ", "").Replace(",", "").Replace("-", "")) { case "TEXT": modsType = TypeOfResource_MODS_Enum.Text; break; case "CARTOGRAPHIC": modsType = TypeOfResource_MODS_Enum.Cartographic; break; case "NOTATEDMUSIC": modsType = TypeOfResource_MODS_Enum.Notated_Music; break; case "SOUNDRECORDING": modsType = TypeOfResource_MODS_Enum.Sound_Recording; break; case "SOUNDRECORDINGMUSICAL": modsType = TypeOfResource_MODS_Enum.Sound_Recording_Musical; break; case "SOUNDRECORDINGNONMUSICAL": modsType = TypeOfResource_MODS_Enum.Sound_Recording_Nonmusical; break; case "STILLIMAGE": modsType = TypeOfResource_MODS_Enum.Still_Image; break; case "MOVINGIMAGE": modsType = TypeOfResource_MODS_Enum.Moving_Image; break; case "THREEDIMENSIONALOBJECT": modsType = TypeOfResource_MODS_Enum.Three_Dimensional_Object; break; case "SOFTWAREMULTIMEDIA": modsType = TypeOfResource_MODS_Enum.Sofware_Multimedia; break; case "MIXEDMATERIALS": case "MIXEDMATERIAL": modsType = TypeOfResource_MODS_Enum.Mixed_Material; break; default: if (uncontrolledTypes == null) uncontrolledTypes = new List<string>(); uncontrolledTypes.Add(Uncontrolled_Type); break; } }