]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 May 2020 07:53:37 +0000 (08:53 +0100)
commit9776d591ece45b36365f69315e2c958f264bc76f
tree1c734268e5d35bf6ed10be4cfcea70437a46c774
parent1f00c2a9a911b180d20638bafa26463d5e7a6619
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-review.tt
opac/opac-review.pl