C# Class SobekCM.Resource_Object.METS_Sec_ReaderWriters.MarcXML_METS_dmdSec_ReaderWriter

MARCxml 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_MarcXML_Info ( XmlReader r, Bibliographic_Info thisBibInfo, SobekCM_Item package, bool Importing_Record ) : void

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

Read_MarcXML_Info ( XmlReader r, Bibliographic_Info thisBibInfo, SobekCM_Item package, bool Importing_Record, object>.Dictionary Options ) : void

Reads the MARC Core-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_MarcXML ( TextWriter Output, SobekCM_Item thisBib, bool Include_Schema ) : void

Add the bibliographic information as MARC21 slim XML 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
Add_Conference_Name ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record, int tag, int name_type ) : void
Add_Corporate_Name ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record, int tag, int name_type ) : void
Add_Descriptions ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record ) : void
Add_Hierarchical_Subject ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record, int tag ) : void
Add_Main_Title ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record, int tag, Title_Type_Enum type, int non_filling_type, int title_type ) : void
Add_Personal_Name ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record, int tag, int name_type ) : void
Add_Subject ( Bibliographic_Info thisBibInfo, SobekCM.Resource_Object.MARC.MARC_Record record, int tag, string topical_codes, string geographic_codes, string temporal_codes, string genre_codes, string occupation_codes ) : void
Remove_Trailing_Punctuation ( string source ) : string

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_MarcXML_Info() public static method

Reads the MARC Core-compliant section of XML and stores the data in the provided digital resource
public static Read_MarcXML_Info ( XmlReader r, Bibliographic_Info thisBibInfo, SobekCM_Item package, bool Importing_Record ) : void
r XmlReader XmlTextReader from which to read the marc data
thisBibInfo SobekCM.Resource_Object.Bib_Info.Bibliographic_Info Bibliographic object into which most the values are read
package SobekCM_Item Digital resource object to save the data to if this is reading the top-level bibDesc (OPTIONAL)
Importing_Record bool Importing record flag is used to determine if special treatment should be applied to the 001 identifier. If this is reading MarcXML from a dmdSec, this is set to false
return void

Read_MarcXML_Info() public static method

Reads the MARC Core-compliant section of XML and stores the data in the provided digital resource
public static Read_MarcXML_Info ( XmlReader r, Bibliographic_Info thisBibInfo, SobekCM_Item package, bool Importing_Record, object>.Dictionary Options ) : void
r XmlReader XmlTextReader from which to read the marc data
thisBibInfo SobekCM.Resource_Object.Bib_Info.Bibliographic_Info Bibliographic object into which most the values are read
package SobekCM_Item Digital resource object to save the data to if this is reading the top-level bibDesc (OPTIONAL)
Importing_Record bool Importing record flag is used to determine if special treatment should be applied to the 001 identifier. If this is reading MarcXML from a dmdSec, this is set to false
Options object>.Dictionary Dictionary of any options which this metadata reader/writer may utilize
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_MarcXML() public static method

Add the bibliographic information as MARC21 slim XML to the output stream for a given digital resource
public static Write_MarcXML ( TextWriter Output, SobekCM_Item thisBib, bool Include_Schema ) : void
Output System.IO.TextWriter Output stream for this metadata to be written to
thisBib SobekCM_Item Source digital resource
Include_Schema bool Flag indicates whether the schema information should be included in the record tag
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