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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
26 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
29 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
32 <a href="#" aria-current="page">
33 Add order from a subscription
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
44 <h2>Serials subscriptions</h2>
45 [% IF (done_searched) %]
46 <label for="show_only_renewed">
47 <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
55 <th class="anti-the">Title</th>
60 <th>Expiration date</th>
61 <th class="NoSort"></th>
65 [% FOREACH sub IN subs_loop %]
66 <tr data-reneweddate="[% sub.reneweddate | html %]" >
67 <td>[% sub.issn | html %]</td>
68 <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 %]
70 [% END %][% IF (sub.unititle) %], [% sub.unititle | html %][% END %]</a>
72 <td>[% IF (sub.publicnotes) %][% sub.publicnotes | html %][% END %]
73 [% IF (sub.internalnotes) %]([% sub.internalnotes | html %])[% END %]
76 [% IF (sub.vendorname) %][% sub.vendorname | html %][% END %]
79 [% IF (sub.branchcode) %][% Branches.GetName( sub.branchcode ) | html %][% END %]
82 [% IF (sub.callnumber) %][% sub.callnumber | html %][% END %]
84 <td data-order="[% sub.enddate | html %]">
85 [% sub.enddate | $KohaDates %]
88 [% IF (sub.alreadyOnOrder) %]
91 [% IF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid %]
92 <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">
93 <i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]
96 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
104 <p>Sorry, there is no result for your search.</p>
107 <p>Use the search form on the left to find subscriptions.</p>
110 </div> <!-- /.col-sm-10.col-sm-push-2 -->
112 <div class="col-sm-2 col-sm-pull-10">
114 [% INCLUDE 'subscriptions-search.inc' %]
115 [% INCLUDE 'acquisitions-menu.inc' %]
117 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
118 </div> <!-- /.row -->
120 [% MACRO jsinclude BLOCK %]
121 [% Asset.js("js/acquisitions-menu.js") | $raw %]
122 [% INCLUDE 'datatables.inc' %]
123 [% INCLUDE 'calendar.inc' %]
125 function updateRowsVisibility(show_only_renewed) {
126 if ( show_only_renewed ) {
127 $("#srlt [data-reneweddate='']").hide();
129 $("#srlt > tbody > tr").show();
133 $(document).ready(function() {
134 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
136 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
137 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
139 "sPaginationType": "full"
142 $("#show_only_renewed").click(function(){
143 updateRowsVisibility( $(this).is(":checked") );
145 $("#show_only_renewed").prop('checked', false);
146 updateRowsVisibility(false);
148 $("#advsearch_form").show();
153 [% INCLUDE 'intranet-bottom.inc' %]