Lines 289-295
Link Here
|
289 |
[% ELSE %] |
289 |
[% ELSE %] |
290 |
<div id="opened"> |
290 |
<div id="opened"> |
291 |
[% IF openedsubscriptions %] |
291 |
[% IF openedsubscriptions %] |
292 |
[% INCLUDE subscriptions_table subscriptions = openedsubscriptions %] |
292 |
<table id="osrlt"> |
|
|
293 |
<thead> |
294 |
<tr> |
295 |
<th>Sort</th> |
296 |
<th>ISSN</th> |
297 |
<th class="anti-the">Title</th> |
298 |
<th>Notes</th> |
299 |
<th>Library</th> |
300 |
<th>Location</th> |
301 |
<th>Call number</th> |
302 |
<th class="title-string">Expiration date</th> |
303 |
[% FOR field IN additional_fields_for_subscription %] |
304 |
<th>[% field.name %]</th> |
305 |
[% END %] |
306 |
<th class="NoSort">Actions</th> |
307 |
</tr> |
308 |
</thead> |
309 |
<tfoot> |
310 |
<tr> |
311 |
<td><input type="text" class="dt-filter" data-column_num="0" placeholder="Search ISSN" /></td> |
312 |
<td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search title" /></td> |
313 |
<td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search notes" /></td> |
314 |
<td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search library" /></td> |
315 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td> |
316 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td> |
317 |
<td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search expiration date" /></td> |
318 |
[% FOR field IN additional_fields_for_subscription %] |
319 |
<td><input type="text" class="dt-filter" data-column_num="[% loop.count + 6 %]" placeholder="Search [% field.name %]" /></td> |
320 |
[% END %] |
321 |
<td colspan="2"></td> |
322 |
</tr> |
323 |
</tfoot> |
324 |
<tbody> |
325 |
[% FOREACH subscription IN openedsubscriptions %] |
326 |
[% UNLESS subscription.cannotdisplay %] |
327 |
<tr> |
328 |
<td>[% IF ( subscription.titlesort ) %][% subscription.titlesort %][% END %]</td> |
329 |
<td> |
330 |
[% IF ( subscription.issn ) %][% subscription.issn %] |
331 |
[% END %] |
332 |
</td> |
333 |
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a> |
334 |
</td> |
335 |
<td>[% IF ( subscription.publicnotes ) %][% subscription.publicnotes %][% END %] |
336 |
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] |
337 |
</td> |
338 |
<td> |
339 |
[% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %] |
340 |
</td> |
341 |
<td> |
342 |
[% IF ( subscription.location ) %][% AuthorisedValues.GetByCode( 'LOC', subscription.location ) %][% END %] |
343 |
</td> |
344 |
<td> |
345 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
346 |
</td> |
347 |
<td> |
348 |
[% IF ( subscription.enddate ) %] |
349 |
<span title="[% subscription.enddate %]">[% subscription.enddate | $KohaDates %]</span> |
350 |
[% ELSE %] |
351 |
<span title="0000-00-00"></span> |
352 |
[% END %] |
353 |
</td> |
354 |
|
355 |
[% FOR field IN additional_fields_for_subscription %] |
356 |
[% IF field.authorised_value_category %] |
357 |
<td>[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td> |
358 |
[% ELSE %] |
359 |
<td>[% subscription.additional_fields.${field.name} %]</td> |
360 |
[% END %] |
361 |
[% END %] |
362 |
|
363 |
<td> |
364 |
<div class="dropdown"> |
365 |
<div class="btn-group"> |
366 |
[% IF ( CAN_user_serials_receive_serials ) %] |
367 |
[%# There should be no space between these two buttons, it would render badly %] |
368 |
<a class="btn btn-default btn-xs" role="button" |
369 |
href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7"><i |
370 |
class="fa fa-inbox"></i> Serial receive</a><a |
371 |
class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" |
372 |
data-toggle="dropdown" href="#"><b class="caret"></b></a> |
373 |
[% ELSE %] |
374 |
<a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">Actions <b class="caret"></b></a> |
375 |
[% END %] |
376 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid %]"> |
377 |
|
378 |
[% IF ( routing && CAN_user_serials_routing ) %] |
379 |
[% IF ( subscription.cannotedit ) %] |
380 |
[% ELSE %] |
381 |
[% IF ( subscription.routingedit ) %] |
382 |
<li> |
383 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> Edit routing list ([% subscription.routingedit %])</a> |
384 |
</li> |
385 |
[% ELSE %] |
386 |
<li> |
387 |
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new"> <i class="fa fa-plus"></i> New routing list</a> |
388 |
</li> |
389 |
[% END %] |
390 |
[% END %] |
391 |
[% END # IF ( routing && CAN_user_serials_routing ) %] |
392 |
|
393 |
<li> |
394 |
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> Issue history</a> |
395 |
</li> |
396 |
</ul> |
397 |
</div> |
398 |
</div> |
399 |
</td> |
400 |
|
401 |
</tr> |
402 |
[% END %] |
403 |
[% END %] |
404 |
</tbody> |
405 |
</table> |
293 |
[% ELSE %] |
406 |
[% ELSE %] |
294 |
<div class="dialog message"> |
407 |
<div class="dialog message"> |
295 |
<p>Your search returned no open subscriptions.</p> |
408 |
<p>Your search returned no open subscriptions.</p> |
Lines 444-449
Link Here
|
444 |
"sPaginationType": "full", |
557 |
"sPaginationType": "full", |
445 |
"order": [[ 2, "asc" ]], |
558 |
"order": [[ 2, "asc" ]], |
446 |
"aoColumnDefs": [ |
559 |
"aoColumnDefs": [ |
|
|
560 |
{ 'visible' : false, "targets" : 0}, |
561 |
{ "iDataSort" : 0, 'aTargets' : [ 2 ] }, |
447 |
{ 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
562 |
{ 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
448 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] }, |
563 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] }, |
449 |
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] } |
564 |
{ 'sType': "anti-the", 'aTargets' : [ 'anti-the'] } |