7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Serials [% biblionumber | html %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="acq_newordersubscription" class="acq">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'acquisitions-search.inc' %]
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% booksellername | html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketno | html %]</a> › Add order from a subscription</div>
18 <div class="main container-fluid">
20 <div class="col-sm-10 col-sm-push-2">
23 <h2>Serials subscriptions</h2>
24 [% IF (done_searched) %]
25 <label for="show_only_renewed">
26 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
34 <th class="anti-the">Title</th>
39 <th class="title-string">Expiration date</th>
40 <th class="NoSort"></th>
44 [% FOREACH sub IN subs_loop %]
45 <tr data-reneweddate="[% sub.reneweddate | html %]" >
46 <td>[% sub.issn | html %]</td>
47 <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 %]
49 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
51 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
52 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
55 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
58 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
61 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
64 [% IF (sub.enddate) %]
65 <span title="[% sub.enddate | html %]">[% sub.enddate | $KohaDates %]</span>
67 <span title="0000-00-00"></span>
71 [% IF (sub.alreadyOnOrder) %]
74 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
75 <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">
76 <i class="fa fa-plus"></i> Order
79 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
87 <p>Sorry, there is no result for your search.</p>
90 <p>Use the search form on the left to find subscriptions.</p>
93 </div> <!-- /.col-sm-10.col-sm-push-2 -->
95 <div class="col-sm-2 col-sm-pull-10">
97 [% INCLUDE 'subscriptions-search.inc' %]
98 [% INCLUDE 'acquisitions-menu.inc' %]
100 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
101 </div> <!-- /.row -->
103 [% MACRO jsinclude BLOCK %]
104 [% Asset.js("js/acquisitions-menu.js") | $raw %]
105 [% INCLUDE 'datatables.inc' %]
107 function updateRowsVisibility(show_only_renewed) {
108 if ( show_only_renewed ) {
109 $("#srlt [data-reneweddate='']").hide();
111 $("#srlt > tbody > tr").show();
115 $(document).ready(function() {
116 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
118 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
119 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
120 { "sType": "title-string", "aTargets" : [ "title-string" ] }
122 "sPaginationType": "four_button"
125 $("#show_only_renewed").click(function(){
126 updateRowsVisibility( $(this).is(":checked") );
128 $("#show_only_renewed").prop('checked', false);
129 updateRowsVisibility(false);
131 $("#advsearch_form").show();
136 [% INCLUDE 'intranet-bottom.inc' %]