mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-12-15 14:05:31 +00:00
Added newe XML
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
@using System.Threading;
|
||||
@using System.Linq:
|
||||
@using System.Xml.Linq;
|
||||
@using System.IO;
|
||||
|
||||
@model HaLive.Pages.BriefeModel
|
||||
@inject IReaderService readerService
|
||||
@@ -24,7 +25,7 @@
|
||||
var next = meta == lib.MetasByDate.Last() ? null : lib.MetasByDate.ItemRef(lib.MetasByDate.IndexOf(meta) + 1);
|
||||
var prev = meta == lib.MetasByDate.First() ? null : lib.MetasByDate.ItemRef(lib.MetasByDate.IndexOf(meta) - 1);
|
||||
var hands = lib.Hands.ContainsKey(id) ? lib.Hands[id] : null;
|
||||
var filename = "" + "_" + meta.Autopsic + "_HamannBriefe.pdf"; // TODO
|
||||
var filename = "HKB_" + meta.Autopsic + ".pdf";
|
||||
|
||||
// State
|
||||
var currline = "-1";
|
||||
@@ -402,6 +403,8 @@
|
||||
<div class="col">
|
||||
<div class="widehead letterbar">
|
||||
<div class="flexcol">
|
||||
@if (System.IO.File.Exists("./wwwroot/pdf/" + filename))
|
||||
{
|
||||
<div style="align-self: flex-end" class="printbutton">
|
||||
<span class="label">
|
||||
<a class="hlink" href="/pdf/@filename">
|
||||
@@ -411,6 +414,19 @@
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div style="align-self: flex-end" class="printbutton">
|
||||
<span class="label">
|
||||
<a class="hlink disabled" href="#">
|
||||
PDF <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-arrow-down-circle" viewBox="0 0 14 18">
|
||||
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v5.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V4.5z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
<div class="lettercard flexrow">
|
||||
<div class="nnumber letcount">
|
||||
@meta.Autopsic
|
||||
|
||||
@@ -181,17 +181,22 @@
|
||||
|
||||
@foreach (var l in Model.Result.ElementAt(Model.cleanpage))
|
||||
{
|
||||
var filename = "HKB_" + l.Key + ".pdf";
|
||||
<section>
|
||||
<div class="year" style="top: 240px; z-index: 900;">
|
||||
@l.Key <span class="printbutton">
|
||||
<span class="label">
|
||||
<a class="hlink" href="#">PDF
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-arrow-down-circle" viewBox="0 0 14 18">
|
||||
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v5.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V4.5z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
@l.Key
|
||||
@if (System.IO.File.Exists("./wwwroot/pdf/" + filename))
|
||||
{
|
||||
<span class="printbutton">
|
||||
<span class="label">
|
||||
<a class="hlink" href="./pdf/@filename">PDF
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-arrow-down-circle" viewBox="0 0 14 18">
|
||||
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v5.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V4.5z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
}
|
||||
<hr></div>
|
||||
@foreach (var entry in l)
|
||||
{
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
<div class="widehead">
|
||||
<div class="flexcol">
|
||||
<div style="align-self: flex-end" class="printbutton">
|
||||
<a class="" href="/pdf/Bibelstellen-Register_HamannBriefe.pdf">
|
||||
<a class="" href="/pdf/HKB_Bibelstellen-Register.pdf">
|
||||
PDF
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
<div class="widehead">
|
||||
<div class="flexcol">
|
||||
<div style="align-self: flex-end" class="printbutton">
|
||||
<a class="" href="/pdf/Forschungsbibliographie_HamannBriefe.pdf">
|
||||
<a class="" href="/pdf/HKB_Forschungsbibliographie.pdf">
|
||||
PDF
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<div class="widehead">
|
||||
<div class="flexcol">
|
||||
<div style="align-self: flex-end" class="printbutton">
|
||||
<a class="" href="/pdf/Register_HamannBriefe.pdf">
|
||||
<a class="" href="/pdf/HKB_Register.pdf">
|
||||
PDF
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user