6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% FILTER collapse %]
10 [% t("Add order from a subscription") | html %] ›
11 [% t("Acquisitions") | html %] ›
12 [% t("Koha") | html %]
14 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="acq_newordersubscription" class="acq">
18 [% WRAPPER 'header.inc' %]
19 [% INCLUDE 'acquisitions-search.inc' %]
22 [% WRAPPER 'sub-header.inc' %]
23 [% WRAPPER breadcrumbs %]
24 [% WRAPPER breadcrumb_item %]
25 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
30 [% WRAPPER breadcrumb_item %]
31 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
33 [% WRAPPER breadcrumb_item bc_active= 1 %]
34 <span>Add order from a subscription</span>
36 [% END #/ WRAPPER breadcrumbs %]
37 [% END #/ WRAPPER sub-header.inc %]
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
44 <h1>Serials subscriptions</h1>
45 <div class="page-section">
46 [% IF (done_searched) %]
47 <label for="show_only_renewed">
48 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
56 <th class="anti-the">Title</th>
61 <th>Expiration date</th>
62 <th class="NoSort"></th>
66 [% FOREACH sub IN subs_loop %]
67 <tr data-reneweddate="[% sub.reneweddate | html %]" >
68 <td>[% sub.issn | html %]</td>
69 <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 %]
71 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
73 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
74 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
77 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
80 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
83 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
85 <td data-order="[% sub.enddate | html %]">
86 [% sub.enddate | $KohaDates %]
89 [% IF (sub.alreadyOnOrder) %]
92 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
93 <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">
94 <i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
97 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
105 <p>Sorry, there is no result for your search.</p>
108 <p>Use the search form on the left to find subscriptions.</p>
110 </div> <!-- /.page-section -->
112 </div> <!-- /.col-sm-10.col-sm-push-2 -->
114 <div class="col-sm-2 col-sm-pull-10">
116 [% INCLUDE 'subscriptions-search.inc' %]
117 [% INCLUDE 'acquisitions-menu.inc' %]
119 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
120 </div> <!-- /.row -->
122 [% MACRO jsinclude BLOCK %]
123 [% Asset.js("js/acquisitions-menu.js") | $raw %]
124 [% INCLUDE 'datatables.inc' %]
125 [% INCLUDE 'calendar.inc' %]
127 function updateRowsVisibility(show_only_renewed) {
128 if ( show_only_renewed ) {
129 $("#srlt [data-reneweddate='']").hide();
131 $("#srlt > tbody > tr").show();
135 $(document).ready(function() {
136 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
138 { "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
139 { "type": "anti-the", "targets": [ "anti-the" ] }
144 $("#show_only_renewed").click(function(){
145 updateRowsVisibility( $(this).is(":checked") );
147 $("#show_only_renewed").prop('checked', false);
148 updateRowsVisibility(false);
150 $("#advsearch_form").show();
155 [% INCLUDE 'intranet-bottom.inc' %]