6 [%# USE the plugin and define some macros %]
7 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha › Serials [% biblionumber | html %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="acq_newordersubscription" class="acq">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'acquisitions-search.inc' %]
18 <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>
20 <div class="main container-fluid">
22 <div class="col-sm-10 col-sm-push-2">
25 <h2>Serials subscriptions</h2>
26 [% IF (done_searched) %]
27 <label for="show_only_renewed">
28 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
36 <th class="anti-the">Title</th>
41 <th class="title-string">Expiration date</th>
42 <th class="NoSort"></th>
46 [% FOREACH sub IN subs_loop %]
47 <tr data-reneweddate="[% sub.reneweddate | html %]" >
48 <td>[% sub.issn | html %]</td>
49 <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 %]
51 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
53 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
54 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
57 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
60 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
63 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
66 [% IF (sub.enddate) %]
67 <span title="[% sub.enddate | html %]">[% sub.enddate | $KohaDates %]</span>
69 <span title="0000-00-00"></span>
73 [% IF (sub.alreadyOnOrder) %]
76 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
77 <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">
78 <i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
81 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
89 <p>Sorry, there is no result for your search.</p>
92 <p>Use the search form on the left to find subscriptions.</p>
95 </div> <!-- /.col-sm-10.col-sm-push-2 -->
97 <div class="col-sm-2 col-sm-pull-10">
99 [% INCLUDE 'subscriptions-search.inc' %]
100 [% INCLUDE 'acquisitions-menu.inc' %]
102 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
103 </div> <!-- /.row -->
105 [% MACRO jsinclude BLOCK %]
106 [% Asset.js("js/acquisitions-menu.js") | $raw %]
107 [% INCLUDE 'datatables.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' %]