basket management
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basket.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Acquisitions &rsaquo; <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Basket <!-- TMPL_IF NAME="basketno" -->(<!-- TMPL_VAR NAME="basketno" -->)<!-- /TMPL_IF --> for <!-- TMPL_VAR NAME="name" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_UNLESS name="closedate" -->
5 <script type="text/javascript">
6 //<![CDATA[
7             function confirm_close() {
8                 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
9                 if (is_confirmed) {
10                     window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=close&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplierid=<!-- TMPL_VAR name="booksellerid" -->";
11                 }
12             }
13 //]]>
14         </script>
15 <!-- TMPL_ELSE -->
16 <!-- TMPL_UNLESS name="grouped" -->
17 <script type="text/javascript">
18 //<![CDATA[
19             function confirm_reopen() {
20                 var is_confirmed = confirm(_('Are you sure you want to reopen this basket?'));
21                 if (is_confirmed) {
22                     window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=reopen&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplierid=<!-- TMPL_VAR name="booksellerid" -->";
23                 }
24             }
25 //]]>
26 </script>
27 <!-- /TMPL_UNLESS -->
28 <!-- /TMPL_UNLESS -->
29 <style type="text/css">
30 .sortmsg {font-size: 80%;}
31 </style>
32 </head>
33 <body>
34 <!-- TMPL_INCLUDE NAME="header.inc" -->
35 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
36
37
38 <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=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a> &rsaquo; <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Basket <!-- TMPL_IF NAME="basketno" -->(<!-- TMPL_VAR NAME="basketno" -->)<!-- /TMPL_IF --> for <!-- TMPL_VAR NAME="name" --></div>
39
40 <div id="doc3" class="yui-t2">
41    
42    <div id="bd">
43         <div id="yui-main">
44         <div class="yui-b">
45         
46          <!-- TMPL_UNLESS name="closedate" -->
47              <div id="toolbar">
48                  <script type="text/javascript">
49                      //<![CDATA[
50                      // prepare DOM for YUI Toolbar
51                       $(document).ready(function() {
52                          yuiToolbar();
53                       });
54                      // YUI Toolbar Functions
55                      function yuiToolbar() {
56                          <!-- TMPL_IF name="unclosable" -->
57                              new YAHOO.widget.Button("uncertpricesbutton");
58                              new YAHOO.widget.Button("closebutton", {disabled:true});
59                          <!-- TMPL_ELSE -->
60                              new YAHOO.widget.Button("closebutton");
61                          <!-- /TMPL_IF -->
62                          new YAHOO.widget.Button("basketheadbutton");
63                          new YAHOO.widget.Button("delbasketbutton");
64                      }
65                      //]]>
66                  </script>
67                  <ul id=toolbar-list" class="toolbar">
68                  <li><a href="basketheader.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
69                  <li><a href="<!-- TMPL_VAR NAME="script_name" -->?op=del_basket&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="button" id="delbasketbutton">Delete this basket</a></li>
70                  <!-- TMPL_IF name="unclosable" -->
71                      <li><button onclick="confirm_close()" class="yui-button-disabled" id="closebutton" type="push" disabled="true" title="You can not close this basket" >Can not close basket</a></li>
72                      <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
73                  <!-- TMPL_ELSE -->
74                      <li><a href="javascript:confirm_close()" class="button" id="closebutton">Close this basket</a></li>
75                  <!-- /TMPL_IF -->
76                  </ul>
77              </div>
78         <!-- TMPL_ELSE -->
79             <!-- TMPL_UNLESS name="grouped" -->
80             <div id="toolbar">
81                  <script type="text/javascript">
82                      //<![CDATA[
83                      // prepare DOM for YUI Toolbar
84                       $(document).ready(function() {
85                          yuiToolbar();
86                       });
87                       // YUI Toolbar Functions
88                      function yuiToolbar() {
89                          new YAHOO.widget.Button("reopenbutton");
90                      }
91                      //]]>
92                  </script>
93                      <ul id="toolbar-list" class="toolbar">
94                          <li><a href="javascript:confirm_reopen()" class="button" id="reopenbutton">Reopen this basket</a></li>
95                      </ul>
96              </div>
97              <!-- /TMPL_UNLESS -->
98         <!-- /TMPL_UNLESS -->
99         
100 <!-- TMPL_IF NAME="NO_BOOKSELLER" -->
101 <h2>Supplier Not Found</h2>
102 <!-- TMPL_ELSE -->
103     <!-- TMPL_IF NAME="delete_confirmed" -->
104         <h3>Basket deleted</h3>
105         <META HTTP-EQUIV=Refresh CONTENT="0; URL=booksellers.pl">
106     <!-- TMPL_ELSE -->
107     <h1><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS --><!-- TMPL_IF NAME="delete_confirm" -->Delete<!-- /TMPL_IF -->Basket <!-- TMPL_VAR NAME="basketno" --> for <a href="supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1>
108     <!-- TMPL_IF NAME="delete_confirm" -->
109         <h2>
110         <span class="yui-button yui-link-button">
111           <em class="first-child">
112             <a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="yui-link-button">Yes, delete this basket!</a>
113           </em>
114         </span>
115         <span class="yui-button yui-link-button">
116           <em class="first-child">
117             <a href="<!-- TMPL_VAR name="script_name" -->?basketno=<!-- TMPL_VAR name="basketno" -->" class="yui-link-button">Cancel</a>
118           </em>
119         </span>
120         </h2>
121     <!-- /TMPL_IF -->
122     <!-- TMPL_IF NAME="basketno" --><div id="acqui_basket_summary">
123         <h2>Basket Details</h2>
124         <p>Basket number:  <!-- TMPL_VAR NAME="basketno" --></p>
125         <p>Basket name: <!--TMPL_VAR NAME="basketname" --></p>
126         <p>Internal note: <!-- TMPL_VAR NAME="basketnote" --></p>
127         <p>Bookseller note: <!-- TMPL_VAR NAME="basketbooksellernote" --></p>
128         <!-- TMPL_IF NAME="basketcontractno" -->
129         <p>Contract number: <!-- TMPL_VAR NAME="basketcontractno" --></p>
130         <p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->"><!-- TMPL_VAR NAME="basketcontractname" --></a></p>
131         <!-- /TMPL_IF -->
132         <p>Managed by:  <!-- TMPL_VAR NAME="authorisedbyname" --></p>
133         <p>Open on:  <!-- TMPL_VAR NAME="creationdate" --></p>
134         <p>For vendor ID: <!-- TMPL_VAR NAME="booksellerid" --></p>
135         <p>Invoice number: <!-- TMPL_VAR NAME="booksellerinvoicenumber" --></p>
136         <!-- TMPL_IF name="closedate" -->
137           <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
138           <p>Closed On:  <!-- TMPL_VAR name="closedate" --></p>
139           <!-- TMPL_IF name="basketgroups" -->
140               <p> basketgroup: <select id="basketgroupid" name="basketgroupid">
141                   <!-- TMPL_LOOP name="basketgroups" -->
142                     <!-- TMPL_IF name="default" -->
143                       <option value="<!-- TMPL_VAR name="id" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
144                     <!-- TMPL_ELSE -->
145                       <option value="<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR name="name" --></option>
146                     <!-- /TMPL_IF -->
147                   <!-- /TMPL_LOOP -->
148                 </select>
149                 <input type="hidden" id="basketno" value="<!-- TMPL_VAR name="basketno" -->" name="basketno" />
150                 <input type="hidden" value="mod_basket" name="op" />
151                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
152                 <input type="submit" value="Change basketgroup" />
153               </p>
154           </form>
155           <!-- /TMPL_IF -->
156         <!-- /TMPL_IF -->
157         <p>Number of orders: <!-- TMPL_VAR name="count" --></p>
158     </div><!-- /TMPL_IF -->
159     
160     <!-- TMPL_UNLESS name="delete_confirm" -->
161     <div id="acqui_basket_content">
162     <h2>Order Details</h2>
163         <!-- TMPL_IF NAME="sort_loop" -->
164                 <!-- TMPL_LOOP NAME="sort_loop" -->
165                         <!-- TMPL_IF name="error" -->
166                         <div class="dialog alert">ERROR: Illegal sort requested by &quot;<!-- TMPL_VAR NAME="string" -->&quot;.
167                                 <br />Please use valid sort criteria. <a href="/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">Return to default results.</a></div>
168                         <!-- TMPL_ELSE -->
169                         <div class="dialog message">Sorted by &quot;<!-- TMPL_VAR NAME="string" -->&quot;.</div>
170                         <!-- /TMPL_IF -->
171                 <!-- /TMPL_LOOP -->
172         <!-- /TMPL_IF -->
173     <!-- TMPL_IF name="books_loop" -->
174         <table>
175             <tr>
176                 <th>Order</th>
177                 <th>Title</th>
178                 <th>ISBN</th>
179                 <th><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->&amp;order=biblioitems.publishercode">Publisher</a></th>
180                 <th>RRP</th>
181                 <th>Est.</th>
182                 <th>Qty.</th>
183                 <th>Total</th>
184                 <th>Budget</th>
185                 <!-- TMPL_IF name="active" -->
186                     <!-- TMPL_UNLESS name="closedate" -->
187                         <th>Modify</th>
188                         <th>Delete</th>
189                     <!-- /TMPL_UNLESS -->
190                 <!-- /TMPL_IF -->
191             </tr>
192             <!-- TMPL_LOOP NAME="books_loop" -->
193                  <!-- TMPL_IF NAME="order_received" --><tr class="disabled"><!-- TMPL_ELSE --><!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --><!-- /TMPL_IF -->
194                     <td><!-- TMPL_VAR NAME="ordernumber" -->
195                                                         <!-- TMPL_IF NAME="order_received" --> (rcvd)<!-- /TMPL_IF --></td>
196                         <td>
197                                 <p>
198                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a></p>
199                                 <p><!-- TMPL_VAR NAME="author" -->
200                                 <!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
201                             </p>
202                         </td>
203                     <td><!-- TMPL_IF name="isbn"--><!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF --></td>
204                     <td><!-- TMPL_VAR NAME="publishercode" --></td>
205                     <td class="number"><!-- TMPL_VAR NAME="rrp" --></td>
206                     <td class="number"><!-- TMPL_VAR NAME="ecost" --></td>
207                     <td class="number"><!-- TMPL_VAR NAME="quantity" --></td>
208                     <td class="number"><!-- TMPL_VAR NAME="line_total" --></td>
209                     <td><!-- TMPL_VAR NAME="budget_name" --></td>
210                     <!-- TMPL_IF name="active" -->
211                         <!-- TMPL_UNLESS name="closedate" -->
212                         <td>
213                             <a href="neworderempty.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a>
214                         </td>
215                         <td>
216                         <a href="addorder.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->&amp;quantity=0&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Delete</a>
217                         </td>
218                         <!-- /TMPL_UNLESS -->
219                     <!-- /TMPL_IF -->
220                 </tr>
221             <!-- /TMPL_LOOP -->
222             <tr>
223                 <td colspan="2" rowspan="3">
224                     <input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" />
225                     <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
226                 </td>
227                 <th>SubTotal</th>
228                 <th><!-- TMPL_VAR NAME="sub_total_rrp" --></th>
229                 <th><!-- currently duplicative <!-- TMPL_VAR NAME="sub_total_est" --> --></th>
230                 <th><!-- TMPL_VAR name="qty_total" --></th>
231                 <th><!-- TMPL_VAR NAME="sub_total" --></th>
232                     <!-- TMPL_IF name="active" -->
233                         <!-- TMPL_IF name="closedate" -->
234                           <td colspan="1" rowspan="3">&nbsp;</td>
235                         <!-- TMPL_ELSE -->
236                           <td colspan="3" rowspan="3">&nbsp;</td>
237                         <!-- /TMPL_IF -->
238                     <!-- /TMPL_IF -->
239             </tr>
240                         <tr>
241                 <th>GST (<!-- TMPL_VAR NAME="gist_rate" -->)</th>
242                 <th><!-- TMPL_VAR NAME="gist_rrp" --></th>
243 <!-- TMPL_UNLESS NAME="listincgst" -->
244                 <th><!-- currently duplicative <!-- TMPL_VAR NAME="gist_est" --> --></th>
245                 <th>&nbsp;</th>
246                 <th><!-- TMPL_VAR NAME="gist" --></th>
247 <!-- TMPL_ELSE -->
248                                 <th colspan="3">**</th>
249 <!-- /TMPL_UNLESS -->
250             </tr>
251             <tr>
252                 <th>TOTAL (<!-- TMPL_VAR NAME="currency" -->)</th>
253                 <th><!-- TMPL_VAR NAME="grand_total_rrp" --></th>
254                 <th>&nbsp;</th>
255                 <th><!-- TMPL_VAR name="qty_total" --></th>
256                 <th><!-- TMPL_VAR NAME="grand_total" --></th>
257             </tr>
258         </table>
259     <!-- TMPL_ELSE -->
260         <table>
261             <tr><td>Basket empty</td></tr>
262         </table>
263     <!-- /TMPL_IF -->
264         <!-- TMPL_IF NAME="listincgst" --><small class="highlight">** Vendor's listings already include GST.</small>
265     <!-- /TMPL_IF -->
266     </div>
267     <br />
268     <!-- TMPL_UNLESS name="closedate" -->
269         <div id="acqui_basket_add">
270             <h2>Add To Order</h2>
271             <form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
272                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
273                 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
274                 <ul><li><label for="q">From an existing record: </label><input id="q" type="text"  size="25" name="q" />
275                 <input type="submit" value="Search" /></li>
276                 <li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">From a Suggestion</a></li>
277                 <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">From a new (empty) record</a></li>
278                 <li><a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">From a z3950 query</a></li>
279                 <li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->"> From an imported iso2709 file</a></li>
280                 </ul>
281             </form>
282         </div>
283     <!-- /TMPL_UNLESS -->
284     <!-- /TMPL_UNLESS -->
285 <!-- /TMPL_IF -->
286 <!-- /TMPL_IF -->
287 </div>
288 </div>
289 <div class="yui-b">
290 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
291 </div>
292 </div>
293 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->