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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt (-25 / +20 lines)
Lines 8-30 Link Here
8
//<![CDATA[
8
//<![CDATA[
9
9
10
 $(document).ready(function() {
10
 $(document).ready(function() {
11
    [% IF (dateformat == 'metric') %]
12
        dt_add_type_uk_date();
13
    [% END %]
14
    $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
11
    $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
15
        "sPaginationType": "four_button",
12
        "sPaginationType": "four_button",
16
        "aaSorting": [],
13
        "aaSorting": [],
17
        "aoColumns": [
14
        "aoColumnDefs": [
18
            null,
15
            { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
19
            { "sType": "anti-the" },
16
            { "sType": "title-string", "aTargets" : [ "title-string" ] }
20
            null,
21
            null,
22
            null,
23
            null,
24
            null,
25
            null,
26
            null,
27
            { "sType": "title-string" }
28
        ]
17
        ]
29
    }));
18
    }));
30
 });
19
 });
Lines 55-75 Link Here
55
44
56
<table id="table_readingrec">
45
<table id="table_readingrec">
57
<thead>
46
<thead>
58
    <th>Date</th>
47
    <tr>
59
	<th>Title</th>
48
    <th class="title-string">Date</th>
49
    <th class="anti-the">Title</th>
60
	<th>Author</th>
50
	<th>Author</th>
61
    <th>Call no.</th>
51
    <th>Call no.</th>
62
	<th>Barcode</th>
52
	<th>Barcode</th>
63
    <th>Number of renewals</th>
53
    <th>Number of renewals</th>
64
	<th>Checked out on</th>
54
    <th class="title-string">Checked out on</th>
65
	<th>Checked out from</th>
55
	<th>Checked out from</th>
66
    <th>Date due</th>
56
    <th class="title-string">Date due</th>
67
    <th>Return date</th>
57
    <th class="title-string">Return date</th>
58
    </tr>
68
</thead>
59
</thead>
60
<tbody>
69
[% FOREACH issue IN loop_reading %]
61
[% FOREACH issue IN loop_reading %]
70
    [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
62
    [% IF  issue.returndate  %]<tr>[% ELSE %]<tr class="onissue">[% END %]
71
        <td>
63
        <td>
72
            [% issue.issuestimestamp | $KohaDates %]
64
            <span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates %]</span>
73
        </td>
65
        </td>
74
        <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
66
        <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>
75
67
Lines 88-108 Link Here
88
            <td>
80
            <td>
89
        [% issue.renewals %]</td>
81
        [% issue.renewals %]</td>
90
            <td>
82
            <td>
91
        [% issue.issuedate | $KohaDates %]</td>
83
                <span title="[% issue.issuedate %]">[% issue.issuedate | $KohaDates %]</span></td>
92
            <td>
84
            <td>
93
        [% issue.issuingbranch %]</td>
85
        [% issue.issuingbranch %]</td>
94
			<td>[% IF issue.date_due %]
86
			<td>[% IF issue.date_due %]
95
                    [% issue.date_due | $KohaDates %]
87
                    <span title="[% issue.date_due %]">[% issue.date_due | $KohaDates %]</span>
96
                [% ELSE %]&nbsp;[% END %]</td>
88
                [% ELSE %]
89
                    <span title="0000-00-00"></span>
90
                [% END %]
91
            </td>
97
            <td>
92
            <td>
98
                [% IF  issue.returndate %]
93
                [% IF  issue.returndate %]
99
                    <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span>
94
                    <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span>
100
                [% ELSE %]
95
                [% ELSE %]
101
                    <span title="Checked Out"><small>Checked Out</small></span>
96
                    <span title="Checked Out"><small>Checked out</small></span>
102
                [% END %]
97
                [% END %]
103
            </td>
98
            </td>
104
</tr>
99
</tr>
105
[% END %]
100
[% END %]
101
</tbody>
106
</table>
102
</table>
107
[% END %]
103
[% END %]
108
</div>
104
</div>
109
- 

Return to bug 12089