C# Class SobekCM_Resource_Database.Builder.Bib_Package_Builder

Creates a bibliographic package from a variety of locations
Object created by Mark V Sullivan (2006) for University of Florida's Digital Library Center.
Afficher le fichier Open project: MarkVSullivan/SobekCM-Web-Application

Méthodes publiques

Méthode Description
Add_All_Files ( SobekCM_Item BIBPackage, string FilesFilter, bool RecursivelyIncludeSubfolders, bool PageImagesInSeperateFoldersCanBeSamePage ) : void

Adds all of the file information to a digital resource package by analyzing the directory

Add_MARC_Info ( SobekCM_Item BIBPackage, string MARCDirectory, string XMLDirectory ) : bool

Enrich a SobekCM_Item objet with information

Add_Project_Info ( SobekCM_Item BIBPackage, string ProjectDirectory ) : void

Looks for project-level METS files and enriches the provided digital resource

Get_Bibliographic_Data ( string BIBID, string Volumeid, string DestinationDirectory, string METSDirectory, string MARCDirectory, string ProjectDirectory, string XMLDirectory, string AppName, string UserName, Load_From_Database_Delegate DatabaseLoadMethod ) : SobekCM_Item

Builds a bib package using the database of choice for any additionally needed information

Load_SobekCM_Item_List ( string SobekCM_Base_URL, string Drive_Location ) : SobekCM.Resource_Object.Database.DataSets.SobekCM_All_Items

Load the list of SobekCM items in preparation for Bib package building

Private Methods

Méthode Description
Bib_Package_Builder ( ) : System

Static constructor for the Bib_Package_Builder class

get_files_from_current_directory ( Builder_Page_File_Collection FileList, List FileFilters, string SourceDirectory, string RelativeDirectory, bool RecursivelyIncludeSubfolders ) : void
read_marc_file ( SobekCM_Item BIBPackage, string ThisRecord, string MARCDirectory ) : bool
recursively_add_all_METS_files ( SobekCM.Resource_Object.Divisions.abstract_TreeNode RootNode, List METSFiles, Builder_Page_File_Collection METSFileCollection, Page_TreeNode>.Dictionary FileToPage, Division_TreeNode>.Dictionary PageToDiv, List FileFilters ) : void
recursively_remove_empty_divisions ( SobekCM.Resource_Object.Divisions.abstract_TreeNode ChildNode ) : bool

Method Details

Add_All_Files() public static méthode

Adds all of the file information to a digital resource package by analyzing the directory
public static Add_All_Files ( SobekCM_Item BIBPackage, string FilesFilter, bool RecursivelyIncludeSubfolders, bool PageImagesInSeperateFoldersCanBeSamePage ) : void
BIBPackage SobekCM.Resource_Object.SobekCM_Item Digital resource package to enrich
FilesFilter string Files to be added as page image files ( such as "*.tif|*.jpg|*.jp2" )
RecursivelyIncludeSubfolders bool Flag indicates if all files in subfolders should also be added
PageImagesInSeperateFoldersCanBeSamePage bool If two images with the same root are found in subfolders, should
Résultat void

Add_MARC_Info() public static méthode

Enrich a SobekCM_Item objet with information
public static Add_MARC_Info ( SobekCM_Item BIBPackage, string MARCDirectory, string XMLDirectory ) : bool
BIBPackage SobekCM.Resource_Object.SobekCM_Item
MARCDirectory string
XMLDirectory string
Résultat bool

Add_Project_Info() public static méthode

Looks for project-level METS files and enriches the provided digital resource
public static Add_Project_Info ( SobekCM_Item BIBPackage, string ProjectDirectory ) : void
BIBPackage SobekCM.Resource_Object.SobekCM_Item Digital resource to enrich
ProjectDirectory string Directory where project-level METS can be found
Résultat void

Get_Bibliographic_Data() public static méthode

Builds a bib package using the database of choice for any additionally needed information
public static Get_Bibliographic_Data ( string BIBID, string Volumeid, string DestinationDirectory, string METSDirectory, string MARCDirectory, string ProjectDirectory, string XMLDirectory, string AppName, string UserName, Load_From_Database_Delegate DatabaseLoadMethod ) : SobekCM_Item
BIBID string Bib ID
Volumeid string VID
DestinationDirectory string Directory in which to save the METS file and look for data
METSDirectory string Directory where pre-assembled METS files are stored
MARCDirectory string Directory where MARC XML files are stored
ProjectDirectory string Directory where PROJECT-LEVEL METS files are stored
XMLDirectory string Directory where necessary XML helper files are stored
AppName string Name of this application
UserName string Name of this user
DatabaseLoadMethod Load_From_Database_Delegate Method to call to enrich this package from the database
Résultat SobekCM.Resource_Object.SobekCM_Item

Load_SobekCM_Item_List() public static méthode

Load the list of SobekCM items in preparation for Bib package building
public static Load_SobekCM_Item_List ( string SobekCM_Base_URL, string Drive_Location ) : SobekCM.Resource_Object.Database.DataSets.SobekCM_All_Items
SobekCM_Base_URL string Base URL for the SobekCM instance
Drive_Location string Location on the local or network drive for the list of items to be checked and stored
Résultat SobekCM.Resource_Object.Database.DataSets.SobekCM_All_Items