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 188-199 Link Here
188
                    </li>
188
                    </li>
189
                [% END %]
189
                [% END %]
190
            [% END %]
190
            [% END %]
191
            [% IF CAN_user_borrowers_edit_borrowers %]
191
            [% IF CAN_user_borrowers_view_checkout_history %]
192
                [% IF ( intranetreadinghistory ) %]
192
                <li [% IF readingrecordview %]class="active"[% END %]>
193
                    <li [% IF readingrecordview %]class="active"[% END %]>
193
                    <a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a>
194
                        <a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a>
194
                </li>
195
                    </li>
196
                [% END %]
197
            [% END %]
195
            [% END %]
198
            [% IF CAN_user_borrowers_edit_borrowers %]
196
            [% IF CAN_user_borrowers_edit_borrowers %]
199
                [% IF ( IntranetReadingHistoryHolds ) %]
197
                [% 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 %]
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 311-316 Link Here
311
    [%- CASE 'edit_accountline_notes' -%]
311
    [%- CASE 'edit_accountline_notes' -%]
312
        <span class="sub_permission edit_notes_subpermission"> Edit accountline notes </span>
312
        <span class="sub_permission edit_notes_subpermission"> Edit accountline notes </span>
313
        <span class="permissioncode">([% name | html %])</span>
313
        <span class="permissioncode">([% name | html %])</span>
314
    [%- CASE 'view_checkout_history' -%]
315
        <span class="sub_permission view_checkout_history"> Viewing checkout history </span>
316
        <span class="permissioncode">([% name | html %])</span>
314
    [%- CASE 'suggestions_manage' -%]
317
    [%- CASE 'suggestions_manage' -%]
315
        <span class="sub_permission suggestions_manage_subpermission"> Edit purchase suggestions </span>
318
        <span class="sub_permission suggestions_manage_subpermission"> Edit purchase suggestions </span>
316
        <span class="permissioncode">([% name | html %])</span>
319
        <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) AND CAN_user_circulate_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 %]
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