mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
CMIF Verbesserungen
This commit is contained in:
@@ -51,7 +51,7 @@ public class PublicationStatement {
|
|||||||
},
|
},
|
||||||
new Publisher() {
|
new Publisher() {
|
||||||
Reference = new PublisherRef() {
|
Reference = new PublisherRef() {
|
||||||
Target = "https://gs.uni-heidelberg.de",
|
Target = "https://www.gs.uni-heidelberg.de",
|
||||||
Value = "Germanistisches Seminar der Universität Heidelberg",
|
Value = "Germanistisches Seminar der Universität Heidelberg",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -145,7 +145,7 @@ public class CorrespondenceAction {
|
|||||||
[XmlElement("placeName")]
|
[XmlElement("placeName")]
|
||||||
public List<PlaceName>? PlaceName { get; set; }
|
public List<PlaceName>? PlaceName { get; set; }
|
||||||
[XmlElement("orgName")]
|
[XmlElement("orgName")]
|
||||||
public List<string>? OrgName { get; set; }
|
public List<PersonName>? OrgName { get; set; }
|
||||||
[XmlElement("date")]
|
[XmlElement("date")]
|
||||||
public Date? Date { get; set; }
|
public Date? Date { get; set; }
|
||||||
}
|
}
|
||||||
@@ -265,12 +265,12 @@ public class TeiDocument {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static class CMIFHelpers {
|
static class CMIFHelpers {
|
||||||
public static (List<PersonName>?, List<string>?) ParseNamesList(ILibrary lib, List<string> names) {
|
public static (List<PersonName>?, List<PersonName>?) ParseNamesList(ILibrary lib, List<string> names) {
|
||||||
var UNKNOWN_URL = "http://correspSearch.net/unknown";
|
var UNKNOWN_URL = "http://correspSearch.net/unknown";
|
||||||
var UNKNOWN_TEXT = "Unbekannt";
|
var UNKNOWN_TEXT = "Unbekannt";
|
||||||
var PERSON_URL = "https://hamann-ausgabe.de/HKB/Person/";
|
var PERSON_URL = "https://hamann-ausgabe.de/HKB/Person/";
|
||||||
var PersonName = new List<PersonName>();
|
var PersonName = new List<PersonName>();
|
||||||
var OrgName = new List<string>();
|
var OrgName = new List<PersonName>();
|
||||||
foreach (var id in names) {
|
foreach (var id in names) {
|
||||||
if (id == "-1") {
|
if (id == "-1") {
|
||||||
PersonName.Add(new PersonName() { Name = UNKNOWN_TEXT, Reference = UNKNOWN_URL });
|
PersonName.Add(new PersonName() { Name = UNKNOWN_TEXT, Reference = UNKNOWN_URL });
|
||||||
@@ -278,13 +278,13 @@ static class CMIFHelpers {
|
|||||||
else if (lib.Persons.ContainsKey(id)) {
|
else if (lib.Persons.ContainsKey(id)) {
|
||||||
var libpers = lib.Persons[id];
|
var libpers = lib.Persons[id];
|
||||||
if (libpers == null || String.IsNullOrWhiteSpace(libpers.Name)) continue;
|
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) {
|
if (libpers.IsOrg) {
|
||||||
OrgName.Add(libpers.Name);
|
OrgName.Add(new PersonName() { Name = libpers.Name, Reference = pref });
|
||||||
}
|
}
|
||||||
else {
|
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 });
|
PersonName.Add(new PersonName() { Name = libpers.Name, Reference = pref });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,19 @@
|
|||||||
<header class="sticky font-serif mb-6">
|
<header class="sticky font-serif mb-6">
|
||||||
@* <div class="w-100 bg-gray-300 text-sm clear-both py-1 px-8 text-right">
|
@* <div class="w-100 bg-gray-300 text-sm clear-both py-1 px-8 text-right">
|
||||||
<a class="underline" asp-controller="Index" asp-action="index">
|
<a class="underline" asp-controller="Index" asp-action="index">
|
||||||
Johann Georg Hamann: Kommentierte Briefedition >>
|
Johann Georg Hamann: Kommentierte Briefedition >>
|
||||||
</a>
|
</a>
|
||||||
</div> *@
|
</div> *@
|
||||||
<nav class="flex flex-row w-100 bg-slate-50 dark:shadow-xl border-t-[5px] border-gray-300 dark:border-gray-900 py-3 px-3 desktop:px-8 flex-wrap gap-y-4">
|
<nav
|
||||||
<a asp-controller="HKW" asp-action="Index" class="text-xl xl:text-3xl grow-0 shrink-0 text-black hover:text-black ">
|
class="flex flex-row w-100 bg-slate-50 dark:shadow-xl border-t-[5px] border-gray-300 dark:border-gray-900 py-3 px-3 desktop:px-8 flex-wrap gap-y-4">
|
||||||
<img src="/img/HKW.png" class="inline-block w-8 h-8 xl:w-12 xl:h-12 mr-2 border border-gray-300 shadow-sm" alt="HKW-Logo" loading="lazy" />
|
<a asp-controller="HKW" asp-action="Index"
|
||||||
<span class="sm:hidden">Hamann: Komm. Werkedition</span>
|
class="text-xl xl:text-3xl grow-0 shrink-0 text-black hover:text-black ">
|
||||||
<span class="hidden sm:inline md:hidden">Johan Georg Hamann: Kommentierte Werkedition</span>
|
<img src="/img/HKW.png" class="inline-block w-8 h-8 xl:w-12 xl:h-12 mr-2 border border-gray-300 shadow-sm"
|
||||||
<span class="hidden md:inline align-baseline">Johann Georg Hamann: Historisch-kritische und kommentierte Edition ausgewählter Werke ( H K W )</span>
|
alt="HKW-Logo" loading="lazy" />
|
||||||
|
<span class="sm:hidden">Hamann: Komm. Werkedition</span>
|
||||||
|
<span class="hidden sm:inline md:hidden">Johan Georg Hamann: Kommentierte Werkedition</span>
|
||||||
|
<span class="hidden md:inline align-baseline">Johann Georg Hamann: Historisch-kritische und kommentierte
|
||||||
|
Edition ausgewählter Werke ( H K W )</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="flex grow shrink">
|
<div class="flex grow shrink">
|
||||||
|
|
||||||
@@ -36,20 +40,42 @@
|
|||||||
<a href="/HKW/Baende/" class="cursor-default ha-menu-arrowsymbol pointer-events-none">
|
<a href="/HKW/Baende/" class="cursor-default ha-menu-arrowsymbol pointer-events-none">
|
||||||
Bände
|
Bände
|
||||||
</a>
|
</a>
|
||||||
<div class="ha-topnav-dropdown-content " >
|
<div class="ha-topnav-dropdown-content ">
|
||||||
<table class="">
|
<table class="">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl"><div class="inline text-sm border px-1 rounded border-hamannSlate-500 text-hamannSlate-500 font-sans">Erschienen</div></td>
|
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl">
|
||||||
<td><a asp-controller="HKW" asp-action="FliegenderBrief">Fliegender Brief</a></td></tr>
|
<div
|
||||||
<tr>
|
class="inline text-sm border px-1 rounded border-hamannSlate-500 text-hamannSlate-500 font-sans">
|
||||||
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl"><div class="inline text-sm border px-1 rounded border-hamannSlate-500 text-hamannSlate-500 font-sans">Erschienen</div></td>
|
Erschienen</div>
|
||||||
<td><a asp-controller="HKW" asp-action="SokratischeDenkwuerdigkeiten">Sokr. Denkwürdigkeiten. Wolken</a></td></tr>
|
</td>
|
||||||
<tr class="desktop:border-slate-300">
|
<td><a asp-controller="HKW" asp-action="FliegenderBrief">Fliegender Brief</a></td>
|
||||||
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl"><div class="inline text-sm border px-1 rounded border-orange-600 text-orange-600 font-sans">Geplant</div></td>
|
</tr>
|
||||||
<td><a asp-controller="HKW" asp-action="Kreuzzuege">Kreuzzüge des Philologen. Intermezzo</a></td></tr>
|
<tr>
|
||||||
<tr class="desktop:border-b desktop:border-slate-300">
|
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl">
|
||||||
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl"><div class="inline text-sm border px-1 rounded border-orange-600 text-orange-600 font-sans">Geplant</div></td>
|
<div
|
||||||
<td><a asp-controller="HKW" asp-action="Essais">Essais. Kunstrichter. Hirtenbriefe</a></td></tr>
|
class="inline text-sm border px-1 rounded border-hamannSlate-500 text-hamannSlate-500 font-sans">
|
||||||
|
Erschienen</div>
|
||||||
|
</td>
|
||||||
|
<td><a asp-controller="HKW" asp-action="SokratischeDenkwuerdigkeiten">Sokr.
|
||||||
|
Denkwürdigkeiten. Wolken</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="desktop:border-slate-300">
|
||||||
|
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl">
|
||||||
|
<div
|
||||||
|
class="inline text-sm border px-1 rounded border-orange-600 text-orange-600 font-sans">
|
||||||
|
Geplant</div>
|
||||||
|
</td>
|
||||||
|
<td><a asp-controller="HKW" asp-action="Kreuzzuege">Kreuzzüge des Philologen.
|
||||||
|
Beurtheilung</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="desktop:border-b desktop:border-slate-300">
|
||||||
|
<td class="text-right px-2 desktop:bg-slate-200 caps-petite desktop:shadow-2xl">
|
||||||
|
<div
|
||||||
|
class="inline text-sm border px-1 rounded border-orange-600 text-orange-600 font-sans">
|
||||||
|
Geplant</div>
|
||||||
|
</td>
|
||||||
|
<td><a asp-controller="HKW" asp-action="Essais">Essais. Kunstrichter. Hirtenbriefe</a></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -60,19 +86,21 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="ha-topnav-dropdown">
|
<div class="ha-topnav-dropdown">
|
||||||
<a href="/HKW/Edition" class="cursor-default ha-menu-arrowsymbol pointer-events-none !mr-0" >
|
<a href="/HKW/Edition" class="cursor-default ha-menu-arrowsymbol pointer-events-none !mr-0">
|
||||||
Edition
|
Edition
|
||||||
</a>
|
</a>
|
||||||
<div class="ha-topnav-dropdown-content !mr-0">
|
<div class="ha-topnav-dropdown-content !mr-0">
|
||||||
<a asp-controller="Home" asp-action="Kontakt">Kontakt</a>
|
<a asp-controller="Home" asp-action="Kontakt">Kontakt</a>
|
||||||
<a asp-controller="HKW" asp-action="Mitwirkende">Mitwirkende</a>
|
<a asp-controller="HKW" asp-action="Mitwirkende">Mitwirkende</a>
|
||||||
<a asp-controller="HKW" asp-action="Editionsgeschichte">Editionsgeschichte</a>
|
<a asp-controller="HKW" asp-action="Editionsgeschichte">Editionsgeschichte</a>
|
||||||
<a asp-controller="Register" asp-action="Forschung" asp-route-id="EDITIONEN">Bibliographie Hamann-Editionen</a>
|
<a asp-controller="Register" asp-action="Forschung" asp-route-id="EDITIONEN">Bibliographie
|
||||||
|
Hamann-Editionen</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="md:!hidden" asp-controller="Index" asp-action="Index">
|
<a class="md:!hidden" asp-controller="Index" asp-action="Index">
|
||||||
<img class="inline relative w-4 h-4 -top-1 mr-2" src="/img/HKB.png" alt="HKB-Logo" /> Kommentierte Briefausgabe (HKB) →
|
<img class="inline relative w-4 h-4 -top-1 mr-2" src="/img/HKB.png" alt="HKB-Logo" /> Kommentierte
|
||||||
|
Briefausgabe (HKB) →
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user