]> git.koha-community.org Git - koha.git/commit
Bug 25340: Pass biblio object to OPAC comments template
authorOwen Leonard <oleonard@myacpl.org>
Fri, 1 May 2020 12:43:40 +0000 (12:43 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Mon, 11 May 2020 20:27:51 +0000 (20:27 +0000)
commit8b2864b6c0c54ebcf86cd51129703ee8d482fbd3
treee5d139c571211856ac38ca1384c5b5eb31ab3916
parentf46d88125d48fa21893f77f14584320dc3548a64
Bug 25340: Pass biblio object to OPAC comments template

This patch modifies the OPAC comments system so that the biblio object
is passed to the template. This allows the biblio-title include to
properly access the title and subtitle information.

Unrelated change: Remove some custom CSS from the page which was
obsolete.

To test, apply the patch and make sure the "reviewson" preference is
enabled.

- Log in to the OPAC and open a bibliographic record's detail page.
- Under the "Comments" tab, click the "Post your comments" link to
  trigger the pop-up window.
- In the pop-up window, verify that the item's title is correct in the
  page title and the heading. Author should display correctly, if
  present.
- Test submitting a comment and editing a comment. Everything should
  work correctly.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-review.tt
opac/opac-review.pl