Homec4science

WebSearch: display Discussion(N) in tab header

Description

WebSearch: display Discussion(N) in tab header

  • Calculates number of comments and reviews for the given record and shows it in the "Discussion (N)" tab on detailed record page. (closes #475)
  • Shows number of comments and reviews after clicking on this tab taking into account the comments and reviews deleted.
  • Refactors code, creates function called "get_detailed_page_tabs_counts" in file "websearchadminlib.py".
  • Deletes functions "count_commments(recID)" and "count_reviews(recID)" in file "webcomment.py" because they were not used in any module and they do the same funcionality that "get_nb_comments()" and "get_nb_reviews()" respectively.

Details

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:bec26208e6b0: WebSearch: display Discussion(N) in tab header (authored by Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>).Aug 11 2011, 11:01