/// <summary> Flag indicates if this active reader/writer will write a dmdSec for this node </summary> /// <param name="MetsDivision"> Division to check if a dmdSec will be written </param> /// <param name="Options"> Dictionary of any options which this METS section writer may utilize</param> /// <returns> TRUE if the package has data to be written, otherwise fALSE </returns> public bool Include_dmdSec(abstract_TreeNode MetsDivision, Dictionary<string, object> Options) { // GEt the geo-spatial information if it exists GeoSpatial_Information geoInfo = MetsDivision.Get_Metadata_Module(GlobalVar.GEOSPATIAL_METADATA_MODULE_KEY) as GeoSpatial_Information; if ((geoInfo == null) || (!geoInfo.hasData)) return false; return true; }
/// <summary> Reads the dmdSec at the current position in the XmlTextReader and associates it with /// one subsection/division from the METS structure map </summary> /// <param name="Input_XmlReader"> Open XmlReader from which to read the metadata </param> /// <param name="MetsDivision"> Division from the overall package into which to read the metadata</param> /// <param name="Options"> Dictionary of any options which this METS section writer may utilize</param> /// <returns> TRUE if successful, otherwise FALSE</returns> public bool Read_dmdSec(XmlReader Input_XmlReader, abstract_TreeNode MetsDivision, Dictionary<string, object> Options) { // Get the geo-spatial information if it exists or create a new one GeoSpatial_Information geoInfo = MetsDivision.Get_Metadata_Module(GlobalVar.GEOSPATIAL_METADATA_MODULE_KEY) as GeoSpatial_Information; if (geoInfo == null) { geoInfo = new GeoSpatial_Information(); MetsDivision.Add_Metadata_Module(GlobalVar.GEOSPATIAL_METADATA_MODULE_KEY, geoInfo); } return Read_Metadata_Section(Input_XmlReader, geoInfo, Options); }
/// <summary> Writes the dmdSec for one subsection/division of the METS structure map </summary> /// <param name="Output_Stream">Stream to which the formatted text is written </param> /// <param name="MetsDivision">Division from the overall package with all the metadata to save</param> /// <param name="Options"> Dictionary of any options which this METS section writer may utilize</param> /// <returns>TRUE if successful, otherwise FALSE </returns> public bool Write_dmdSec(TextWriter Output_Stream, abstract_TreeNode MetsDivision, Dictionary<string, object> Options) { // GEt the geo-spatial information if it exists GeoSpatial_Information geoInfo = MetsDivision.Get_Metadata_Module(GlobalVar.GEOSPATIAL_METADATA_MODULE_KEY) as GeoSpatial_Information; if ((geoInfo == null) || (!geoInfo.hasData)) return true; return Write_Metadata_Section(Output_Stream, geoInfo, Options); }
/// <summary> Flag indicates if this active reader/writer needs to append schema reference information /// to the METS XML header by analyzing the contents of the division </summary> /// <param name="MetsDivision"> Division from the overall package into which to read the metadata</param> /// <returns> TRUE if the schema should be attached, otherwise fALSE </returns> public bool Schema_Reference_Required_Division(abstract_TreeNode MetsDivision) { // GEt the geo-spatial information if it exists GeoSpatial_Information geoInfo = MetsDivision.Get_Metadata_Module(GlobalVar.GEOSPATIAL_METADATA_MODULE_KEY) as GeoSpatial_Information; if ((geoInfo == null) || (!geoInfo.hasData)) return false; return true; }