Lines 9-22
Link Here
|
9 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
10 |
//<![CDATA[ |
10 |
//<![CDATA[ |
11 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
12 |
var srlt = $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
12 |
var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
13 |
"aoColumnDefs": [ |
13 |
"aoColumnDefs": [ |
14 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
14 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
15 |
], |
15 |
], |
16 |
"sPaginationType": "four_button" |
16 |
"sPaginationType": "four_button" |
17 |
} ) ); |
17 |
} ) ); |
18 |
|
18 |
|
19 |
srlt.fnAddFilters("filter", 750); |
19 |
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
20 |
"aoColumnDefs": [ |
21 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
22 |
], |
23 |
"sPaginationType": "four_button" |
24 |
} ) ); |
25 |
|
26 |
osrlt.fnAddFilters("filter", 750); |
27 |
csrlt.fnAddFilters("filter", 750); |
28 |
|
29 |
$('#serialstabs').tabs(); |
30 |
|
20 |
}); |
31 |
}); |
21 |
//]]> |
32 |
//]]> |
22 |
</script> |
33 |
</script> |
Lines 33-41
Link Here
|
33 |
<div class="yui-b"> |
44 |
<div class="yui-b"> |
34 |
[% INCLUDE 'serials-toolbar.inc' %] |
45 |
[% INCLUDE 'serials-toolbar.inc' %] |
35 |
|
46 |
|
36 |
<h2>Serials subscriptions</h2> |
47 |
<h2>Serials subscriptions ([% total %] found)</h2> |
37 |
[% UNLESS ( done_searched ) %] |
48 |
[% UNLESS ( done_searched ) %] |
38 |
<div id="advsearch"> |
49 |
<div id="advsearch" style="padding-bottom:3em;"> |
39 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
50 |
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get"> |
40 |
<fieldset class="rows"> |
51 |
<fieldset class="rows"> |
41 |
<legend>Search subscriptions</legend> |
52 |
<legend>Search subscriptions</legend> |
Lines 85-170
Link Here
|
85 |
</div> |
96 |
</div> |
86 |
[% END %] |
97 |
[% END %] |
87 |
[% IF ( done_searched ) %] |
98 |
[% IF ( done_searched ) %] |
88 |
[% IF ( subscriptions ) %] |
99 |
[% IF ( total ) %] |
89 |
<table id="srlt"> |
100 |
<div id="serialstabs" class="toptabs" style="clear:both;"> |
90 |
<thead> |
101 |
<ul class="ui-tabs-nav"> |
91 |
<tr> |
102 |
<li><a href="#opened">Opened ([% openedsubscriptions.size || 0 %])</a></li> |
92 |
<th>ISSN</th> |
103 |
<li><a href="#closed">Closed ([% closedsubscriptions.size || 0 %])</a></li> |
93 |
<th>Title</th> |
104 |
</ul> |
94 |
<th> Notes </th> |
105 |
<div id="opened"> |
95 |
<th>Library</th> |
106 |
[% IF openedsubscriptions %] |
96 |
<th>Call number</th> |
107 |
<table id="osrlt"> |
97 |
<th>Expiration date</th> |
108 |
<thead> |
98 |
[% IF ( routing && CAN_user_serials_routing ) %] |
109 |
<tr> |
99 |
<th>Routing list</th> |
110 |
<th>ISSN</th> |
100 |
[% END %] |
111 |
<th>Title</th> |
101 |
<th> </th> |
112 |
<th> Notes </th> |
102 |
<th> </th> |
113 |
<th>Library</th> |
103 |
</tr> |
114 |
<th>Call number</th> |
104 |
</thead> |
115 |
<th>Expiration date</th> |
105 |
<tfoot> |
116 |
[% IF ( routing && CAN_user_serials_routing ) %] |
106 |
<tr> |
117 |
<th>Routing list</th> |
107 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td> |
118 |
[% END %] |
108 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td> |
119 |
<th> </th> |
109 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td> |
120 |
<th> </th> |
110 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
121 |
</tr> |
111 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
122 |
</thead> |
112 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Search expiration date" /></td> |
123 |
<tfoot> |
113 |
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %] |
124 |
<tr> |
114 |
<td></td> |
125 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td> |
115 |
<td></td> |
126 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td> |
116 |
</tr> |
127 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td> |
117 |
</tfoot> |
128 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
118 |
<tbody> |
129 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
119 |
[% FOREACH subscription IN subscriptions %] |
130 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Search expiration date" /></td> |
120 |
<tr> |
131 |
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %] |
121 |
<td> |
132 |
<td></td> |
122 |
[% IF ( subscription.issn ) %][% subscription.issn %] |
133 |
<td></td> |
123 |
[% END %] |
134 |
</tr> |
124 |
</td> |
135 |
</tfoot> |
125 |
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
136 |
<tbody> |
126 |
</td> |
137 |
[% FOREACH subscription IN openedsubscriptions %] |
127 |
<td>[% IF ( subscription.notes ) %][% subscription.notes %][% END %] |
138 |
<tr> |
128 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
139 |
<td> |
129 |
</td> |
140 |
[% IF ( subscription.issn ) %][% subscription.issn %] |
130 |
<td> |
141 |
[% END %] |
131 |
[% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] |
142 |
</td> |
132 |
</td> |
143 |
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
133 |
<td> |
144 |
</td> |
134 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
145 |
<td>[% IF ( subscription.notes ) %][% subscription.notes %][% END %] |
135 |
</td> |
146 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
136 |
<td> |
147 |
</td> |
137 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
148 |
<td> |
138 |
</td> |
149 |
[% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] |
139 |
[% IF ( routing && CAN_user_serials_routing ) %] |
150 |
</td> |
140 |
<td> |
151 |
<td> |
141 |
[% IF ( subscription.cannotedit ) %] |
152 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
142 |
|
153 |
</td> |
143 |
[% ELSE %] |
154 |
<td> |
144 |
[% IF ( subscription.routingedit ) %] |
155 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
145 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a> |
156 |
</td> |
146 |
([% subscription.routingedit %]) |
157 |
[% IF ( routing && CAN_user_serials_routing ) %] |
147 |
[% ELSE %] |
158 |
<td> |
148 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new">New</a> |
159 |
[% IF ( subscription.cannotedit ) %] |
149 |
[% END %] |
160 |
|
|
|
161 |
[% ELSE %] |
162 |
[% IF ( subscription.routingedit ) %] |
163 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a> |
164 |
([% subscription.routingedit %]) |
165 |
[% ELSE %] |
166 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new">New</a> |
167 |
[% END %] |
168 |
[% END %] |
169 |
</td> |
170 |
[% END %] |
171 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
172 |
</td> |
173 |
<td> |
174 |
[% IF ( subscription.cannotedit ) %] |
175 |
|
176 |
[% ELSE %] |
177 |
[% IF ( CAN_user_serials_receive_serials ) %]<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a>[% END %] |
178 |
[% END %] |
179 |
</td> |
180 |
</tr> |
181 |
[% END %] |
182 |
</tbody> |
183 |
</table> |
184 |
[% ELSE %] |
185 |
There is no opened subscription for your search. |
186 |
[% END %] |
187 |
</div> |
188 |
<div id="closed"> |
189 |
[% IF closedsubscriptions %] |
190 |
<table id="csrlt"> |
191 |
<thead> |
192 |
<tr> |
193 |
<th>ISSN</th> |
194 |
<th>Title</th> |
195 |
<th> Notes </th> |
196 |
<th>Library</th> |
197 |
<th>Call number</th> |
198 |
<th> </th> |
199 |
<th> </th> |
200 |
</tr> |
201 |
</thead> |
202 |
<tfoot> |
203 |
<tr> |
204 |
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td> |
205 |
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td> |
206 |
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td> |
207 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
208 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
209 |
<td></td> |
210 |
<td></td> |
211 |
</tr> |
212 |
</tfoot> |
213 |
<tbody> |
214 |
[% FOREACH subscription IN closedsubscriptions %] |
215 |
<tr> |
216 |
<td> |
217 |
[% IF ( subscription.issn ) %] |
218 |
[% subscription.issn %] |
219 |
[% END %] |
220 |
</td> |
221 |
<td> |
222 |
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
223 |
</td> |
224 |
<td> |
225 |
[% IF ( subscription.notes ) %][% subscription.notes %][% END %] |
226 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
227 |
</td> |
228 |
<td> |
229 |
[% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] |
230 |
</td> |
231 |
<td> |
232 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
233 |
</td> |
234 |
<td> |
235 |
[% UNLESS subscription.cannotedit %] |
236 |
<a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid %]&op=reopen&routing=[% subscription.routing %]&searched=1&title_filter=[% title_filter %]&ISSN_filter=[% ISSN_filter %]&EAN_filter=[% EAN_filter %]&published_filter=[% publisher_filter %]&bookseller_filter=[% bookseller_filter %]&branch_filter=[% branch_filter %]" onclick="return confirm(_('Are you sure you want to reopen this subscription?'));">Reopen</a> |
237 |
[% ELSE %] |
238 |
Cannot edit |
239 |
[% END %] |
240 |
</td> |
241 |
<td> |
242 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
243 |
</td> |
244 |
</tr> |
150 |
[% END %] |
245 |
[% END %] |
151 |
</td> |
246 |
</tbody> |
152 |
[% END %] |
247 |
</table> |
153 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
248 |
[% ELSE %] |
154 |
</td> |
249 |
There is no closed subscription for your search. |
155 |
<td> |
|
|
156 |
[% IF ( subscription.cannotedit ) %] |
157 |
|
158 |
[% ELSE %] |
159 |
[% IF ( CAN_user_serials_receive_serials ) %]<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a>[% END %] |
160 |
[% END %] |
161 |
</td> |
162 |
</tr> |
163 |
[% END %] |
250 |
[% END %] |
164 |
</tbody> |
251 |
</div> |
165 |
</table> |
252 |
</div> |
166 |
[% ELSE %] |
|
|
167 |
There is no subscription for your search. |
168 |
[% END %] |
253 |
[% END %] |
169 |
[% END %] |
254 |
[% END %] |
170 |
</div> |
255 |
</div> |