7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Serials [% biblionumber | html %]</title>
9 [% Asset.css("css/datatables.css") | $raw %]
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 id="doc3" class="yui-t2">
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 | html %]" 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) %]
72 Outstanding order (only one order per subscription is allowed)
73 [% ELSIF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid%]
74 <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]&biblionumber=[% sub.biblionumber | html %]&from_subscriptionid=[% sub.subscriptionid | html %]" title="Order this one">
78 <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
86 <p>Sorry, there is no result for your search.</p>
89 <p>Use the search form on the left to find subscriptions.</p>
95 [% INCLUDE 'subscriptions-search.inc' %]
96 [% INCLUDE 'acquisitions-menu.inc' %]
100 [% MACRO jsinclude BLOCK %]
101 [% Asset.js("js/acquisitions-menu.js") | $raw %]
102 [% INCLUDE 'datatables.inc' %]
103 <script type="text/javascript">
104 function updateRowsVisibility(show_only_renewed) {
105 if ( show_only_renewed ) {
106 $("#srlt [data-reneweddate='']").hide();
108 $("#srlt > tbody > tr").show();
112 $(document).ready(function() {
113 $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
115 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
116 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
117 { "sType": "title-string", "aTargets" : [ "title-string" ] }
119 "sPaginationType": "four_button"
122 $("#show_only_renewed").click(function(){
123 updateRowsVisibility( $(this).is(":checked") );
125 $("#show_only_renewed").prop('checked', false);
126 updateRowsVisibility(false);
128 $("#advsearch_form").show();
133 [% INCLUDE 'intranet-bottom.inc' %]