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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt (-103 / +104 lines)
Lines 32-138 Link Here
32
32
33
                <div id="results" class="toptabs">
33
                <div id="results" class="toptabs">
34
34
35
                    <ul>
35
                    <ul class="nav nav-tabs" role="tablist">
36
                        <li><a href="#recallswaiting">Recalls waiting: [% recalls.count | html %]</a></li>
36
                        <li role="presentation" class="active">
37
                        <li><a href="#recallsover">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</a></li>
37
                            <a href="#recallswaiting" aria-controls="recallswaiting" role="tab" data-toggle="tab">Recalls waiting: [% recalls.count | html %]</a>
38
                        </li>
39
                        <li role="presentation">
40
                            <a href="#recallsover" aria-controls="recallsover" role="tab" data-toggle="tab">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</a>
41
                        </li>
38
                    </ul>
42
                    </ul>
39
43
40
                    <div id="recallswaiting">
44
                    <div class="tab-content">
41
                        [% IF ( recalls ) %]
45
                        <div id="recallswaiting" role="tabpanel" class="tab-pane active">
42
                            <table id="recallswaiting-table">
46
                            [% IF ( recalls ) %]
43
                                <thead><tr>
47
                                <table id="recallswaiting-table">
44
                                    <th class="recall-waitingdate title-string">Available since</th>
48
                                    <thead><tr>
45
                                    <th class="recall-title anti-the">Title</th>
49
                                        <th class="recall-waitingdate title-string">Available since</th>
46
                                    <th class="recall-patron">Requested by</th>
50
                                        <th class="recall-title anti-the">Title</th>
47
                                    <th class="recall-library">Pickup location</th>
51
                                        <th class="recall-patron">Requested by</th>
48
                                    <th class="recall-action nosort">&nbsp;</th>
52
                                        <th class="recall-library">Pickup location</th>
49
                                </tr></thead>
53
                                        <th class="recall-action nosort">&nbsp;</th>
50
                                <tbody>
54
                                    </tr></thead>
51
                                    [% FOREACH recall IN recalls %]<tr>
55
                                    <tbody>
52
                                        <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
56
                                        [% FOREACH recall IN recalls %]<tr>
53
                                        <td class="recall-title">
57
                                            <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
54
                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
58
                                            <td class="recall-title">
55
                                                [% recall.biblio.title | html %]
59
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
56
                                                [% FOREACH s IN recall.biblio.subtitle %]
60
                                                    [% recall.biblio.title | html %]
57
                                                    [% s | html %]
61
                                                    [% FOREACH s IN recall.biblio.subtitle %]
58
                                                [% END %]
62
                                                        [% s | html %]
59
                                            </a>
63
                                                    [% END %]
60
                                            [% recall.biblio.author | html %]
64
                                                </a>
61
                                            <br><i>Barcode: [% recall.item.barcode | html %]</i>
65
                                                [% recall.biblio.author | html %]
62
                                        </td>
66
                                                <br><i>Barcode: [% recall.item.barcode | html %]</i>
63
                                        <td class="recall-patron">
67
                                            </td>
64
                                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
68
                                            <td class="recall-patron">
65
                                             [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
69
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
66
                                             [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
70
                                                [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
67
                                        </td>
71
                                                [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
68
                                        <td class="recall-library">[% recall.library.branchname | html %]</td>
72
                                            </td>
69
                                        <td class="recall-action actions">
73
                                            <td class="recall-library">[% recall.library.branchname | html %]</td>
70
                                            <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
74
                                            <td class="recall-action actions">
71
                                                <input type="hidden" name="recall_id" value="[% recall.id | html %]">
75
                                                <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
72
                                                <input type="hidden" name="op" value="modify">
76
                                                    <input type="hidden" name="recall_id" value="[% recall.id | html %]">
73
                                                <fieldset class="action">
77
                                                    <input type="hidden" name="op" value="modify">
74
                                                    <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
78
                                                    <fieldset class="action">
75
                                                    <input type="submit" name="expire" class="expire_recall" value="Expire recall">
79
                                                        <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
76
                                                </fieldset>
80
                                                        <input type="submit" name="expire" class="expire_recall" value="Expire recall">
77
                                            </form>
81
                                                    </fieldset>
78
                                        </td>
82
                                                </form>
79
                                    </tr>[% END %]
83
                                            </td>
80
                                </tbody>
84
                                        </tr>[% END %]
81
                            </table>
85
                                    </tbody>
82
                        [% ELSE %]
86
                                </table>
83
                            <div class="dialog message">There are no recalls to show.</div>
87
                            [% ELSE %]
84
                        [% END %]
88
                                <div class="dialog message">There are no recalls to show.</div>
85
                    </div> <!-- recallswaiting -->
89
                            [% END %]
86
90
                        </div> <!-- recallswaiting -->
87
                    <div id="recallsover">
91
88
                        [% IF ( over.size ) %]
92
                        <div id="recallsover" role="tabpanel" class="tab-pane">
89
                            [% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %]
93
                            [% IF ( over.size ) %]
90
                            <table id="recallsover-table">
94
                                [% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %]
91
                                <thead><tr>
95
                                <table id="recallsover-table">
92
                                    <th class="recall-waitingdate title-string">Available since</th>
96
                                    <thead><tr>
93
                                    <th class="recall-title anti-the">Title</th>
97
                                        <th class="recall-waitingdate title-string">Available since</th>
94
                                    <th class="recall-patron">Requested by</th>
98
                                        <th class="recall-title anti-the">Title</th>
95
                                    <th class="recall-library">Pickup location</th>
99
                                        <th class="recall-patron">Requested by</th>
96
                                    <th class="recall-action nosort">&nbsp;</th>
100
                                        <th class="recall-library">Pickup location</th>
97
                                </tr></thead>
101
                                        <th class="recall-action nosort">&nbsp;</th>
98
                                <tbody>
102
                                    </tr></thead>
99
                                    [% FOREACH recall IN over %]<tr>
103
                                    <tbody>
100
                                        <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
104
                                        [% FOREACH recall IN over %]<tr>
101
                                        <td class="recall-title">
105
                                            <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
102
                                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
106
                                            <td class="recall-title">
103
                                                [% recall.biblio.title | html %]
107
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
104
                                                [% FOREACH s IN recall.biblio.subtitles %]
108
                                                    [% recall.biblio.title | html %]
105
                                                    [% s | html %]
109
                                                    [% FOREACH s IN recall.biblio.subtitles %]
106
                                                [% END %]
110
                                                        [% s | html %]
107
                                                [% recall.item.enumchron | html %]
111
                                                    [% END %]
108
                                            </a>
112
                                                    [% recall.item.enumchron | html %]
109
                                            [% recall.biblio.author | html %]
113
                                                </a>
110
                                            <br><i>Barcode: [% recall.item.barcode | html %]</i>
114
                                                [% recall.biblio.author | html %]
111
                                        </td>
115
                                                <br><i>Barcode: [% recall.item.barcode | html %]</i>
112
                                        <td class="recall-patron">
116
                                            </td>
113
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
117
                                            <td class="recall-patron">
114
                                            [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
118
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
115
                                            [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
119
                                                [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
116
                                        </td>
120
                                                [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
117
                                        <td class="recall-library">[% recall.library.branchname | html %]</td>
121
                                            </td>
118
                                        <td class="recall-action actions">
122
                                            <td class="recall-library">[% recall.library.branchname | html %]</td>
119
                                            <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
123
                                            <td class="recall-action actions">
120
                                                <input type="hidden" name="recall_id" value="[% recall.id | html %]">
124
                                                <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
121
                                                <input type="hidden" name="op" value="modify">
125
                                                    <input type="hidden" name="recall_id" value="[% recall.id | html %]">
122
                                                <fieldset class="action">
126
                                                    <input type="hidden" name="op" value="modify">
123
                                                    <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
127
                                                    <fieldset class="action">
124
                                                    <input type="submit" name="expire" class="expire_recall" value="Expire recall">
128
                                                        <input type="submit" name="revert" class="revert_recall" value="Revert waiting status">
125
                                                </fieldset>
129
                                                        <input type="submit" name="expire" class="expire_recall" value="Expire recall">
126
                                            </form>
130
                                                    </fieldset>
127
                                        </td>
131
                                                </form>
128
                                    </tr>[% END %]
132
                                            </td>
129
                                </tbody>
133
                                        </tr>[% END %]
130
                            </table>
134
                                    </tbody>
131
                        [% ELSE %]
135
                                </table>
132
                            <div class="dialog message">There are no recalls to show.</div>
136
                            [% ELSE %]
133
                        [% END %]
137
                                <div class="dialog message">There are no recalls to show.</div>
134
                    </div> <!-- recallsover -->
138
                            [% END %]
135
139
                        </div> <!-- recallsover -->
140
                    </div> <!-- /.tab-content -->
136
                </div> <!-- results-->
141
                </div> <!-- results-->
137
142
138
                [% ELSE %]
143
                [% ELSE %]
Lines 151-165 Link Here
151
        [% END %]
156
        [% END %]
152
157
153
    </div> <!-- /.row -->
158
    </div> <!-- /.row -->
154
</div>
155
159
156
[% MACRO jsinclude BLOCK %]
160
[% MACRO jsinclude BLOCK %]
157
    [% INCLUDE 'datatables.inc' %]
161
    [% INCLUDE 'datatables.inc' %]
158
    [% INCLUDE 'columns_settings.inc' %]
162
    [% INCLUDE 'columns_settings.inc' %]
159
    <script>
163
    <script>
160
        $(document).ready(function() {
164
        $(document).ready(function() {
161
            $('#results').tabs();
162
163
            $("#recallswaiting-table, #recallsover-table").dataTable($.extend(true, {}, dataTablesDefaults, {
165
            $("#recallswaiting-table, #recallsover-table").dataTable($.extend(true, {}, dataTablesDefaults, {
164
                "autoWidth": false,
166
                "autoWidth": false,
165
                "aoColumnDefs": [
167
                "aoColumnDefs": [
166
- 

Return to bug 32688