Commit graph

133 commits

Author SHA1 Message Date
Adeodato Simó 698e74a496
Minor vocabulary fixes and structured data improvements (#3036)
* 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>
2023-10-21 17:53:24 +02:00
Adeodato Simó 1778c56be0
URL-encode book series name when linking to it
Closes: #3021.
2023-10-09 04:24:05 -03:00
Neil Roberts 603b2d9502 Show “no rating” instead of stars if the review has no rating
The stars.html template now outputs a span containing “no rating” when
the stars represent a non-existent or zero rating. This text is already
translated because it was previously added as a invisible text only for
screen readers. The span is given a special CSS class so that it can be
styled as italic in the stylesheet.

There is now also an extra span in book.html to group the stars with the
“(2 reviews)” text. This is needed because the outer div is using a flex
layout and it eats the spacing between the two parts otherwise.

Fixes #2856
2023-05-22 15:40:18 +02:00
Neil Roberts a4ea4082e6 Use the translated shelf name in message when another edition is shelved
In the page for an edition, if the user has a different edition of the
same work on a shelf then a message is shown. Previously the name of the
status shelves wasn’t being translated.
2023-05-12 15:33:51 +02:00
Jascha Ezra Urbach fadbc76aaa
Merge pull request #2789 from bpeel/translatable-shelf-name
Fix two places where the reading status shelf name wasn’t translated
2023-04-15 16:59:59 +02:00
Neil Roberts 41633090ba Don't show the series as a link if the book has no author
The series link needs an author so if it doesn't have one, instead of
showing a server error let's just show the series details as plain text
without a link.

Fixes: #2797
2023-04-08 17:13:34 +02:00
Neil Roberts 36c14655ec Use the translated shelf name in a book’s shelf list
Previously in the list of shelves on the page for a book it was always
using the English name of the shelf for the shelf of the reading status.
2023-04-06 15:58:20 +02:00
André Jaenisch 9c92ba1698
Add attributes to images to hint async load
This was suggested on Matrix a while ago but I only found the time now to move forward with it.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2023-03-01 14:14:42 +01:00
Dustin Steiner c2a81d88bb
Merge branch 'main' into book-series-v1 2023-01-31 10:06:07 +00:00
0x29a 5e87504b22 Remove duplicated editions request from book.html 2023-01-30 06:45:48 +01:00
Dustin aad934fa59
Merge branch 'main' into book-series-v1 2023-01-24 13:14:28 +00:00
Dustin Steiner 35d30a41f3
feat: first version of a book series list by author 2023-01-24 13:00:18 +00:00
Andy Maloney 89c1edac36 Improve Open Graph data for books and add it for lists 2023-01-18 10:30:26 -05:00
Andy Maloney b4aa39f0ed Move all opengraph (/twitter) metadata into one template
This makes it easier to modify & allows us to set title & description for specific types of pages.

Sets us up for #2575
2023-01-11 16:17:41 -05:00
Jascha Urbach ac8b060d58
Isfdb ID for books and authors (#2482)
* New ID: Audible ASIN

Audible belongs to Amazon BUT they do not share the same IDs. The Audible ASIN of an audiobook is never the same as the Amazon ASIN.

Yeah, I know, Amazon is great. The fact that the ASIN is a good distinction for different works and editions bothers me more than I will ever be willing to admint.

* New ID "ISFDB"

Internet Speculative Ficiton Database ID for books and authors.
Links to the entry if set.

* Added aasin to test

Added aasin to test

* the answer expects more emptxy fields...
2022-12-11 11:33:33 -08:00
Mouse Reeve a80e020344 Add direction to book page fields 2022-12-06 12:26:52 -08:00
Vivianne Langdon ab43134cc0 many minor visual tweaks to fix spacing and usability 2022-11-26 15:29:08 -08:00
Vivianne Langdon 9738c96175 fix css which caused weird spacing for desc. field 2022-11-26 15:29:08 -08:00
Mouse Reeve 4dd7f88e0a Updates all links that open in new tabs 2022-08-05 10:20:43 -07:00
Hugh Rundle 4d843b583d move shelve button tour id to prevent duplicates 2022-07-09 10:32:04 +10:00
Hugh Rundle 53a89f69e7 guided tour only for request.user 2022-07-09 10:23:09 +10:00
Hugh Rundle 3f67bc3b61 standardise ids for tour anchors
To make it harder to accidentally mess up the tour when making changes to pages, this commit adds ids with 'tour' prefixes to (nearly) all elements used by the guided tour as anchor points. The exception is where an element already had an id that is being used by something else in Bookwyrm.

Some minor changes also made to clean up the wording of the tour.
2022-07-03 15:57:10 +10:00
Hugh Rundle bc4a1c6c41 Guided tour of book page
This is intended to be one of the earlier pages in the tour. It should show users the concept of reading status, editions, and other useful points.
2022-06-19 14:06:36 +10:00
Vivianne 5a2bf64864
Merge branch 'bookwyrm-social:main' into url-names 2022-04-08 21:45:37 -07:00
Mouse Reeve 26f0501e2f SHow editions link on all book pages 2022-03-17 07:40:55 -07:00
Mouse Reeve 0cf2c07069
Merge branch 'main' into url-names 2022-03-16 16:32:07 -07:00
Mouse Reeve c7efa23405 Display error message for remote failure 2022-03-13 12:38:29 -07:00
Vivianne Langdon ebf463fc91 Generation of slugs and new urls to handle slugs
- TODO: redirect to correct slug if not found.
2022-03-02 00:21:23 -08:00
Mouse Reeve 202696f913 Don't show lists a book is already on in add form 2022-02-28 10:03:24 -08:00
Mouse Reeve cec7625e1e Moves tabs script to main scripts directory
It's our own custom script at this point
2022-02-25 12:47:46 -08:00
Mouse Reeve 36a52019fb Fixes adding book to list from book page 2022-02-02 12:29:01 -08:00
Mouse Reeve 33c6e5aabe Moves remaining tags into new files 2022-01-18 12:28:59 -08:00
Mouse Reeve 32acccc350 Use both noopener and noreferrer 2022-01-17 11:25:41 -08:00
Mouse Reeve 80efd58881 Javascript file in correct template 2022-01-12 17:06:36 -08:00
Mouse Reeve 262e641c79 Creates link template subdirectory 2022-01-12 16:50:52 -08:00
Mouse Reeve e6d9895854
Merge branch 'main' into book-file-links 2022-01-12 06:39:22 -08:00
Mouse Reeve 7ccb02f635 Use new modal for edits 2022-01-11 10:27:10 -08:00
Mouse Reeve 9521c477b2 Moves readthrough templates to dir 2022-01-11 09:58:28 -08:00
Mouse Reeve 0d2c6e63d1 Converts create readthrough to modal 2022-01-11 09:50:04 -08:00
Mouse Reeve aa9864a21e Only show approved links 2022-01-09 20:30:23 -08:00
Mouse Reeve bae01e1ea5 Updates modal 2022-01-09 14:20:52 -08:00
Mouse Reeve 16a58ae079 Merge branch 'main' into book-file-links 2022-01-08 16:58:37 -08:00
Mouse Reeve 57ce894667 Updates book sync modals 2021-12-30 14:19:31 -08:00
Mouse Reeve 0031a63511 Updates add cover modal 2021-12-30 14:07:30 -08:00
Joachim cd89271724 Apply review suggestions 2021-12-30 10:43:23 +01:00
Joachim 3b0096caf0 Add button overlay 2021-12-29 18:55:02 +01:00
Joachim 6952ab0081 Solve markup validation issues 2021-12-29 17:10:44 +01:00
Joachim e5f3e9cd2c fix curlylint issue 2021-12-29 17:00:40 +01:00
Joachim f12ba8609f Front-end: On book page, click on cover to show/add image
Closes #1009
2021-12-29 16:40:19 +01:00
Mouse Reeve 322bb909fc Better mobile display 2021-12-15 13:35:10 -08:00