mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-16 07:23:04 +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>
23 lines
797 B
HTML
23 lines
797 B
HTML
{% load i18n %}{% load utilities %}
|
|
|
|
{% blocktrans with book_path=status.book.local_path book=status.book|book_title %}rated <a href="{{ book_path }}">{{ book }}</a>:{% endblocktrans %} {% include 'snippets/stars.html' with rating=status.rating %}
|
|
<span
|
|
itemprop="reviewRating"
|
|
itemscope
|
|
itemtype="https://schema.org/Rating"
|
|
>
|
|
<span class="is-hidden" {{ rating_type }}>
|
|
<meta itemprop="ratingValue" content="{{ status.rating|floatformat }}">
|
|
|
|
<span
|
|
itemprop="reviewRating"
|
|
itemscope
|
|
itemtype="https://schema.org/Rating"
|
|
>
|
|
<span class="is-hidden" {{ rating_type }}>
|
|
<meta itemprop="ratingValue" content="{{ status.rating|floatformat }}">
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|