6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Serials [% biblionumber | html %] › Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="acq_newordersubscription" class="acq">
14 [% WRAPPER 'header.inc' %]
15 [% INCLUDE 'acquisitions-search.inc' %]
18 [% WRAPPER 'sub-header.inc' %]
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
22 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
25 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
28 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
31 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
34 <a href="#" aria-current="page">
35 Add order from a subscription
42 <div class="main container-fluid">
44 <div class="col-sm-10 col-sm-push-2">
47 <h1>Serials subscriptions</h1>
48 [% IF (done_searched) %]
49 <label for="show_only_renewed">
50 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
58 <th class="anti-the">Title</th>
63 <th>Expiration date</th>
64 <th class="NoSort"></th>
68 [% FOREACH sub IN subs_loop %]
69 <tr data-reneweddate="[% sub.reneweddate | html %]" >
70 <td>[% sub.issn | html %]</td>
71 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% sub.subscriptionid | uri %]" class="button" title="subscription detail">[% IF (sub.title) %][% sub.title | html %][% ELSE %]
73 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
75 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
76 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
79 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
82 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
85 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
87 <td data-order="[% sub.enddate | html %]">
88 [% sub.enddate | $KohaDates %]
91 [% IF (sub.alreadyOnOrder) %]
94 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
95 <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&biblionumber=[% sub.biblionumber | uri %]&from_subscriptionid=[% sub.subscriptionid | uri %]" title="Order this one" class="btn btn-default btn-xs">
96 <i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
99 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
107 <p>Sorry, there is no result for your search.</p>
110 <p>Use the search form on the left to find subscriptions.</p>
113 </div> <!-- /.col-sm-10.col-sm-push-2 -->
115 <div class="col-sm-2 col-sm-pull-10">
117 [% INCLUDE 'subscriptions-search.inc' %]
118 [% INCLUDE 'acquisitions-menu.inc' %]
120 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
121 </div> <!-- /.row -->
123 [% MACRO jsinclude BLOCK %]
124 [% Asset.js("js/acquisitions-menu.js") | $raw %]
125 [% INCLUDE 'datatables.inc' %]
126 [% INCLUDE 'calendar.inc' %]
128 function updateRowsVisibility(show_only_renewed) {
129 if ( show_only_renewed ) {
130 $("#srlt [data-reneweddate='']").hide();
132 $("#srlt > tbody > tr").show();
136 $(document).ready(function() {
137 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
139 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
140 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
142 "sPaginationType": "full"
145 $("#show_only_renewed").click(function(){
146 updateRowsVisibility( $(this).is(":checked") );
148 $("#show_only_renewed").prop('checked', false);
149 updateRowsVisibility(false);
151 $("#advsearch_form").show();
156 [% INCLUDE 'intranet-bottom.inc' %]