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