suggestions changes (probably useless)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / suggestion / suggestiondetailspd.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
3
4 <title>
5
6     Koha &rsaquo; Acquisitions &rsaquo; Suggestion management &rsaquo; Suggestion details
7
8 </title>
9
10
11 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
12
13
14 <script type="text/javascript">
15 // ################################################################################# 
16 // Javascript
17 // #################################################################################
18
19     function isNotNull(f,noalert) {
20             if (f.value.length ==0) {
21                     return false;
22             }
23             return true;
24     }
25
26
27     function toUC(f) {
28             var x=f.value.toUpperCase();
29             f.value=x;
30             return true;
31     }
32
33
34     function isNum(v,maybenull) {
35     var n = new Number(v.value);
36     if (isNaN(n)) {
37             return false;
38             }
39     if (maybenull==0 && v.value=='') {
40             return false;
41     }
42     return true;
43     }
44
45
46     function isDate(f) {
47             var t = Date.parse(f.value);
48             if (isNaN(t)) {
49                     return false;
50             }
51     }
52
53
54     function Check(f) {
55             var ok=1;
56             var _alertString="";
57             var alertString2;
58
59             if (!(isNotNull(window.document.Aform.budgetperiodstartdate,1))) {
60                     _alertString += "\n- " + _("budget period start date missing");
61             }
62
63             if (!(isNotNull(window.document.Aform.budgetperiodenddate,1))) {
64                     _alertString += "\n- " + _("budget period end date missing");
65             }
66
67             if (!(isNotNull(window.document.Aform.budgetperiodref,1))) {
68                     _alertString += "\n- " + _("reference period indicator missing");
69             }
70
71             if (!(isNotNull(window.document.Aform.budgetperioddescription,1))) {
72                     _alertString += "\n- " + _("Description missing");
73             }
74
75             if (_alertString.length==0) {
76                     document.Aform.submit();
77             } else {
78                     alertString2  = _("Form not submitted because of the following problem(s)");
79                     alertString2 += "\n------------------------------------------------------------------------------------\n";
80                     alertString2 += _alertString;
81                     alert(alertString2);
82             }
83     }
84
85 </script>
86
87 </head>
88
89 <!-- ################################################################################# -->
90 <!-- BODY -->
91 <!-- ################################################################################# -->
92
93 <body>
94
95 <!-- TMPL_INCLUDE NAME="header.inc" -->
96 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->  
97
98
99 <!-- ################################################################################# -->
100 <!-- BREADCRUMBS -->
101 <!-- ################################################################################# -->
102
103
104 <div id="breadcrumbs">
105
106     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
107     <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
108     <a href="/cgi-bin/koha/suggestion/acceptorrejectpd.pl?bookfundgroupnumber=<!-- TMPL_VAR name="bookfundgroupnumber" -->">Suggestions Management (PD)</a> &rsaquo;
109     suggestion details
110
111
112 <!-- ################################################################################# -->
113 <!-- (fin) BREADCRUMBS  -->
114 <!-- ################################################################################# -->
115
116 </div>
117
118
119 <!--<div id="doc3" class="yui-t2">
120 <div id="bd">
121 <div id="yui-main">
122 <div class="yui-b">-->
123
124 <!--</div>-->
125
126
127 <!-- ###################################################################### -->
128 <!-- ###################################################################### -->
129 <!-- unique screen -->
130 <!-- ###################################################################### -->
131 <!-- ###################################################################### -->
132
133
134     <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
135
136     <h1>Suggestion details (Purchase Department)</h1>
137     <br/><br/>
138
139
140 <!-- TMPL_IF NAME="step3ormore" -->
141
142 <!-- ######################################################################## -->
143 <!-- The user cannot edit the fields (step > = 3) -->
144 <!-- ######################################################################## -->
145 <!-- ######################################################################## -->
146
147
148     <ol>
149         <li>
150             <h2>Document</h2>
151         </li>
152         <li>
153             <label for="title">Title :</label>&nbsp;<!-- TMPL_VAR name="title" -->
154         </li>
155         <li>
156             <label for="author">Author:</label>&nbsp;<!-- TMPL_VAR name="author" -->
157         </li>
158         <li>
159             <label for="copyrightdate">Copyright date:</label>&nbsp;<!-- TMPL_VAR name="copyrightdate" -->
160         </li>
161         <li>
162             <label for="isbn">ISBN : </label>&nbsp;<!-- TMPL_VAR name="isbn" -->
163         </li>
164         <li>
165             <label for="rrp">unit price : </label>&nbsp;<!-- TMPL_VAR name="rrp" -->
166         </li>
167         <li>
168             <label for="publishercode">Publisher:</label>&nbsp;<!-- TMPL_VAR name="publishercode" -->
169         </li>
170         <li>
171             <label for="seriestitle">Series:</label>&nbsp;<!-- TMPL_VAR name="seriestitle" -->
172         </li>
173         <li>
174             <label for="note">Notes:</label>&nbsp;<!-- TMPL_VAR name="note" -->
175         </li>
176
177         <li>
178             <label for="itemtype">Item type :</label>&nbsp;<!-- TMPL_VAR NAME="itemtypedescription" -->
179         </li>
180
181         <li>
182             <h2>Branch, book fund group, book fund, audience</h2>
183         </li>
184
185 <!-- ############################################################# -->
186 <!-- 'Branch, book fund group, book fund, audience'        -->
187 <!-- ############################################################# -->
188
189         <li>
190             <label for="branch_loop">Branch :</label>&nbsp;<!-- TMPL_VAR NAME="branchname" -->
191         </li>
192
193         <li>
194             <label>book fund group :</label>&nbsp;<!-- TMPL_VAR NAME="bookfundgroupname"-->
195         </li>
196
197         <li>
198             <label for="bookfund_loop">book fund :</label>&nbsp;<!-- TMPL_VAR NAME="bookfundname"-->
199         </li>
200
201         <li>
202             <label for="audience_loop">audience :</label>&nbsp;<!-- TMPL_VAR NAME="audiencename"-->
203         </li>
204
205         <li>
206             <h2>Suggestion management</h2>
207         </li>
208
209 <!-- ############################################################# -->
210 <!-- suggestion management         -->
211 <!-- ############################################################# -->
212
213         <li>
214
215             <table>
216                 <tr>
217                     <th>Action</th>
218                     <th>Author</th>
219                     <th>Date</th>
220                     <th>Status</th>
221                     <th>Reason</th>
222                 </tr>
223
224                 <tr>
225                     <td>suggestion made by</td>
226                     <td>
227                         <!-- TMPL_VAR name="surnamesuggestedby" -->
228                         <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
229                         <!-- TMPL_VAR name="firstnamesuggestedby" -->
230                     </td>
231                     <td><!-- TMPL_VAR name="suggestioncreatedon" --></td>
232                     <td> - - - - - </td>
233                     <td> - - - - - </td>
234                 </tr>
235
236
237                 <tr>
238                     <td>suggestion managed by (GPD)</td>
239                     <td>
240                         <!-- TMPL_VAR name="surnamemanagedingpdby" -->
241                         <!-- TMPL_IF name="firstnamemanagedingpdby" -->,<!-- /TMPL_IF -->
242                         <!-- TMPL_VAR name="firstnamemanagedingpdby" -->
243                     </td>
244                     <td><!-- TMPL_VAR name="suggestionmanagedingpdon" --></td>
245
246                     <td>
247                         ACCEPTED
248                     </td>
249
250                     <td>
251                             - - - - -
252                     </td>
253
254                 </tr>
255
256
257                 <tr>
258                     <td>suggestion managed by (PD)</td>
259                     <td>
260                         <!-- TMPL_VAR name="surnamemanagedinpdby" -->
261                         <!-- TMPL_IF name="firstnamemanagedinpdby" -->,<!-- /TMPL_IF -->
262                         <!-- TMPL_VAR name="firstnamemanagedinpdby" -->
263                     </td>
264                     <td><!-- TMPL_VAR name="suggestionmanagedinpdon" --></td>
265                     <td><!-- TMPL_VAR NAME="status" --></td>
266                     <td><!-- TMPL_IF name="rejected3" --><!-- TMPL_VAR NAME="reason" --><!-- TMPL_ELSE -->- - - - -<!-- /TMPL_IF --></td>
267                 </tr>
268
269             </table>
270
271         </li>
272
273     </ol>
274
275 <!-- TMPL_ELSE -->
276
277 <!-- ###################################################################### -->
278 <!-- ## The user can edit the fields (step=2) -->
279 <!-- ###################################################################### -->
280 <!-- ###################################################################### -->
281
282
283 <!-- ######################################################################## -->
284 <!-- description of the document     -->
285 <!-- ######################################################################## -->
286
287     <form action="/cgi-bin/koha/suggestion/suggestiondetailspd.pl" method="post">
288
289         <input type="hidden" name="ordernumber" value="<!-- TMPL_VAR name="ordernumber" -->" />
290
291         <input type="hidden" name="bookfundgroupnumber" value="<!-- TMPL_VAR name="bookfundgroupnumber" -->"/>
292
293         <input type="hidden" name="bookfundgroup_loop" value="<!-- TMPL_VAR name="bookfundgroup_loop" -->"/>
294
295         <fieldset class="rows">
296
297             <ol>
298                 <li>
299                     <h2>Document</h2>
300                 </li>
301                 <li>
302                     <label for="title">Title: *</label>
303                     <input type="text" id="title" name="title" size="50" maxlentgh="80" value="<!-- TMPL_VAR name="title" -->"/>
304                 </li>
305                 <li>
306                     <label for="author">Author: *</label>
307                     <input type="text" id="author" name="author" size="50" maxlength="80" value="<!-- TMPL_VAR name="author" -->" />
308                 </li>
309                 <li>
310                     <label for="copyrightdate">Copyright date: </label>
311                     <input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="<!-- TMPL_VAR name="copyrightdate" -->"/>
312                 </li>
313                 <li>
314                     <label for="isbn">ISBN: *</label>
315                     <input type="text" id="isbn" name="isbn" size="13" maxlength="13" value="<!-- TMPL_VAR name="isbn" -->"/>
316                 </li>
317                 <li>
318                     <label for="rrp">unit price: </label>
319                     <input type="text" id="rrp" name="rrp" size="15" maxlength="15" value="<!-- TMPL_VAR name="rrp" -->"/>
320                 </li>
321                 <li>
322                     <label for="publishercode">Publisher: *</label>
323                     <input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="<!-- TMPL_VAR name="publishercode" -->"/>
324                 </li>
325                 <li>
326                     <label for="seriestitle">Series:</label>
327                     <input type="text" id="seriestitle" name="seriestitle" size="50" maxlength="50" value="<!-- TMPL_VAR name="seriestitle" -->"/>
328                 </li>
329                 <li>
330                     <label for="note">Notes:</label>
331                     <textarea name="note" id="note" rows="5" cols="40" value="<!-- TMPL_VAR name="note" -->"><!-- TMPL_VAR name="note" --></textarea>
332                 </li>
333
334                 <li>
335                     <label for="itemtype">Item type: *</label>
336                     <select id="itemtype" name="itemtype">
337
338                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
339
340                             <!-- TMPL_IF NAME="selected" -->
341
342                                 <option value="<!-- TMPL_VAR NAME="itemtype" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option>
343
344                             <!-- TMPL_ELSE -->
345
346                                 <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
347
348                             <!-- /TMPL_IF -->
349
350                         <!-- /TMPL_LOOP -->
351                     </select>
352                 </li>
353
354                 <li>
355                     <h2>Branch, book fund group, book fund, audience</h2>
356                 </li>
357
358 <!-- ############################################################# -->
359 <!-- 'Branch, book fund group, book fund, audience'        -->
360 <!-- ############################################################# -->
361
362                 <li>
363                     <label for="branch_loop">Branch:</label>
364                     <select id="branch_loop" name="branch_loop">
365                         <!-- TMPL_LOOP NAME="branch_loop" -->
366                             <!-- TMPL_IF NAME="selected" -->
367                                 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
368                             <!-- TMPL_ELSE -->
369                                 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
370                             <!-- /TMPL_IF -->
371                         <!-- /TMPL_LOOP -->
372                     </select>
373                 </li>
374
375                 <li>
376                     <label>Book fund group:</label>
377                     <!-- TMPL_VAR NAME="bookfundgroupname"--></li>
378
379                 <li>
380                     <label for="bookfund_loop">book fund :</label>
381                     <select name="bookfund_loop">
382
383                         <!-- TMPL_IF NAME="chooseabookfund" -->
384                         <option value"">choose a book fund</option>
385                         <!-- TMPL_ELSE -->
386                         <option value"">please 1st specify a book fund group</option>
387                         <!-- /TMPL_IF -->
388
389                         <!-- TMPL_LOOP NAME="bookfund_loop" -->
390
391                             <!-- TMPL_IF NAME="selected" -->
392                                 <option value="<!-- TMPL_VAR name="bookfundnumber" -->" selected="selected"><!-- TMPL_VAR NAME="bookfundname"--></option>
393
394                             <!-- TMPL_ELSE -->
395                                 <option value="<!-- TMPL_VAR name="bookfundnumber" -->" ><!-- TMPL_VAR NAME="bookfundname"--></option>
396
397                             <!-- /TMPL_IF -->
398                         <!-- /TMPL_LOOP -->
399                     </select>
400                 </li>
401
402                 <li>
403                     <label for="audience_loop">audience:</label>
404                     <select name="audience_loop">
405
406                         <!-- TMPL_IF NAME="chooseanaudience" -->
407                             <option value"">choose an audience</option>
408                         <!-- TMPL_ELSE -->
409                             <option value"">please 1st specify a book fund group</option>
410                         <!-- /TMPL_IF -->
411
412                         <!-- TMPL_LOOP NAME="audience_loop" -->
413
414                             <!-- TMPL_IF NAME="selected" -->
415                                 <option value="<!-- TMPL_VAR name="audiencenumber" -->" selected="selected"><!-- TMPL_VAR NAME="audiencename"--></option>
416
417                             <!-- TMPL_ELSE -->
418                                 <option value="<!-- TMPL_VAR name="audiencenumber" -->" ><!-- TMPL_VAR NAME="audiencename"--></option>
419
420                             <!-- /TMPL_IF -->
421                         <!-- /TMPL_LOOP -->
422                     </select>
423
424                 </li>
425
426
427                 <li>
428                     <h2>Suggestion management</h2>
429                 </li>
430
431 <!-- ############################################################# -->
432 <!-- suggestion management        -->
433 <!-- ############################################################# -->
434
435                 <li>
436
437                     <table>
438                         <tr>
439                             <th>Action</th>
440                             <th>Author</th>
441                             <th>Date</th>
442                             <th>Status</th>
443                             <th>Reason</th>
444                         </tr>
445
446                         <tr>
447                             <td>suggestion made by</td>
448                             <td>
449                                 <!-- TMPL_VAR name="surnamesuggestedby" -->
450                                 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
451                                 <!-- TMPL_VAR name="firstnamesuggestedby" -->
452                             </td>
453                             <td><!-- TMPL_VAR name="suggestioncreatedon" --></td>
454                             <td> - - - - - </td>
455                             <td> - - - - - </td>
456                         </tr>
457
458
459                         <tr>
460                             <td>suggestion managed by (GPD)</td>
461                             <td>
462                                 <!-- TMPL_VAR name="surnamemanagedingpdby" -->
463                                 <!-- TMPL_IF name="firstnamemanagedingpdby" -->,<!-- /TMPL_IF -->
464                                 <!-- TMPL_VAR name="firstnamemanagedingpdby" -->
465                             </td>
466                             <td><!-- TMPL_VAR name="suggestionmanagedingpdon" --></td>
467
468                             <td>
469                                 ACCEPTED
470                             </td>
471
472                             <td>
473                                 - - - - -
474                             </td>
475
476                         </tr>
477
478                         <tr>
479                             <td>suggestion managed by (PD)</td>
480                             <td></td>
481                             <td></td>
482                             <td>
483                                 <select name="aorr">
484                                     <option value=""> -- Choose Action -- </option>
485                                     <option value="REJECTED">Reject</option>
486                                     <option value="ACCEPTED">Accept</option>
487                                 </select>
488                             </td>
489
490                             <td>
491                                 <span id="span-select-reason<!-- TMPL_VAR NAME="ordernumber" -->" class="content_visible">
492
493                                 <!-- TMPL_IF NAME="reasons_loop" -->
494                                     <select name="reason" onchange="displayOther('<!-- TMPL_VAR NAME="ordernumber" -->');">
495                                         <option value=""> -- Choose a reason -- </option>
496
497                                         <!-- TMPL_LOOP NAME="reasons_loop" -->
498
499                                             <option value="<!-- TMPL_VAR NAME="lib" -->" <!-- TMPL_IF name="selected" -->selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="lib" --></option>
500
501                                         <!-- /TMPL_LOOP -->
502
503                                         <option value="other" <!-- TMPL_IF name="selected" -->selected="selected"<!-- /TMPL_IF -->>Others...</option>
504
505                                     </select>
506
507                                 <!-- TMPL_ELSE -->
508                                     <span class="problem">No reasons defined in <a href="/cgi-bin/koha/admin/authorised_values.pl">authorised values</a></span>
509                                 <!-- /TMPL_IF -->
510
511                                 </span>
512
513                                 <span id="span-other-reason<!-- TMPL_VAR NAME="ordernumber" -->" class="content_hidden">
514
515                                     <input type="text" name="other-reason<!-- TMPL_VAR name="ordernumber" -->" value="please note your reason here..." onclick="if(this.value === 'please note your reason here...'){this.value=''}" />
516
517                                     <small><a href="#" onclick="displayOther('<!-- TMPL_VAR NAME="ordernumber" -->'); return false;">back to list</a></small>
518
519                                 </span>
520
521                             </td>
522
523                         </tr>
524                     </table>
525
526                 </li>
527
528             </ol>
529
530         </fieldset>
531
532         <fieldset class="action">
533             <input type="hidden" name="op" value="add_confirm" />
534             <input type="submit" value="Submit Your Suggestion" />
535             <a class="action" href="/cgi-bin/koha/suggestion/acceptorrejectpd.pl?bookfundgroupnumber=<!-- TMPL_VAR name="bookfundgroupnumber" -->">Cancel</a>
536         </fieldset>
537
538     </form>
539
540 <!-- /TMPL_IF -->       <!-- ## case : "step=2" (end) ## -->
541
542     <br><br>
543     <a href="/cgi-bin/koha/suggestion/acceptorrejectpd.pl?bookfundgroupnumber=<!-- TMPL_VAR name="bookfundgroupnumber" -->">Suggestions Management</a>
544
545 <!--</div>
546 </div>-->
547 <div class="yui-b">
548 <!-- <!-- TMPL_INCLUDE NAME="admin-menu.inc" --> -->
549 <!-- </div> -->
550 </div>
551 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->