Book Review Library

Description

The Book Review Library plugin allows you to create a library of books, with reviews, that include sortable meta information like author, illustrator, genre, subjects as well as ratings. This enables you to list all the books of a particular type (e.g. all books written by a particular author or with a specific rating). With very little effort, the book review system will be up and running on your site right away, with built in filters to add this extra information to the page without any custom theming.

A configurable shortcode is also built in, to display a book list. [book-reviews] will display all books, while [book-reviews count=3] will only display 3 books and [book-reviews count=3 covers=true] will display those reviews with their covers, if they exist.

Two sidebar widgets have also been included. A Recent Reviews widget will display the most recent book reviews that have been added, and a Related Books widget will display a list of similar books when you are looking at a single book or book list by common genre tags.

Theme developers haven’t been forgotten either. If you want to customize the way the reviews display, create and edit these template files:

  • taxonomy.php
  • archive-book-review.php
  • single-book-review.php

Additionally, there are a number of template tags that can be used in your theme, which are found in inc/func.php.

This plugin uses the Genericons icon font in both the dashboard and the front end to display the book icons and star ratings.

Translators!

New translations site is up at https://chrisreynolds.io/glotpress/projects/book-review-library/
Please email me at hello at chrisreynolds dot io if you want to be added as a translator.

  • Italian translation by tristano-ajmone
  • Hungarian translation by Ignácz József
  • French translation by claire idrac
  • Russian translation by Diana Kononova
  • Arabic translation by Salim Solomon
  • Spanish translation by Tierras del Rincon
  • Persian (Farsi) translation by Masoud Allameh
  • Polish translation by Rafał Szampera
  • Catalan translation by Jordi Ramirez
  • Turkish translation by Yardımcı Destek Teknolojileri
  • Dutch translation by robin ketelaars

About this plugin

I sat down with a librarian and a volunteer at the Open Classroom charter school library and asked them what they wanted from the website. The result is this plugin. It was built with a real use-case in mind based on specific feedback I received about things they wanted to share with the school and wider community. If you have questions or suggestions, feel free to let me know.

Note

This plugin hasn’t been in active development for a while. However a major revision/rewrite has been planned for some time. The plugin is stable and works with all versions of WordPress and I’m happy to review/merge pull requests on the GitHub repo or respond to support queries you may have but no new features are planned until after the rewrite is complete.

Shortcodes & Shortcode Parameters

Book Review Library currently supports one shortcode. This page will list the shortcode variations and parameters supported and describe what each available option and parameter does.

Book Reviews

[book-reviews]

Displays a list of books. If used with no additional parameters, this will display all books, ordered by date added, with no covers and no review or excerpt displayed.

Count

[book-reviews count=5]

Defines how many books to display on a page. Takes any interger. Omit to display all posts. The above shortcode would display the 5 most recent book reviews. Can be used in conjunction with any of the other parameters.

Covers

[book-reviews covers=true]

Displays the book cover if it’s been added to the review and if the theme supports it. Only accepted argument is true. Requires the theme to support post thumbnails. The above shortcode would display all books with book covers.

Order By

[book-reviews order_by=title]

Changes the order in which the books are displayed. By default, lists by date added. Accepted arguments are date_added, author — lists by author’s first name (unless authors have been added last name first, e.g. “Reynolds Chris”), title — lists by book title. The above shortcode would display all books alphabetically by title.

Format

[book-reviews format=excerpt]

Determines whether to display the full review or an excerpt. Default is no review text displayed. Accepted arguments are full — displays full book review, excerpt — displays an excerpt of the review or none. The above shortcode would display all book reviews with an excerpt of each review.

Author

[book-reviews author=j-k-rowling]

Filters all book reviews by single author. Any slug of an existing book author is accepted. The above shortcode would display all books by J.K. Rowling. Alternately, when wrapped in quotes, you can use the full name of any existing book author. The following would also work to display all books by J.K. Rowling:

[book-reviews author="J.K. Rowling"]

Genre

[book-reviews genre=sci-fi]

Filters all book reviews by genre. Any existing genre slug is accepted. The above shortcode would display all books in the Sci-Fi genre. When wrapped in quotes, you can use the full name of any existing genre if the name matches the slug. The following would display all the books in the “Science Fiction” genre if that genre had a slug of science-fiction:

[book-reviews genre="Science Fiction"]

Screenshots

  • Add new screen

  • Genres (example of the taxonomy screens)

  • Admin menu

  • Options page

  • New user roles

  • Example display page with related books widget

  • Book Reviews admin page

Installation

  1. Upload book-review-library.zip to the /wp-content/plugins/ directory or use the built-in plugin installer on the WordPress Plugin Dashboard page.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it! Start writing reviews. 🙂

FAQ

Ask some!

Installation Instructions
  1. Upload book-review-library.zip to the /wp-content/plugins/ directory or use the built-in plugin installer on the WordPress Plugin Dashboard page.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it! Start writing reviews. 🙂
I have HTML displaying at the top of my page/next to the book cover/somewhere else. How do I get rid of this?

This is most likely because your theme is using the_title in a link or somewhere else. This plugin adds a filter to the_title to display the book’s author. To prevent this behavior (and fix your problem), go to the Options page in the Book Reviews menu and disable “Display author with title”. The author will no longer display with the book title and will, instead, be displayed with the genre information.

I get a 404 error when I try to view a book review.

Go to Permalinks in the General Settings and just re-save your settings. This will update your .htaccess file and should resolve the problem.

I have *xxxx* problem when I sort by author…

Here are the known issues with sorting by author. Unfortunately, at this time, there isn’t much that can be done about most of them because sorting by author is kind of a hack…

Books with multiple authors display multiple times in the list.

Reason: This is because we’re doing a separate loop through all the books for each author. When it sees that book with multiple authors again, it will add that as a separate entry.

Workaround: If you have one book that has multiple authors, the easiest solution is to add them as a single author, e.g. “Brad Williams Ozh Richard and Justin Tadlock” — that way the book will only have a single “author” term associated with it.

When I sort by author, it’s sorting by their first name, not their last name.

Reason: This is because each author is entered into the database as a “term”, similar to a category. So, while I can make sure that “Orange” comes after “Apple” I can’t do anything about “Orange Mackenzie” coming after “Apple Smith” programmatically, because if I tried to feed “Smith, Apple” back into the loop that’s being done to pull up the list of books, “Smith, Apple” wouldn’t match any entries and no results would be found.

Workaround: If you must have books sorted by author last name, you can add the authors last name first, e.g. “Williams Brad”.

Reviews

I agree. Super plug-in

I used it in conjunction with the Book Review plug-in to get the book’s information automatically populated from Google via the ISBN. Works very well in that situation. They compliment one another.

Thank you.

i have to confess: this is truely outstanding and overwhelming

i have to confess: this is truely one of the very best WordPress book-review-library plugins.

Super easy to use and super-super powerful. You can do alot with this plugin. I have tried other solutions but this is as
to close perfect as we have found, It offers everything we wanted so far so, and if we need more there are paid extensions at reasonable cost.
I ve testet many ones; here some features that have convinced me:

The installation of the book-review-library: it is easy – the first steps were done in a few minutes: you do not have to worry about it nor trouble to do such repetitive tasks.
With very little effort, the book review system will be up and running on your site right away,

it is ,,,,:

– Very easy to use and simplicity enables me to start using it almost immediately after installed it.
– Very easy to search a specific product,
– even if you know only a little about PHP, you can create your own template!

That means you can design the layout. Yes its true: You do not need develpoer-skills – and if you are no expert or professional
– this plugin makes you look like a genius sometimes.;) And last but not least: Support is overwhelming: – the develoer rocks!!!

conclusio; book-review-library – this plugin is for many many users – and for every one who wants to run an a book-based plugin

A trillion thanks for developing and release this plugin for free!
keep up this super-work!!! Thousands of wordpress-fans from all over the globe were happy with this plugin…

Very good Beginning

I tested it on a local version (XAMPP) it looks nice.
But it’s only a beginning, not yet a usable version:

[book-reviews] is resulting in a list with a lot of empty lines between entries and every time a “Genre” at the end. Do you display all, even the disabled or empty fields?

the listed entry does not show the ISBN even when filled

I’m missing publisher, “technical data” as pages, price, medium (I have also CDs and DVDs to show!)

Very nice would be an export/import function…

I’m desperately looking for a program like this as I want to handle more than 400 titles and it should be manageable.

awesome!!!

thanks a lot works great, will collaborate on some bugs I found 😉

Read all 16 reviews

Contributors & Developers

“Book Review Library” is open source software. The following people have contributed to this plugin.

Contributors

“Book Review Library” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Book Review Library” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.20

  • minor bugfixes (props Ashley Gibson)
  • added dutch and turkish translations

1.4.19

  • more fixes for same issue.

1.4.18

  • fixed issue where taxonomies that were disabled were throwing an error when we were checking if terms from those taxonomies existed. same issue that was resolved in 1.4.17, just more places that needed the fix applied to them.

1.4.17

  • fixed issue where next/previous post link for non-reviews wasn’t showing at all after last update.
  • fixed issue where taxonomies that were disabled were throwing an error when we were checking if terms from those taxonomies existed

1.4.16

  • updated readme, new working links
  • fixed next/previous post link for non-reviews

1.4.15

  • updated readme.txt note for translators
  • tested on WordPress version 4.4

1.4.14

  • fixes next/previous post author displaying the wrong author. Issue reported here

1.4.13

  • fixes WP_Widget issue reported here

1.4.12

  • adds excerpt support

1.4.11

  • added image size for book covers. users can use that instead of default post thumbnail size or they can use the thumbnail setting. controlled from the options page.

1.4.10

  • added Catalan language file

1.4.9

  • Fixed a bug where the book author wasn’t displaying if the title was filtered by WordPress before being passed to Book Review Library’s title filter
  • changed string to boolean value for covers check
  • added Arabic language file
  • added Spanish language file
  • added Farsi language file
  • added Polish language file

1.4.8

  • fixed a conflict with other plugins that use post types which prevented single posts of other post types from displaying
  • added Russian language file
  • Additional Information box always displays
  • Changed the display of the taxonomy boxes so they don’t do weird things when you move them (see: https://wordpress.org/support/topic/edit-post-screen-elements-go-wonky-when-rearranged?replies=4)

1.4.7

  • added new option to display the book author on a separate line than the title
  • updated .pot file

1.4.6

  • changed behavior of book list by author to always display books by title rather than forcing an order_by parameter to define order of the books
  • added new genre shortcode parameter
  • fixed menu icon for WordPress 3.8
  • fixed issue preventing librarians from saving book review options (note: current solution is a workaround)

1.4.5

  • fixed issue where the author was displaying twice when using the shortcode
  • prevented css and iconfont from loading on non-book review pages (thanks Mte90)
  • updated documentation
  • added full Hungarian translation
  • added full French translation
  • fixed an undefined notice if order_by is not defined
  • added new author shortcode parameter

1.4.4

  • fixed the i18n on “Review Authors”
  • added full Italian language file (thanks tristano-ajmone!)
  • added initial Hungarian language file (thanks Ignácz József!)
  • added partial French language file (thanks claire idrac!)

1.4.3

  • fixed taxonomy archive page permalink issue
  • fixed i18n issues with untranslatable strings
  • removed the “Add New Rating” and “Most Used” links for ratings

1.4.2

  • fixed an issue where meta boxes randomly disappeared after 1.4.0 update

1.4.1

  • fixed issue where plugin could not be activated if Organize Series was installed

1.4

  • added new shortcode parameter: format. Accepted arguments are format=full, format=excerpt and format=none (default). This allows the user to control whether the full review or an excerpt of the review will display when using the shortcode.
  • fixed issue where text on the page always displayed under the shortcode content
  • fixed issue where librarian was not able to edit the options
  • added ISBN support — you can now add ISBN codes and search by them
  • added support to search by other book metadata (author, genre, subject, reviewer, etc)
  • added full i18n support

1.3.5

  • checks if role exists before removing caps on deactivation
  • moves the flush rewrite function to after the post type is registered

1.3.4

  • flushes rewrite rules on activation. should resolve issues relating to posts not being viewable without re-saving the permalink settings.

1.3.3

  • fixed issue where a fatal error was thrown trying to add capabilities to WordPress user roles if they do not exist

1.3.2

  • applied 1.3.1 fix to excerpt filter, too

1.3.1

  • fixes “this book is currently checked out” that displays on non-book posts

1.3

  • added new shortcode parameter order_by — accepted arguments are ‘title’, ‘date_added’ (default), and ‘author’. See Frequently Asked Questions for more information about sorting by author.

1.2.1

  • Enabling/disabling some options now affect columns in the book review list

1.2.0

  • adds optional support for comments on book reviews

1.1.0

  • adds option to disable the author in the book title (fixes formatting/html issue for themes that use the_title in <a> tags)
  • fixed some i18n issues
  • fixed “in stock” tag displaying in the shortcode when stock option was disabled
  • fixed an issue that ran the content filter on pages using the book review shortcode

1.0.3

  • fixes layout issues caused by float: left on the book covers.

1.0.2

  • runs a check on the_excerpt and the_content filters to make sure those are being called in a loop. If not, they don’t apply. This prevents issues in formatting if those template tags are being used inside an HTML tag.

1.0.1

  • fixed bug that displayed in/out of stock on all pages (thanks Digital Mosquito for reporting it)

1.0

  • initial release