mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 09:15:33 +00:00
Person Pages
This commit is contained in:
@@ -13,6 +13,7 @@ namespace HaDocument.Reactors {
|
||||
// State
|
||||
private string Index;
|
||||
private string Name;
|
||||
private string? Komm;
|
||||
|
||||
internal HandDefsReactor(IReader reader, IntermediateLibrary lib) : base(reader, lib) {
|
||||
lib.HandPersons = new Dictionary<string, Person>();
|
||||
@@ -38,6 +39,7 @@ namespace HaDocument.Reactors {
|
||||
_active = true;
|
||||
Index = tag["index"];
|
||||
Name = tag["name"];
|
||||
if (!String.IsNullOrWhiteSpace(tag["komm"])) Komm = tag["komm"];
|
||||
Add();
|
||||
_active = false;
|
||||
}
|
||||
@@ -49,7 +51,7 @@ namespace HaDocument.Reactors {
|
||||
}
|
||||
|
||||
protected void Add() {
|
||||
CreatedInstances.Add(Index, new Person(Index, Name, "", ""));
|
||||
CreatedInstances.Add(Index, new Person(Index, Name, "", "", Komm));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user