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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-37 / +66 lines)
Lines 31-37 Link Here
31
                    [% IF READING_RECORD.size == 0 %]
31
                    [% IF READING_RECORD.size == 0 %]
32
                        You have never borrowed anything from this library.
32
                        You have never borrowed anything from this library.
33
                    [% ELSE %]
33
                    [% ELSE %]
34
                        <div id="opac-user-readingrec" class="statictabs">
34
                        <div id="opac-user-readingrec" class="statictabs2">
35
                            <div class="resultscontrol resort">
35
                            <div class="resultscontrol resort">
36
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
36
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
37
                                    [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
37
                                    [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
Lines 43-74 Link Here
43
                                </form>
43
                                </form>
44
                            </div>
44
                            </div>
45
45
46
                            <ul>
46
                            [% IF limit %]
47
                                [% IF ( showfulllink ) %]
47
                                <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a>
48
                                    [% IF ( limit ) %]
48
                            [% ELSE %]
49
                                        <li><a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a></li><li class="active"><a href="#readingrec">Showing last 50 items</a></li>
49
                                <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Showing last 50 items</a>
50
                                    [% ELSE %]
50
                            [% END %]
51
                                        <li class="active"><a href="/cgi-bin/koha/opac-readingrecord.pl#readingrec">Showing all items</a></li><li><a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show last 50 items only</a></li>
52
                                    [% END %]
53
                                [% ELSE %]
54
                                    <li class="active"><a href="/cgi-bin/koha/opac-readingrecord.pl#readingrec">Showing all items</a></li>
55
                                [% END %]
56
                            </ul>
57
58
                            <div class="tabs-container">
59
                                <table id="readingrec" class="table table-bordered table-striped">
60
                                    <tr>
61
                                    <th colspan="2">Title</th>
62
                                    <th>Item type</th>
63
                                    <th>Call no.</th>
64
                                    <th>Date</th>
65
                                    [% IF ( OPACMySummaryHTML ) %]
66
                                    <th>Links</th>
67
                                    [% END %]
68
                                    </tr>
69
51
52
                            <div id="tabs" class="toptabs">
53
                                <ul>
54
                                    <li><a href="#tabs-container" id="tab_all">All</a></li>
55
                                    <li><a href="#tabs-container" id="tab_checkout">Checkouts</a></li>
56
                                    <li><a href="#tabs-container" id="tab_onsite_checkout">On-site checkouts</a></li>
57
                                </ul>
58
                                <div id="tabs-container" style="overflow:hidden">
59
                                    <table id="readingrec" class="table table-bordered table-striped">
60
                                        <thead>
61
                                            <tr>
62
                                                <th style="display:none;">Type</th>
63
                                                <th></th>
64
                                                <th>Title</th>
65
                                                <th>Item type</th>
66
                                                <th>Call no.</th>
67
                                                <th>Date</th>
68
                                                [% IF ( OPACMySummaryHTML ) %]
69
                                                    <th>Links</th>
70
                                                [% END %]
71
                                            </tr>
72
                                        </thead>
73
                                        <tbody>
70
                                    [% FOREACH issue IN READING_RECORD %]
74
                                    [% FOREACH issue IN READING_RECORD %]
71
                                        [% IF loop.even  %]<tr class="highlight">[% ELSE %]<tr>[% END %]
75
                                        <tr>
76
                                            <td style="display:none;">
77
                                              [% IF issue.onsite_checkout %]
78
                                                onsite
79
                                              [% ELSE %]
80
                                                checkout
81
                                              [% END %]
82
                                            </td>
72
                                        <td>
83
                                        <td>
73
                                            [% IF  OPACAmazonCoverImages %]
84
                                            [% IF  OPACAmazonCoverImages %]
74
                                                [% IF  issue.normalized_isbn %]
85
                                                [% IF  issue.normalized_isbn %]
Lines 101-108 Link Here
101
                                                <img src="http://www.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% issue.normalized_upc %]&amp;oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" />
112
                                                <img src="http://www.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% issue.normalized_upc %]&amp;oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" />
102
                                           [% END %]
113
                                           [% END %]
103
                                        [% END %]
114
                                        [% END %]
104
                                    </td>
115
                                        </td>
105
                                    <td>
116
                                        <td>
106
                                        [% IF  issue.BiblioDefaultViewmarc %]
117
                                        [% IF  issue.BiblioDefaultViewmarc %]
107
                                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF  issue.subtitle  %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a>
118
                                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF  issue.subtitle  %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a>
108
                                        [% ELSIF issue.BiblioDefaultViewisbd %]
119
                                        [% ELSIF issue.BiblioDefaultViewisbd %]
Lines 111-118 Link Here
111
                                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a>
122
                                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title |html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield %][% END %][% END %]</a>
112
                                        [% END %]
123
                                        [% END %]
113
                                        <span class="item-details">[% issue.author %]</span>
124
                                        <span class="item-details">[% issue.author %]</span>
114
                                    </td>
125
                                        </td>
115
                                    <td>
126
                                        <td>
116
                                        [% UNLESS ( noItemTypeImages ) %]
127
                                        [% UNLESS ( noItemTypeImages ) %]
117
                                            [% IF ( issue.imageurl ) %]
128
                                            [% IF ( issue.imageurl ) %]
118
                                                <img src="[% issue.imageurl %]" alt="" />
129
                                                <img src="[% issue.imageurl %]" alt="" />
Lines 120-142 Link Here
120
                                        [% END %]
131
                                        [% END %]
121
                                        <span class="tdlabel">Item type:</span>
132
                                        <span class="tdlabel">Item type:</span>
122
                                        [% issue.description %]</td>
133
                                        [% issue.description %]</td>
123
                                    <td>
134
                                        <td>
124
                                        <span class="tdlabel">Call number:</span>
135
                                        <span class="tdlabel">Call number:</span>
125
                                        [% issue.itemcallnumber %]
136
                                        [% issue.itemcallnumber %]
126
                                    </td>
137
                                        </td>
127
                                    <td>
138
                                        <td>
128
                                        [% IF issue.returndate %]
139
                                        [% IF issue.returndate %]
129
                                            <span class="tdlabel">Check-in date:</span>
140
                                            <span class="tdlabel">Check-in date:</span>
130
                                            [% issue.returndate | $KohaDates %]
141
                                            [% issue.returndate | $KohaDates %]
131
                                        [% ELSE %]
142
                                        [% ELSE %]
132
                                            <em>(Checked out)</em>
143
                                            <em>(Checked out)</em>
133
                                        [% END %]
144
                                        [% END %]
134
                                    </td>
145
                                        </td>
135
                                    [% IF OPACMySummaryHTML %]
146
                                        [% IF OPACMySummaryHTML %]
136
                                        <td>[% issue.MySummaryHTML %]</td>
147
                                            <td>[% issue.MySummaryHTML %]</td>
148
                                        [% END %]
149
                                        </tr>
137
                                    [% END %]
150
                                    [% END %]
138
                                    </tr>
151
                                </tbody>
139
                                [% END %]
140
                            </table>
152
                            </table>
141
                        </div> <!-- / .tabs-container -->
153
                        </div> <!-- / .tabs-container -->
142
                    </div> <!-- / .opac-user-readingrec -->
154
                    </div> <!-- / .opac-user-readingrec -->
Lines 149-154 Link Here
149
161
150
[% INCLUDE 'opac-bottom.inc' %]
162
[% INCLUDE 'opac-bottom.inc' %]
151
[% BLOCK jsinclude %]
163
[% BLOCK jsinclude %]
164
[% INCLUDE 'datatables.inc' %]
152
<script type="text/javascript">
165
<script type="text/javascript">
153
//<![CDATA[
166
//<![CDATA[
154
    $(document).ready(function(){
167
    $(document).ready(function(){
Lines 157-162 Link Here
157
        $('#order').change(function() {
170
        $('#order').change(function() {
158
            $('#sortform').submit();
171
            $('#sortform').submit();
159
        });
172
        });
173
174
        var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
175
            "sPaginationType": "four_button",
176
        }));
177
        var tabs = $("#tabs").tabs({
178
            select: function(e, ui) {
179
                var id = $(ui.tab).attr("id");
180
                if ( id == "tab_checkout" ) {
181
                    table.fnFilter("checkout", 0);
182
                } else if ( id == "tab_onsite_checkout" ) {
183
                    table.fnFilter("onsite", 0);
184
                } else { // all
185
                    table.fnFilter('', 0);
186
                }
187
            }
188
        });
160
    });
189
    });
161
//]]>
190
//]]>
162
</script>
191
</script>
(-)a/opac/opac-readingrecord.pl (-2 lines)
Lines 139-145 for(qw(AmazonCoverImages GoogleJackets)) { # BakerTaylorEnabled handled above Link Here
139
$template->param(
139
$template->param(
140
    READING_RECORD => $issues,
140
    READING_RECORD => $issues,
141
    limit          => $limit,
141
    limit          => $limit,
142
    showfulllink   => 1,
143
    readingrecview => 1,
142
    readingrecview => 1,
144
    OPACMySummaryHTML => $opac_summary_html ? 1 : 0,
143
    OPACMySummaryHTML => $opac_summary_html ? 1 : 0,
145
);
144
);
146
- 

Return to bug 13234