Bug 13380: Fill order cancellation reasons from AV
[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 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
8 //<![CDATA[
9     function updateRowsVisibility(show_only_renewed) {
10         if ( show_only_renewed ) {
11             $("#srlt [data-reneweddate='']").hide();
12         } else {
13             $("#srlt > tbody > tr").show();
14         }
15     }
16
17     $(document).ready(function() {
18         $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
19             "aoColumnDefs": [
20                 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
21                 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
22                 { "sType": "title-string", "aTargets" : [ "title-string" ] }
23             ],
24             "sPaginationType": "four_button"
25         } ) )
26
27         $("#show_only_renewed").click(function(){
28             updateRowsVisibility($(this+":checked").val());
29         });
30         $("#show_only_renewed").attr('checked', false);
31         updateRowsVisibility(false);
32
33         $("#advsearch_form").show();
34     });
35  //]]>
36 </script>
37 </head>
38 <body>
39 [% INCLUDE 'header.inc' %]
40 [% INCLUDE 'acquisitions-search.inc' %]
41
42 <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>
43
44 <div id="doc3" class="yui-t2">
45     <div id="bd">
46     <div id="yui-main">
47         <div class="yui-b">
48             <h2>Serials subscriptions</h2>
49             [% IF (done_searched) %]
50                 <label for="show_only_renewed">
51                     <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
52                     Show only renewed
53                 </label>
54                 [% IF (subs_loop) %]
55                     <table id="srlt">
56                         <thead>
57                             <tr>
58                                 <th>ISSN</th>
59                                 <th class="anti-the">Title</th>
60                                 <th> Notes </th>
61                                 <th>Library</th>
62                                 <th>Call number</th>
63                                 <th class="title-string">Expiration date</th>
64                                 <th class="NoSort"></th>
65                             </tr>
66                         </thead>
67                         <tbody>
68                         [% FOREACH sub IN subs_loop %]
69                             <tr data-reneweddate="[% sub.reneweddate %]" >
70                                 <td>[% sub.issn %]</td>
71                                 <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 %]
72                                 ---
73                             [% END %][% IF (sub.unititle) %], [% sub.unititle %][% END %]</a>
74                                 </td>
75                                 <td>[% IF (sub.publicnotes) %][% sub.publicnotes %][% END %]
76                                     [% IF (sub.internalnotes) %]([% sub.internalnotes %])[% END %]
77                                 </td>
78                                 <td>
79                                     [% IF (sub.branchcode) %][% sub.branchcode %][% END %]
80                                 </td>
81                                 <td>
82                                     [% IF (sub.callnumber) %][% sub.callnumber %][% END %]
83                                 </td>
84                                 <td>
85                                     [% IF (sub.enddate) %]
86                                         <span title="[% sub.enddate %]">[% sub.enddate | $KohaDates %]</span>
87                                     [% ELSE %]
88                                         <span title="0000-00-00"></span>
89                                     [% END %]
90                                 </td>
91                                 <td>
92                                     [% IF (sub.alreadyOnOrder) %]
93                                         Outstanding order (only one order per subscription is allowed)
94                                     [% ELSIF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid%]
95                                         <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">
96                                             Order
97                                         </a>
98                                     [% ELSE %]
99                                         <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
100                                     [% END %]
101                                 </td>
102                             </tr>
103                         [% END %]
104                         </tbody>
105                     </table>
106                 [% ELSE %]
107                     <p>Sorry, there is no result for your search.</p>
108                 [% END %]
109             [% ELSE %]
110                 <p>Use the search form on the left to find subscriptions.</p>
111             [% END %]
112         </div>
113     </div>
114
115     <div class="yui-b">
116         [% INCLUDE 'subscriptions-search.inc' %]
117         [% INCLUDE 'acquisitions-menu.inc' %]
118     </div>
119 </div>
120 [% INCLUDE 'intranet-bottom.inc' %]