C# Class SobekCM.Resource_Object.METS_Sec_ReaderWriters.MODS_METS_dmdSec_ReaderWriter

Metadata Object Description Standard (MODS) reader that operates against a single METS section
Inheritance: XML_Writing_Base_Type, iPackage_dmdSec_ReaderWriter
Exibir arquivo Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Include_dmdSec ( SobekCM_Item METS_Item, object>.Dictionary Options ) : bool

Flag indicates if this active reader/writer will write a dmdSec

Read_MODS_Info ( XmlReader R, Bibliographic_Info ThisBibInfo, SobekCM_Item Return_Item ) : void

Reads the MODS-compliant section of XML and stores the data in the provided digital resource

Read_dmdSec ( XmlReader Input_XmlReader, SobekCM_Item Return_Package, object>.Dictionary Options ) : bool

Reads the dmdSec at the current position in the XmlTextReader and associates it with the entire package

Schema_Location ( SobekCM_Item METS_Item ) : string[]

Returns the schema location information to be written in the XML/METS Header

Schema_Namespace ( SobekCM_Item METS_Item ) : string[]

Returns the schema namespace (xmlns) information to be written in the XML/METS Header

Schema_Reference_Required_Package ( SobekCM_Item METS_Item ) : bool

Flag indicates if this active reader/writer needs to append schema reference information to the METS XML header by analyzing the contents of the digital resource item

Write_MODS ( TextWriter Output, Bibliographic_Info thisBibInfo ) : void

Add the bibliographic information as MODS to the output stream for a given digital resource

Write_dmdSec ( TextWriter Output_Stream, SobekCM_Item METS_Item, object>.Dictionary Options ) : bool

Writes the dmdSec for the entire package to the text writer

Private Methods

Method Description
read_name_object ( XmlReader r ) : Name_Info
read_physical_description ( XmlReader r, SobekCM.Resource_Object.Bib_Info.PhysicalDescription_Info description ) : void
read_subject_object ( XmlReader r, Bibliographic_Info thisBibInfo ) : void
read_title_object ( XmlReader r ) : SobekCM.Resource_Object.Bib_Info.Title_Info
read_vra_core_extensions ( XmlReader r, Bibliographic_Info thisBibInfo, string alias, SobekCM_Item Package ) : void

Method Details

Include_dmdSec() public method

Flag indicates if this active reader/writer will write a dmdSec
public Include_dmdSec ( SobekCM_Item METS_Item, object>.Dictionary Options ) : bool
METS_Item SobekCM_Item Package with all the metadata to save
Options object>.Dictionary Dictionary of any options which this METS section writer may utilize
return bool

Read_MODS_Info() public static method

Reads the MODS-compliant section of XML and stores the data in the provided digital resource
public static Read_MODS_Info ( XmlReader R, Bibliographic_Info ThisBibInfo, SobekCM_Item Return_Item ) : void
R XmlReader XmlTextReader from which to read the MODS data
ThisBibInfo SobekCM.Resource_Object.Bib_Info.Bibliographic_Info Digital resource object to save the data to
Return_Item SobekCM_Item Return item to have the MODS information populated
return void

Read_dmdSec() public method

Reads the dmdSec at the current position in the XmlTextReader and associates it with the entire package
public Read_dmdSec ( XmlReader Input_XmlReader, SobekCM_Item Return_Package, object>.Dictionary Options ) : bool
Input_XmlReader XmlReader Open XmlReader from which to read the metadata
Return_Package SobekCM_Item Package into which to read the metadata
Options object>.Dictionary Dictionary of any options which this METS section reader may utilize
return bool

Schema_Location() public method

Returns the schema location information to be written in the XML/METS Header
public Schema_Location ( SobekCM_Item METS_Item ) : string[]
METS_Item SobekCM_Item Package with all the metadata to save
return string[]

Schema_Namespace() public method

Returns the schema namespace (xmlns) information to be written in the XML/METS Header
public Schema_Namespace ( SobekCM_Item METS_Item ) : string[]
METS_Item SobekCM_Item Package with all the metadata to save
return string[]

Schema_Reference_Required_Package() public method

Flag indicates if this active reader/writer needs to append schema reference information to the METS XML header by analyzing the contents of the digital resource item
public Schema_Reference_Required_Package ( SobekCM_Item METS_Item ) : bool
METS_Item SobekCM_Item Package with all the metadata to save
return bool

Write_MODS() public static method

Add the bibliographic information as MODS to the output stream for a given digital resource
public static Write_MODS ( TextWriter Output, Bibliographic_Info thisBibInfo ) : void
Output System.IO.TextWriter Output stream for this metadata to be written to
thisBibInfo SobekCM.Resource_Object.Bib_Info.Bibliographic_Info Source digital resource bibliographic information
return void

Write_dmdSec() public method

Writes the dmdSec for the entire package to the text writer
public Write_dmdSec ( TextWriter Output_Stream, SobekCM_Item METS_Item, object>.Dictionary Options ) : bool
Output_Stream System.IO.TextWriter Stream to which the formatted text is written
METS_Item SobekCM_Item Package with all the metadata to save
Options object>.Dictionary Dictionary of any options which this METS section writer may utilize
return bool