diff --git a/HaWeb/CMIF/model.cs b/HaWeb/CMIF/model.cs index 0f91f00..0968822 100644 --- a/HaWeb/CMIF/model.cs +++ b/HaWeb/CMIF/model.cs @@ -51,7 +51,7 @@ public class PublicationStatement { }, new Publisher() { Reference = new PublisherRef() { - Target = "https://gs.uni-heidelberg.de", + Target = "https://www.gs.uni-heidelberg.de", Value = "Germanistisches Seminar der Universität Heidelberg", } } @@ -145,7 +145,7 @@ public class CorrespondenceAction { [XmlElement("placeName")] public List? PlaceName { get; set; } [XmlElement("orgName")] - public List? OrgName { get; set; } + public List? OrgName { get; set; } [XmlElement("date")] public Date? Date { get; set; } } @@ -265,12 +265,12 @@ public class TeiDocument { } static class CMIFHelpers { - public static (List?, List?) ParseNamesList(ILibrary lib, List names) { + public static (List?, List?) ParseNamesList(ILibrary lib, List names) { var UNKNOWN_URL = "http://correspSearch.net/unknown"; var UNKNOWN_TEXT = "Unbekannt"; var PERSON_URL = "https://hamann-ausgabe.de/HKB/Person/"; var PersonName = new List(); - var OrgName = new List(); + var OrgName = new List(); foreach (var id in names) { if (id == "-1") { PersonName.Add(new PersonName() { Name = UNKNOWN_TEXT, Reference = UNKNOWN_URL }); @@ -278,13 +278,13 @@ static class CMIFHelpers { else if (lib.Persons.ContainsKey(id)) { var libpers = lib.Persons[id]; if (libpers == null || String.IsNullOrWhiteSpace(libpers.Name)) continue; + var pref = PERSON_URL + libpers.Index; + if (libpers.Reference != null && !string.IsNullOrWhiteSpace(libpers.Reference)) + pref = libpers.Reference; if (libpers.IsOrg) { - OrgName.Add(libpers.Name); + OrgName.Add(new PersonName() { Name = libpers.Name, Reference = pref }); } else { - var pref = PERSON_URL + libpers.Index; - if (libpers.Reference != null && !string.IsNullOrWhiteSpace(libpers.Reference)) - pref = libpers.Reference; PersonName.Add(new PersonName() { Name = libpers.Name, Reference = pref }); } } diff --git a/HaWeb/Views/Shared/_HKWMenu.cshtml b/HaWeb/Views/Shared/_HKWMenu.cshtml index e0a6d2c..22ab0bc 100644 --- a/HaWeb/Views/Shared/_HKWMenu.cshtml +++ b/HaWeb/Views/Shared/_HKWMenu.cshtml @@ -1,15 +1,19 @@
@* *@ -