Bug 19005

Summary: Option to hide statistics tab from patron account
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9939
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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 %]