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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-3 / +8 lines)
Lines 26-37 Link Here
26
<h1>Checkout history for [% biblio.title |html %]</h1>
26
<h1>Checkout history for [% biblio.title |html %]</h1>
27
[% IF biblio.author %]<h3>by [% biblio.author %]</h3>[% END %]
27
[% IF biblio.author %]<h3>by [% biblio.author %]</h3>[% END %]
28
28
29
[% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
30
29
<div class="searchresults">
31
<div class="searchresults">
30
    [% IF checkouts %]
32
    [% IF checkouts %]
31
        <h4>Checked out [% checkouts.size %] times</h4>
33
        <h4>Checked out [% checkouts.size %] times</h4>
32
        <table id="table_issues">
34
        <table id="table_issues">
33
            <thead><tr>
35
            <thead><tr>
34
            [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
36
            [% IF show_patron_column %]
35
            <th>Patron</th>
37
            <th>Patron</th>
36
            [% END %]
38
            [% END %]
37
            <th>Barcode</th>
39
            <th>Barcode</th>
Lines 44-50 Link Here
44
            <tbody>
46
            <tbody>
45
        [% FOREACH checkout IN checkouts %]
47
        [% FOREACH checkout IN checkouts %]
46
            <tr>
48
            <tr>
47
                [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
49
                [% IF show_patron_column %]
48
                <td>[% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]</td>
50
                <td>[% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]</td>
49
                [% END %]
51
                [% END %]
50
                <td>
52
                <td>
Lines 103-108 Link Here
103
    <script type="text/javascript" id="js">
105
    <script type="text/javascript" id="js">
104
        $(document).ready(function() {
106
        $(document).ready(function() {
105
            var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
107
            var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
108
            [% UNLESS show_patron_column %]
109
            // Remove the patron column definition
110
            columns_settings.splice(0,1);
111
            [% END %]
106
            var table = KohaTable("table_issues", {
112
            var table = KohaTable("table_issues", {
107
                "aoColumnDefs": [
113
                "aoColumnDefs": [
108
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
114
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
109
- 

Return to bug 19902