Bug 26762: Modify template logic in opac-reserves.tt to avoid error
authorOwen Leonard <oleonard@myacpl.org>
Wed, 21 Oct 2020 11:57:26 +0000 (11:57 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 25 Oct 2020 23:14:42 +0000 (00:14 +0100)
commitd10d24e42aaaf4b2e23b52b94aa14ab8745b396f
treea2c2d736fdb5bd6234e2997813559c7ec7e92f66
parent2dab6ab31626970e3c9be841b610575060f8f344
Bug 26762: Modify template logic in opac-reserves.tt to avoid error

This patch makes a change to the OPAC hold template to prevent certain
cases where the output is invalid.

To reproduce, perform a search in the OPAC which will return some titles
which can be placed on hold and some which cannot.

 - Select all results (some holdable, some not)
 - Click the "Place hold" link
 - On the "Confirm holds" page the layout will be broken after the
   first instance of the message "There are no items that can be placed
   on hold."

To test, apply the patch and repeat the process above. After the patch
has been applied the "confirm holds" page should look correct.
Validating the HTML source should return no errors.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt