Bug 6308

Summary: Show number of comments on the "Comments" tab in OPAC
Product: Koha Reporter: Magnus Enger <magnus>
Component: OPACAssignee: Magnus Enger <magnus>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: chris, koha.sekjal, nengard
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Proposed patch
0 comments shown when there is a comment
Fixed patch

Description Magnus Enger 2011-05-05 12:56:42 UTC
On the detail view in the OPAC, it would save users a useless click when a record has no comments if the number of comments was displayed as part of the name of the tab, the same way it is done for holdings.
Comment 1 Magnus Enger 2011-05-05 20:15:39 UTC Comment hidden (obsolete)
Comment 2 Nicole C. Engard 2011-05-06 01:52:17 UTC
I tested and the comments tab always says 0 even if there is a comment.
Comment 3 Nicole C. Engard 2011-05-06 01:52:43 UTC
Created attachment 4046 [details]
0 comments shown when there is a comment
Comment 4 Magnus Enger 2011-05-06 09:04:29 UTC
Created attachment 4049 [details] [review]
Fixed patch

This new patch should display the number of comments correctly.
Comment 5 Magnus Enger 2011-05-06 09:05:21 UTC
Comment on attachment 4043 [details] [review]
Proposed patch

[% reviews.max %] should be [% reviews.size %]
Comment 6 Chris Cormack 2011-05-10 20:50:15 UTC
Pushed and merged to master, please test