mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-12-16 14:35:32 +00:00
Indexnumber parsing disabled
This commit is contained in:
@@ -10,8 +10,8 @@ public class LetterDescNode : INodeRule
|
||||
Documents = new[] { "metadaten" },
|
||||
XPath = "//letterDesc"
|
||||
};
|
||||
public string[]? Attributes { get; } = { "ref" };
|
||||
public string? uniquenessAttribute => "ref" ;
|
||||
public string[]? Attributes { get; } = { "letter" };
|
||||
public string? uniquenessAttribute => "letter" ;
|
||||
public List<(string, HamannXPath, string)>? References { get; } = new List<(string, HamannXPath, string)>()
|
||||
{
|
||||
};
|
||||
|
||||
@@ -10,8 +10,8 @@ public class LetterTextNode : INodeRule
|
||||
Documents = new[] { "brieftext" },
|
||||
XPath = "//letterText"
|
||||
};
|
||||
public string[]? Attributes { get; } = { "index" };
|
||||
public string? uniquenessAttribute => "index" ;
|
||||
public string[]? Attributes { get; } = { "letter" };
|
||||
public string? uniquenessAttribute => "letter" ;
|
||||
public List<(string, HamannXPath, string)>? References { get; } = new List<(string, HamannXPath, string)>()
|
||||
{
|
||||
};
|
||||
|
||||
@@ -10,8 +10,8 @@ public class LetterTraditionNode : INodeRule
|
||||
Documents = new[] { "ueberlieferung" },
|
||||
XPath = "//letterTradition"
|
||||
};
|
||||
public string[]? Attributes { get; } = { "ref" };
|
||||
public string? uniquenessAttribute => "ref" ;
|
||||
public string[]? Attributes { get; } = { "letter" };
|
||||
public string? uniquenessAttribute => "letter" ;
|
||||
public List<(string, HamannXPath, string)>? References { get; } = new List<(string, HamannXPath, string)>()
|
||||
{
|
||||
};
|
||||
|
||||
@@ -10,8 +10,8 @@ public class MarginalNode : INodeRule
|
||||
Documents = new[] { "stellenkommentar" },
|
||||
XPath = "//marginal"
|
||||
};
|
||||
public string[]? Attributes { get; } = { "index", "letter", "page", "line" };
|
||||
public string? uniquenessAttribute => "index";
|
||||
public string[]? Attributes { get; } = { "letter", "page", "line" };
|
||||
public string? uniquenessAttribute { get; }
|
||||
public List<(string, HamannXPath, string)>? References { get; } = new List<(string, HamannXPath, string)>()
|
||||
{
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ public class StructureCollection : ICollectionRule {
|
||||
|
||||
public IEnumerable<(string, XElement, XMLRootDocument)> GenerateIdentificationStrings(IEnumerable<(XElement, XMLRootDocument)> list) {
|
||||
foreach (var e in list) {
|
||||
var id = e.Item1.Name == "letterText" ? e.Item1.Attribute("index")!.Value : e.Item1.Attribute("ref")!.Value;
|
||||
var id = e.Item1.Attribute("letter")!.Value;
|
||||
var currpage = String.Empty;
|
||||
var currline = String.Empty;
|
||||
foreach (var el in e.Item1.Descendants()) {
|
||||
|
||||
Reference in New Issue
Block a user