[Koha-bugs] [Bug 26766] Don't show star rating in dialog when saving a checkout note

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 21 19:30:23 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26766

--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 112114
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112114&action=edit
Bug 26766: Correct selection of title during OPAC note confirmation

This patch modifies the JavaScript in opac-user.tt which executes when
the user submits a checkout note. The script tries to grab the
checkout's title from an earlier cell in the table row so that it can
display it in the confirmation message.

Before start ratings were enabled on this page, the title of each
checked-out item was the only HTML inside this table cell, so it was
necessary only to grab the HTML contents of the <td>. Now that star
ratings might be displayed as well we must make the selection more
specific.

To test, apply the patch and enable both the  OpacStarRatings and
AllowCheckoutNotes preferences.

 - Log in to the OPAC as a user with checkouts.
 - On the "Your summary" page, fill out and submit the "Note" field for
   one of your checkouts.
 - In the confirmation message, confirm that the correct title
   information is displayed as a link to the bibliographic detail page.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list