Skip to content

Commit

Permalink
Fallback to showing first published date if absence of other info
Browse files Browse the repository at this point in the history
First publication date is only shown when the editor is not known
(rationale: if the editor for the first edition is known, the same
date should be set in both fields).
  • Loading branch information
dato committed Sep 19, 2023
1 parent a09b2ab commit e68bf70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bookwyrm/templates/book/publisher_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
{% blocktrans %}Published {{ date }}{% endblocktrans %}
{% elif publisher %}
{% blocktrans %}Published by {{ publisher }}.{% endblocktrans %}
{% elif book.first_published_date %}
{% with date=book.first_published_date|naturalday %}
{% blocktrans %}Published {{ date }}{% endblocktrans %}
{% endwith %}
{% endif %}
</p>
{% endif %}
Expand Down

0 comments on commit e68bf70

Please sign in to comment.