没有封面的书籍即使在 3+ 页的轮播上也应该显示标题/作者。
例如https://openlibrary.org/publishers/John_Bartholomew_&_Son
jsdef
与模板块https://github.com/internetarchive/openlibrary/blob/caff690d44794f93866f9e48dca4f4858da53d13/openlibrary/templates/books/custom_carousel.html和使用它https://github.com/ internetarchive/openlibrary/blob/f9ac7d477140988592744bb104cf8a39b179b35c/openlibrary/plugins/openlibrary/js/carousel/Carousel.js@cdrini idk 为什么,但它显示一个空白的封面而不是根本没有封面。 如果将其删除,则可以显示其后面的屏幕(带有标题和作者)。
还是个问题。
有问题的图像指向 URI,例如
//covers.openlibrary.org/b/id/undefined-M.jpg
这是因为https://openlibrary.org/publishers/John_Bartholomew_&_Son.json ?limit=12&offset=12 中未定义封面 ID
不确定这是客户端处理还是 API 本身。
这似乎是固定的
这是惊人的! 不必处理那些空白封面在这里是一个很大的重量/负担。 大家辛苦了。
最有用的评论
这似乎是固定的