works can now be published_in or published_as

This commit is contained in:
eclipse 2025-03-15 14:27:29 +01:00
parent 71e8290525
commit 2c9eecacb2
3 changed files with 50 additions and 42 deletions

View File

@ -6,7 +6,7 @@ stats:
series: Potsdams Andere Welten series: Potsdams Andere Welten
issue: 1 issue: 1
editor: Tobias Radloff editor: Tobias Radloff
published_in: published_as:
- title: Veranstaltungsausgabe - title: Veranstaltungsausgabe
publisher: Selbstverlag publisher: Selbstverlag
isbn: 978-3-00-077853-7 isbn: 978-3-00-077853-7

View File

@ -6,7 +6,7 @@ stats:
series: Potsdams Andere Welten series: Potsdams Andere Welten
issue: 2 issue: 2
editor: Tobias Radloff editor: Tobias Radloff
published_in: published_as:
- title: Veranstaltungsausgabe - title: Veranstaltungsausgabe
publisher: Selbstverlag publisher: Selbstverlag
link: https://www.potsdams-andere-welten.de link: https://www.potsdams-andere-welten.de

View File

@ -40,11 +40,19 @@
{% if article.stats.editor %} {% if article.stats.editor %}
<li>herausgegeben von {{ article.stats.editor }}</li> <li>herausgegeben von {{ article.stats.editor }}</li>
{% endif %} {% endif %}
{% if article.stats.published_in or article.stats.published_as %}
{% set ns = namespace() %}
{% if article.stats.published_in %} {% if article.stats.published_in %}
{% for p in article.stats.published_in %} {% set ns.stats = article.stats.published_in %}
{% set ns.title_line = "Veröffentlicht in" %}
{% else %}
{% set ns.stats = article.stats.published_as %}
{% set ns.title_line = "Verfügbar als" %}
{% endif %}
{% for p in ns.stats %}
{% if p.title %} {% if p.title %}
{# <li>Veröffentlicht in <strong>{% if p.link %}<a href="{{ p.link }}" target="_blank">{% endif %}{{ p.title }}{% if p.link %}</a>{% endif %}</strong> #} {# <li>Veröffentlicht in <strong>{% if p.link %}<a href="{{ p.link }}" target="_blank">{% endif %}{{ p.title }}{% if p.link %}</a>{% endif %}</strong> #}
<li>Veröffentlicht in <strong>{{ p.title }}</strong> <li>{{ ns.title_line }} <strong>{{ p.title }}</strong>
<ul> <ul>
{% endif %} {% endif %}
{% if p.date %} {% if p.date %}