mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-31 22:58:18 +00:00
698e74a496
* Remove duplicate Review object under `rating` property This was preventing validation, since `rating` is not a valid property (`review` is, which is created from book.html already). * Drop `bestRating` property in ratings, since it defaults to 5 See <https://schema.org/bestRating> ("If bestRating is omitted, 5 is assumed"). * Create Rating object (and its enclosing Review) in book/rating.html * Use `position` property for Book objects in a series `volumeNumber`, previously used, is only valid for objects of type PublicationVolume (which series members are not). * Give URL of book series when setting of `isPartOf` * series.html: Add empty BookSeries object --------- Co-authored-by: Adeodato Simó <dato@users.noreply.github.com>
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{% extends 'layout.html' %}
|
|
{% load i18n %}
|
|
{% load book_display_tags %}
|
|
|
|
{% block title %}{{ series_name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="block" itemscope itemtype="https://schema.org/BookSeries">
|
|
<h1 class="title" itemprop="name">{{ series_name }}</h1>
|
|
<div class="subtitle" dir="auto">
|
|
{% trans "Series by" %} <a
|
|
href="{{ author.local_path }}"
|
|
class="author {{ link_class }}"
|
|
itemprop="creator"
|
|
itemscope
|
|
itemtype="https://schema.org/Person"
|
|
><span
|
|
itemprop="name"
|
|
>{{ author.name }}</span></a>
|
|
</div>
|
|
|
|
<div class="columns is-multiline is-mobile">
|
|
{% for book in books %}
|
|
{% with book=book %}
|
|
{# @todo Set `hasPart` property in some meaningful way #}
|
|
<div class="column is-one-fifth-tablet is-half-mobile is-flex is-flex-direction-column">
|
|
<div class="is-flex-grow-1 mb-3">
|
|
<span class="subtitle">{% if book.series_number %}{% blocktrans with series_number=book.series_number %}Book {{ series_number }}{% endblocktrans %}{% else %}{% trans 'Unsorted Book' %}{% endif %}</span>
|
|
{% include 'landing/small-book.html' with book=book %}
|
|
</div>
|
|
</div>
|
|
{% endwith %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|