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