本文整理汇总了C#中SobekCM_Item.Add_Unanalyzed_AMDSEC方法的典型用法代码示例。如果您正苦于以下问题:C# SobekCM_Item.Add_Unanalyzed_AMDSEC方法的具体用法?C# SobekCM_Item.Add_Unanalyzed_AMDSEC怎么用?C# SobekCM_Item.Add_Unanalyzed_AMDSEC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SobekCM_Item
的用法示例。
在下文中一共展示了SobekCM_Item.Add_Unanalyzed_AMDSEC方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read_Metadata
//.........这里部分代码省略.........
#endregion
#region Process the previously stored amd sections
// Now, process the previously stored amd sections
foreach (string thisAmdSecId in amdSec.Keys)
{
// Could be multiple stored sections with the same (or no) ID
foreach (Unanalyzed_METS_Section metsSection in amdSec[thisAmdSecId])
{
XmlReader reader = XmlReader.Create(new StringReader(metsSection.Inner_XML));
string mdtype = String.Empty;
string othermdtype = String.Empty;
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element)
{
if (reader.Name.ToLower().Replace("mets:", "") == "mdwrap")
{
if (reader.MoveToAttribute("MDTYPE"))
mdtype = reader.Value;
if (reader.MoveToAttribute("OTHERMDTYPE"))
othermdtype = reader.Value;
// Package-level amdSec
// Get an appropriate reader from the metadata configuration
iPackage_amdSec_ReaderWriter rw = ResourceObjectSettings.MetadataConfig.Get_Package_AmdSec_ReaderWriter(mdtype, othermdtype);
// Is this amdSec analyzable? (i.e., did we find an appropriate reader/writer?)
if (rw == null)
{
Return_Package.Add_Unanalyzed_AMDSEC(metsSection);
}
else
{
rw.Read_amdSec(reader, Return_Package, options);
}
}
}
}
}
}
#endregion
#region Special code used for moving downloads into the structure map system, and out of the old SobekCM METS section
// For backward compatability, move from the old download system to the
// new structure. This has to happen here at the end so that we have access
// Were there some downloads added here?
if (deprecatedDownloads.Count > 0)
{
// Get the list of downloads from the download tree
List<SobekCM_File_Info> newStructureDownloads = Return_Package.Divisions.Download_Tree.All_Files;
// Step through each download in the old system
foreach (Download_Info_DEPRECATED thisDownload in deprecatedDownloads)
{
// Get the label (if there is one)
string label = thisDownload.Label;
string filename = thisDownload.FileName;
bool found = false;
if ((filename.Length == 0) && (thisDownload.File_ID.Length > 0))