6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Serials [% biblionumber | html %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="acq_newordersubscription" class="acq">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'acquisitions-search.inc' %]
17 <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>
19 <div class="main container-fluid">
21 <div class="col-sm-10 col-sm-push-2">
24 <h2>Serials subscriptions</h2>
25 [% IF (done_searched) %]
26 <label for="show_only_renewed">
27 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
35 <th class="anti-the">Title</th>
40 <th class="title-string">Expiration date</th>
41 <th class="NoSort"></th>
45 [% FOREACH sub IN subs_loop %]
46 <tr data-reneweddate="[% sub.reneweddate | html %]" >
47 <td>[% sub.issn | html %]</td>
48 <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 %]
50 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
52 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
53 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
56 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
59 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
62 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
65 [% IF (sub.enddate) %]
66 <span title="[% sub.enddate | html %]">[% sub.enddate | $KohaDates %]</span>
68 <span title="0000-00-00"></span>
72 [% IF (sub.alreadyOnOrder) %]
75 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
76 <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">
77 <i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
80 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
88 <p>Sorry, there is no result for your search.</p>
91 <p>Use the search form on the left to find subscriptions.</p>
94 </div> <!-- /.col-sm-10.col-sm-push-2 -->
96 <div class="col-sm-2 col-sm-pull-10">
98 [% INCLUDE 'subscriptions-search.inc' %]
99 [% INCLUDE 'acquisitions-menu.inc' %]
101 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
102 </div> <!-- /.row -->
104 [% MACRO jsinclude BLOCK %]
105 [% Asset.js("js/acquisitions-menu.js") | $raw %]
106 [% INCLUDE 'datatables.inc' %]
107 [% INCLUDE 'calendar.inc' %]
109 function updateRowsVisibility(show_only_renewed) {
110 if ( show_only_renewed ) {
111 $("#srlt [data-reneweddate='']").hide();
113 $("#srlt > tbody > tr").show();
117 $(document).ready(function() {
118 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
120 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
121 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
122 { "sType": "title-string", "aTargets" : [ "title-string" ] }
124 "sPaginationType": "full"
127 $("#show_only_renewed").click(function(){
128 updateRowsVisibility( $(this).is(":checked") );
130 $("#show_only_renewed").prop('checked', false);
131 updateRowsVisibility(false);
133 $("#advsearch_form").show();
138 [% INCLUDE 'intranet-bottom.inc' %]