Bug 19005 - Option to hide statistics tab from patron account
Summary: Option to hide statistics tab from patron account
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-31 10:40 UTC by Katrin Fischer
Modified: 2019-04-28 10:20 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2017-07-31 10:40:07 UTC
The statistics tab in the patron account in staff often causes a bit of confusion and questions from the libraries. It woul be nice if it could be easily hidden without having to use jQuery.

Im the template, there is a check for statisticsview, but that is always set to 1:

http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=members/statistics.pl;hb=1b73cae6eb4ce7e7ca675d6db84fe8ce0cd2f499#l107
    statisticsview     => 1,

http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc;hb=1b73cae6eb4ce7e7ca675d6db84fe8ce0cd2f499#l96
[% IF ( CAN_user_borrowers ) %]
[% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
[% END %]