Bug 5343: Followup FIX quantity received if items are created when receiving
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / newordersubscription.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Serials [% biblionumber %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11     function updateRowsVisibility(show_only_renewed) {
12         if ( show_only_renewed ) {
13             $("#srlt [data-reneweddate='']").hide();
14         } else {
15             $("#srlt > tbody > tr").show();
16         }
17     }
18
19     [% IF (dateformat == 'metric') %]
20         dt_add_type_uk_date();
21     [% END %]
22     $(document).ready(function() {
23         $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
24             "aoColumnDefs": [
25                 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
26                 [% IF (dateformat == 'metric') %]
27                     { "aTargets": [ -2 ], "sType": "uk_date" },
28                 [% END %]
29             ],
30         } ) )
31
32         $("#show_only_renewed").click(function(){
33             updateRowsVisibility($(this+":checked").val());
34         });
35         $("#show_only_renewed").attr('checked', false);
36         updateRowsVisibility(false);
37
38         $("#advsearch_form").show();
39     });
40  //]]>
41 </script>
42 </head>
43 <body>
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'acquisitions-search.inc' %]
46
47 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% supplierid %]">[% booksellername %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Shopping Basket [% basketno %]</a> &rsaquo; Add order from a subscription</div>
48
49 <div id="doc3" class="yui-t2">
50     <div id="bd">
51     <div id="yui-main">
52         <div class="yui-b">
53             <h2>Serials subscriptions</h2>
54             [% IF (routing) %]
55                 <h3>Search for Serial Routing List</h3>
56             [% END %]
57             [% IF (done_searched) %]
58                 <label for="show_only_renewed">
59                     <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
60                     Show only renewed
61                 </label>
62                 [% IF (subs_loop) %]
63                     <table id="srlt">
64                         <thead>
65                             <tr>
66                                 <th>ISSN</th>
67                                 <th>Title</th>
68                                 <th> Notes </th>
69                                 <th>Library</th>
70                                 <th>Call number</th>
71                                 <th>Expiration date</th>
72                                 <th></th>
73                             </tr>
74                         </thead>
75                         <tbody>
76                         [% FOREACH sub IN subs_loop %]
77                             <tr data-reneweddate="[% sub.reneweddate %]" >
78                                 <td>[% sub.issn %]</td>
79                                 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% sub.subscriptionid %]" class="button" title="subscription detail">[% IF (sub.title) %][% sub.title |html %][% ELSE %]
80                                 ---
81                             [% END %][% IF (sub.unititle) %], [% sub.unititle %][% END %]</a>
82                                 </td>
83                                 <td>[% notes %]
84                                     [% IF (sub.internalnotes) %]([% sub.internalnotes %])[% END %]
85                                 </td>
86                                 <td>
87                                     [% IF (sub.branchcode) %][% sub.branchcode %][% END %]
88                                 </td>
89                                 <td>
90                                     [% IF (sub.callnumber) %][% sub.callnumber %][% END %]
91                                 </td>
92                                 <td>
93                                     [% IF (sub.enddate) %][% sub.enddate | $KohaDates %][% END %]
94                                 </td>
95                                 <td>
96                                     [% IF (sub.alreadyOnOrder) %]
97                                         Outstanding order (only one order per subscription is allowed)
98                                     [% ELSE %]
99                                         <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% sub.biblionumber %]&amp;subscriptionid=[% sub.subscriptionid %]" title="Order this one">
100                                             Order
101                                         </a>
102                                     [% END %]
103                                 </td>
104                             </tr>
105                         [% END %]
106                         </tbody>
107                     </table>
108                 [% ELSE %]
109                     <p>Sorry, there is no result for your search.</p>
110                 [% END %]
111             [% ELSE %]
112                 <p>Use the search form on the left to find subscriptions.</p>
113             [% END %]
114         </div>
115     </div>
116
117     <div class="yui-b">
118         [% INCLUDE 'subscriptions-search.inc' %]
119         [% INCLUDE 'acquisitions-menu.inc' %]
120     </div>
121 </div>
122 [% INCLUDE 'intranet-bottom.inc' %]