Repaired Bugs in File-Upload. Basic Structure for loading File-Lists

This commit is contained in:
schnulller
2022-06-03 16:48:52 +02:00
parent 35ce2034f7
commit 743c88a4e5
14 changed files with 228 additions and 89 deletions

View File

@@ -4,7 +4,8 @@ using HaWeb.XMLParser;
public class EditsRoot : HaWeb.XMLParser.IXMLRoot {
public string Type { get; } = "Texteingriffe";
public string Container { get; } = "edits";
public string Prefix { get; } = "texteingriffe";
public string[] XPathContainer { get; } = { ".//data/edits", ".//edits" };
public Predicate<XElement> IsCollectedObject { get; } = (elem) => {
if (elem.Name == "editreason") return true;
@@ -18,16 +19,22 @@ public class EditsRoot : HaWeb.XMLParser.IXMLRoot {
else return null;
};
public List<(string, string)>? GenerateFields(XMLRootDocument document) {
public List<(string, string?)>? GenerateFields(XMLRootDocument document) {
return null;
}
public (string?, string) GenerateIdentificationString(XElement element) {
return (null, Container);
public (string?, string?) GenerateIdentificationString(XElement element) {
return (null, null);
}
public bool Replaces(XMLRootDocument doc1, XMLRootDocument doc2) {
return true;
}
public XElement CreateHamannDocument(XElement element) {
var opus = new XElement("opus");
opus.AddFirst(element);
return opus;
}
}