View | Details | Raw Unified | Return to bug 32682
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-6 / +4 lines)
Lines 196-207 Link Here
196
                    </li>
196
                    </li>
197
                [% END %]
197
                [% END %]
198
            [% END %]
198
            [% END %]
199
            [% IF CAN_user_borrowers_edit_borrowers %]
199
            [% IF (CAN_user_borrowers_view_checkout_history && Koha.Preference('intranetreadinghistory')) %]
200
                [% IF ( intranetreadinghistory ) %]
200
                <li [% IF readingrecordview %]class="active"[% END %]>
201
                    <li [% IF readingrecordview %]class="active"[% END %]>
201
                    <a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a>
202
                        <a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a>
202
                </li>
203
                    </li>
204
                [% END %]
205
            [% END %]
203
            [% END %]
206
            [% IF CAN_user_borrowers_edit_borrowers %]
204
            [% IF CAN_user_borrowers_edit_borrowers %]
207
                [% IF ( IntranetReadingHistoryHolds ) %]
205
                [% IF ( IntranetReadingHistoryHolds ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +1 lines)
Lines 151-157 Link Here
151
                        </li>
151
                        </li>
152
                    [% END %]
152
                    [% END %]
153
                [% END %]
153
                [% END %]
154
                [% IF Koha.Preference('intranetreadinghistory') %]
154
                [% IF CAN_user_borrowers_view_checkout_history && Koha.Preference('intranetreadinghistory') %]
155
                    [% IF ( patron.privacy == 2 ) %]
155
                    [% IF ( patron.privacy == 2 ) %]
156
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="Not allowed by patron's privacy settings">
156
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="Not allowed by patron's privacy settings">
157
                            <a class="dropdown-item disabled" aria-disabled="true" id="exportbarcodes" href="#">Export today's checked in barcodes</a>
157
                            <a class="dropdown-item disabled" aria-disabled="true" id="exportbarcodes" href="#">Export today's checked in barcodes</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+3 lines)
Lines 320-325 Link Here
320
    [%- CASE 'edit_accountline_notes' -%]
320
    [%- CASE 'edit_accountline_notes' -%]
321
        <span class="sub_permission edit_notes_subpermission"> Edit accountline notes </span>
321
        <span class="sub_permission edit_notes_subpermission"> Edit accountline notes </span>
322
        <span class="permissioncode">([% name | html %])</span>
322
        <span class="permissioncode">([% name | html %])</span>
323
    [%- CASE 'view_checkout_history' -%]
324
        <span class="sub_permission view_checkout_history"> Viewing checkout history </span>
325
        <span class="permissioncode">([% name | html %])</span>
323
    [%- CASE 'suggestions_manage' -%]
326
    [%- CASE 'suggestions_manage' -%]
324
        <span class="sub_permission suggestions_manage_subpermission"> Edit purchase suggestions </span>
327
        <span class="sub_permission suggestions_manage_subpermission"> Edit purchase suggestions </span>
325
        <span class="permissioncode">([% name | html %])</span>
328
        <span class="permissioncode">([% name | html %])</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-1 / +1 lines)
Lines 41-47 Link Here
41
    <h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
41
    <h1>Checkout history for [% INCLUDE 'biblio-title.inc' %]</h1>
42
    [% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
42
    [% IF biblio.author %]<h3>by [% biblio.author | html %]</h3>[% END %]
43
43
44
    [% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
44
    [% SET show_patron_column = (CAN_user_borrowers_view_checkout_history && Koha.Preference('intranetreadinghistory')) AND CAN_user_circulate_remaining_permissions %]
45
45
46
    <div class="searchresults page-section">
46
    <div class="searchresults page-section">
47
        [% IF checkouts %]
47
        [% IF checkouts %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt (-2 / +1 lines)
Lines 46-52 Link Here
46
    [% UNLESS checkouts %][% checkouts = [] %][% END %]
46
    [% UNLESS checkouts %][% checkouts = [] %][% END %]
47
    [% UNLESS old_checkouts %][% old_checkouts = [] %][% END %]
47
    [% UNLESS old_checkouts %][% old_checkouts = [] %][% END %]
48
    [% SET all_checkouts = checkouts.merge(old_checkouts) %]
48
    [% SET all_checkouts = checkouts.merge(old_checkouts) %]
49
    [% UNLESS Koha.Preference('intranetreadinghistory') %]
49
    [% UNLESS (CAN_user_borrowers_view_checkout_history && Koha.Preference('intranetreadinghistory')) %]
50
        <div class="alert alert-warning">Staff members are not allowed to access patron's checkout history</div>
50
        <div class="alert alert-warning">Staff members are not allowed to access patron's checkout history</div>
51
    [% ELSIF is_anonymous %]
51
    [% ELSIF is_anonymous %]
52
        <div class="alert alert-warning">This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.</div>
52
        <div class="alert alert-warning">This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.</div>
53
- 

Return to bug 32682