C# Class SobekCM.Resource_Object.Mapping.Bibliographic_Mapping

Static class is used to map field/value pairs into a SobekCM digital resource
Show file Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Add_Data ( SobekCM_Item Package, string Data, string Field ) : bool

Adds a bit of data to a bibliographic package using the mapping

Add_Data ( SobekCM_Item Package, string Data, string Field, string &Message ) : bool

Adds a bit of data to a bibliographic package using the mapping

Set_Mappings ( ) : void

Sets the mapping configuration and builds the iBibliographicMapper objects to handle the incoming field/value pairs

The configuration is loaded from the ResourceObjectSettings metadata configuration values.

Set_Mappings ( List MapperConfigs ) : void

Sets the mapping configuration and builds the iBibliographicMapper objects to handle the incoming field/value pairs

Verify_Initialization ( ) : void

Verified the iBibliographicMapper objects were loaded from the configuration, and loads if different

The configuration is loaded from the ResourceObjectSettings metadata configuration values.

Verify_Initialization ( List MapperConfigs ) : void

Verified the iBibliographicMapper objects were loaded from the configuration, and loads if different

Private Methods

Method Description
Bibliographic_Mapping ( ) : System

Initializes the static class

Method Details

Add_Data() public static method

Adds a bit of data to a bibliographic package using the mapping
public static Add_Data ( SobekCM_Item Package, string Data, string Field ) : bool
Package SobekCM_Item Bibliographic package to receive the data
Data string Text of the data
Field string Mapped field
return bool

Add_Data() public static method

Adds a bit of data to a bibliographic package using the mapping
public static Add_Data ( SobekCM_Item Package, string Data, string Field, string &Message ) : bool
Package SobekCM_Item Bibliographic package to receive the data
Data string Text of the data
Field string Mapped field
Message string [OUT] Message also indicates if the field was mapped, and which mapper found the match
return bool

Set_Mappings() public static method

Sets the mapping configuration and builds the iBibliographicMapper objects to handle the incoming field/value pairs
The configuration is loaded from the ResourceObjectSettings metadata configuration values.
public static Set_Mappings ( ) : void
return void

Set_Mappings() public static method

Sets the mapping configuration and builds the iBibliographicMapper objects to handle the incoming field/value pairs
public static Set_Mappings ( List MapperConfigs ) : void
MapperConfigs List Mapper configuration values, used to determine which mappers to /// create, and in what order
return void

Verify_Initialization() public static method

Verified the iBibliographicMapper objects were loaded from the configuration, and loads if different
The configuration is loaded from the ResourceObjectSettings metadata configuration values.
public static Verify_Initialization ( ) : void
return void

Verify_Initialization() public static method

Verified the iBibliographicMapper objects were loaded from the configuration, and loads if different
public static Verify_Initialization ( List MapperConfigs ) : void
MapperConfigs List Mapper configuration values, used to determine which mappers to /// create, and in what order
return void