mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 09:45:32 +00:00 
			
		
		
		
	Bugfixes
This commit is contained in:
		| @@ -97,4 +97,3 @@ KOmmentare verschobem 202 Anhang | |||||||
|  |  | ||||||
| doppel- empfänder sender 876 | doppel- empfänder sender 876 | ||||||
| Evtl finetuning von note | Evtl finetuning von note | ||||||
| Button für forschungbibliografie |  | ||||||
| @@ -24,39 +24,36 @@ | |||||||
|         : "ha-bibel"; |         : "ha-bibel"; | ||||||
| } | } | ||||||
|  |  | ||||||
| <script defer src="/js/register.js" asp-append-version="true"></script> | <script defer src="/js/search.js" asp-append-version="true"></script> | ||||||
|  |  | ||||||
| <div class="ha-register"> | <div class="ha-register"> | ||||||
|     <div class="@commentClass"> |     <div class="@commentClass"> | ||||||
|         <div class="ha-register-head"> |         <div class="ha-register-head"> | ||||||
|             <h1>@Model.Title</h1> |             <h1>@Model.Title</h1> | ||||||
|             @if (Model.AllowSendIn) { |  | ||||||
|             <div class="ha-register-add"> |  | ||||||
|                 <a href="mailto:post@hamann-ausgabe.de?subject=Publikation%28en%29%20beitragen"> |  | ||||||
|                     <div class="ha-register-add-plusbutton">+</div> |  | ||||||
|                     <div class="ha-register-add-text">Publikation(en) beitragen</div> |  | ||||||
|                 </a> |  | ||||||
|             </div> |  | ||||||
|             } |  | ||||||
|             @if (Model.AllowSearch) { |             @if (Model.AllowSearch) { | ||||||
|                 @if (Model.Category == "neuzeit") { |                 @if (Model.Category == "neuzeit") { | ||||||
|                     <form class="ha-searchform" id="ha-searchform" asp-controller="Suche" asp-action="Register" method="get"> |                     <form class="ha-searchform" id="ha-searchform" asp-controller="Suche" asp-action="Register" method="get"> | ||||||
|                         <input id="ha-searchformtext" name="search" type="text" placeholder="Suchbegriff"/> |                         <input id="ha-searchformtext" name="search" type="text" placeholder="Suchbegriff"/> | ||||||
|                         <input type="hidden" name="page" type="text" value="@(Model.Category == "forschung" ? "1" : "0")"/> |                         <input type="hidden" name="page" type="text" value="@(Model.Category == "forschung" ? "1" : "0")"/> | ||||||
|                         <button id="ha-searchformsubmit" type="submit">Durchsuchen</button> |                         <button id="ha-searchformsubmit" type="submit">Suchen</button> | ||||||
|                     </form> |                     </form> | ||||||
|                 } else { |                 } else { | ||||||
|                     <form class="ha-searchform" id="ha-searchform" asp-controller="Suche" asp-action="Science" method="get"> |                     <form class="ha-searchform" id="ha-searchform" asp-controller="Suche" asp-action="Science" method="get"> | ||||||
|                         <input id="ha-searchformtext" name="search" type="text" placeholder="Suchbegriff"/> |                         <input id="ha-searchformtext" name="search" type="text" placeholder="Suchbegriff"/> | ||||||
|                         <input type="hidden" name="page" type="text" value="@(Model.Category == "forschung" ? "1" : "0")"/> |                         <input type="hidden" name="page" type="text" value="@(Model.Category == "forschung" ? "1" : "0")"/> | ||||||
|                         <button id="ha-searchformsubmit" type="submit">Durchsuchen</button> |                         <button id="ha-searchformsubmit" type="submit">Suchen</button> | ||||||
|                     </form> |                     </form> | ||||||
|                 } |                 } | ||||||
|  |             } | ||||||
|             @* <form asp-controller="Suche" asp-action="Index" method="GET" > |             @if (Model.AllowSendIn) { | ||||||
|                 <input type="text" name="search" placeholder="Suchbegriff" /> |                 <div class="ha-register-add"> | ||||||
|                 <button type="submit">Suchen</button> |                     <a href="mailto:post@hamann-ausgabe.de?subject=Publikation%28en%29%20beitragen"> | ||||||
|             </form> *@ |                         <div class="ha-register-add-plusbutton"> | ||||||
|  |                             <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bookmark"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg> | ||||||
|  |                         </div> | ||||||
|  |                         <div class="ha-register-add-text">Publikation(en) beitragen</div> | ||||||
|  |                     </a> | ||||||
|  |                 </div> | ||||||
|             } |             } | ||||||
|             <div class="ha-register-nav" id="ha-register-nav"> |             <div class="ha-register-nav" id="ha-register-nav"> | ||||||
|                 <div class="ha-register-left-nav"> |                 <div class="ha-register-left-nav"> | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||||
| <html class="h-full w-full" lang="de" id="top"> | <html class="h-full w-full overflow-hidden" lang="de" id="top"> | ||||||
|  |  | ||||||
| <head> | <head> | ||||||
| @await Html.PartialAsync("/Views/Shared/_Head.cshtml") | @await Html.PartialAsync("/Views/Shared/_Head.cshtml") | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||||
| <html class="h-full w-full" lang="de" id="top"> | <html class="h-full w-full overflow-hidden" lang="de" id="top"> | ||||||
|  |  | ||||||
| <head> | <head> | ||||||
| @await Html.PartialAsync("/Views/Shared/_Head.cshtml") | @await Html.PartialAsync("/Views/Shared/_Head.cshtml") | ||||||
|   | |||||||
| @@ -3,7 +3,9 @@ | |||||||
| @if (Model.Letter.HasText) { | @if (Model.Letter.HasText) { | ||||||
|     @if (Model.Letter.ParsedZHString != null && Model.ShowZHData) { |     @if (Model.Letter.ParsedZHString != null && Model.ShowZHData) { | ||||||
|         <div class="ha-tooltip"> |         <div class="ha-tooltip"> | ||||||
|             <div class="ha-pill"> |             <div class="ha-pill pr-1.5"> | ||||||
|  |                 @* <svg class="inline-block mr-1" xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg> *@ | ||||||
|  |                 <svg class="mx-0.5 w-3 h-3 inline relative bottom-[0.1rem] text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg> | ||||||
|                 <span>@Html.Raw(Model.Letter.ParsedZHString)</span> |                 <span>@Html.Raw(Model.Letter.ParsedZHString)</span> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|   | |||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -9,22 +9,6 @@ | |||||||
|     @apply border-b-2 border-slate-200 |     @apply border-b-2 border-slate-200 | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a { |  | ||||||
|     @apply rounded border border-hamannSlate-50 hover:shadow-md hover:border-hamannSlate-300 |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a .ha-register-add-plusbutton { |  | ||||||
|     @apply rounded-l bg-slate-200 border-r border-hamannSlate-50 |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a:hover .ha-register-add-plusbutton { |  | ||||||
|     @apply border-hamannSlate-300 text-hamannSlate-700 |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a .ha-register-add-text { |  | ||||||
|     @apply ml-1 |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-nav a { |   .ha-register .ha-register-head .ha-register-nav a { | ||||||
|     @apply text-slate-700 hover:text-slate-900 dark:text-white dark:hover:text-gray-300 |     @apply text-slate-700 hover:text-slate-900 dark:text-white dark:hover:text-gray-300 | ||||||
|   } |   } | ||||||
| @@ -82,20 +66,21 @@ | |||||||
|     @apply font-bold text-2xl desktop:font-normal desktop:text-5xl mb-6 inline-block |     @apply font-bold text-2xl desktop:font-normal desktop:text-5xl mb-6 inline-block | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |   .ha-register .ha-register-head .ha-register-add a .ha-register-add-text { | ||||||
|  |     @apply underline decoration-dotted hover:decoration-solid | ||||||
|  |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add { |   .ha-register .ha-register-head .ha-register-add { | ||||||
|     @apply inline-block relative bottom-[0.33rem] ml-2 |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a { |   .ha-register .ha-register-head .ha-register-add a { | ||||||
|     @apply -mt-4 mb-6 flex flex-row w-fit text-sm font-sans |     @apply flex flex-row w-fit text-sm font-sans | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a .ha-register-add-plusbutton { |   .ha-register .ha-register-head .ha-register-add a .ha-register-add-plusbutton { | ||||||
|     @apply px-2 leading-none text-xl font-bold pb-0.5 |     @apply leading-none py-1 font-bold | ||||||
|   } |  | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a:hover .ha-register-add-plusbutton { |  | ||||||
|      |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-add a .ha-register-add-text { |   .ha-register .ha-register-head .ha-register-add a .ha-register-add-text { | ||||||
| @@ -103,19 +88,19 @@ | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head form { |   .ha-register .ha-register-head form { | ||||||
|     @apply -mt-1 mb-6 font-sans |     @apply -mt-1 mb-1 font-sans py-1 flex flex-row gap-x-2  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head form input { |   .ha-register .ha-register-head form input { | ||||||
|     @apply px-1 border |     @apply px-1 border grow-0 min-w-0  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head form button { |   .ha-register .ha-register-head form button { | ||||||
|     @apply px-1 border |     @apply px-1 border border-slate-200 hover:border-black disabled:bg-gray-200 disabled:hover:border-slate-200 disabled:text-gray-600 | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-nav { |   .ha-register .ha-register-head .ha-register-nav { | ||||||
|     @apply font-sans |     @apply font-sans mt-6 | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .ha-register .ha-register-head .ha-register-nav a { |   .ha-register .ha-register-head .ha-register-nav a { | ||||||
|   | |||||||
| @@ -1,14 +0,0 @@ | |||||||
| const ACTIVATESEARCHFILTER = function(filter, button) { |  | ||||||
|     let f = filter.value; |  | ||||||
|     if (f === "") { |  | ||||||
|         button.disabled = true; |  | ||||||
|         return; |  | ||||||
|     } |  | ||||||
|     button.disabled = false; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| let searchfilter = document.getElementById("ha-searchformtext"); |  | ||||||
| let searchsubmitbtn = document.getElementById("ha-searchformsubmit"); |  | ||||||
| let searchform = document.getElementById("ha-searchform"); |  | ||||||
| ACTIVATESEARCHFILTER(searchfilter, searchsubmitbtn); |  | ||||||
| searchfilter.addEventListener("input", () => ACTIVATESEARCHFILTER(searchfilter, searchsubmitbtn)); |  | ||||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens