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">Home</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 <div class="page-section">
49 [% IF (done_searched) %]
50 <label for="show_only_renewed">
51 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
59 <th class="anti-the">Title</th>
64 <th>Expiration date</th>
65 <th class="NoSort"></th>
69 [% FOREACH sub IN subs_loop %]
70 <tr data-reneweddate="[% sub.reneweddate | html %]" >
71 <td>[% sub.issn | html %]</td>
72 <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 %]
74 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
76 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
77 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
80 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
83 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
86 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
88 <td data-order="[% sub.enddate | html %]">
89 [% sub.enddate | $KohaDates %]
92 [% IF (sub.alreadyOnOrder) %]
95 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
96 <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">
97 <i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
100 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
108 <p>Sorry, there is no result for your search.</p>
111 <p>Use the search form on the left to find subscriptions.</p>
113 </div> <!-- /.page-section -->
115 </div> <!-- /.col-sm-10.col-sm-push-2 -->
117 <div class="col-sm-2 col-sm-pull-10">
119 [% INCLUDE 'subscriptions-search.inc' %]
120 [% INCLUDE 'acquisitions-menu.inc' %]
122 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
123 </div> <!-- /.row -->
125 [% MACRO jsinclude BLOCK %]
126 [% Asset.js("js/acquisitions-menu.js") | $raw %]
127 [% INCLUDE 'datatables.inc' %]
128 [% INCLUDE 'calendar.inc' %]
130 function updateRowsVisibility(show_only_renewed) {
131 if ( show_only_renewed ) {
132 $("#srlt [data-reneweddate='']").hide();
134 $("#srlt > tbody > tr").show();
138 $(document).ready(function() {
139 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
141 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
142 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
144 "sPaginationType": "full"
147 $("#show_only_renewed").click(function(){
148 updateRowsVisibility( $(this).is(":checked") );
150 $("#show_only_renewed").prop('checked', false);
151 updateRowsVisibility(false);
153 $("#advsearch_form").show();
158 [% INCLUDE 'intranet-bottom.inc' %]