suggestions changes (probably useless)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / suggestion / suggestiondetails.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
94 <body>
95
96 <!-- TMPL_INCLUDE NAME="header.inc" -->
97 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->  
98
99
100 <!-- ################################################################################# -->
101 <!-- BREADCRUMBS -->
102 <!-- ################################################################################# -->
103
104
105 <div id="breadcrumbs">
106
107     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
108     <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
109     <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Suggestions Management (GPD)</a> &rsaquo;
110     suggestion details
111
112 </div>
113
114
115 <!--<div id="doc3" class="yui-t2">
116 <div id="bd">
117 <div id="yui-main">
118 <div class="yui-b">-->
119 <!-- TMPL_INCLUDE NAME="acquisitions-toolbar.inc" -->
120
121
122
123
124 <!-- ###################################################################### -->
125 <!-- ###################################################################### -->
126 <!-- display the suggestion details -->
127 <!-- ###################################################################### -->
128 <!-- ###################################################################### -->
129
130     <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
131
132     <h1>Suggestion details (General Purchase Department)</h1>
133     <br/><br/>
134
135
136
137 <!-- TMPL_IF NAME="step2ormore" -->
138
139 <!-- ###################################################################### -->
140 <!-- The user cannot edit the fields -->
141 <!-- ###################################################################### -->
142 <!-- ###################################################################### -->
143
144     <ol>
145         <li>
146             <h2>Document</h2>
147         </li>
148         <li>
149             <label for="title">Title :</label>&nbsp;<!-- TMPL_VAR name="title" -->
150         </li>
151         <li>
152             <label for="author">Author:</label>&nbsp;<!-- TMPL_VAR name="author" -->
153         </li>
154         <li>
155             <label for="copyrightdate">Copyright date:</label>&nbsp;<!-- TMPL_VAR name="copyrightdate" -->
156         </li>
157         <li>
158             <label for="isbn">ISBN : </label>&nbsp;<!-- TMPL_VAR name="isbn" -->
159         </li>
160         <li>
161             <label for="rrp">unit price : </label>&nbsp;<!-- TMPL_VAR name="rrp" -->
162         </li>
163         <li>
164             <label for="publishercode">Publisher:</label>&nbsp;<!-- TMPL_VAR name="publishercode" -->
165         </li>
166         <li>
167             <label for="seriestitle">Series:</label>&nbsp;<!-- TMPL_VAR name="seriestitle" -->
168         </li>
169         <li>
170             <label for="note">Notes:</label>&nbsp;<!-- TMPL_VAR name="note" -->
171         </li>
172
173         <li>
174             <label for="itemtype">Item type :</label>&nbsp;<!-- TMPL_VAR NAME="itemtypedescription" -->
175         </li>
176
177         <li>
178             <h2>Branch, book fund group, book fund, audience</h2>
179         </li>
180
181 <!-- ############################################################# -->
182 <!-- 'Branch, book fund group, book fund, audience'        -->
183 <!-- ############################################################# -->
184
185         <li>
186             <label for="branch_loop">Branch :</label>&nbsp;<!-- TMPL_VAR NAME="branchname" -->
187         </li>
188
189         <li>
190             <label for="bookfundgroup_loop">book fund group :</label>&nbsp;<!-- TMPL_VAR NAME="bookfundgroupname"-->
191         </li>
192
193         <li>
194             <label for="bookfund_loop">book fund :</label>&nbsp;<!-- TMPL_VAR NAME="bookfundname"-->
195         </li>
196
197         <li>
198             <label for="audience_loop">audience :</label>&nbsp;<!-- TMPL_VAR NAME="audiencename"-->
199         </li>
200
201         <li>
202             <h2>Suggestion management</h2>
203         </li>
204
205 <!-- ############################################################# -->
206 <!-- suggestion management        -->
207 <!-- ############################################################# -->
208
209         <li>
210
211             <table>
212                 <tr>
213                     <th>Action</th>
214                     <th>Author</th>
215                     <th>Date</th>
216                     <th>Status</th>
217                     <th>Reason</th>
218                 </tr>
219
220                 <tr>
221                     <td>suggestion made by</td>
222                     <td>
223                         <!-- TMPL_VAR name="surnamesuggestedby" -->
224                         <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
225                         <!-- TMPL_VAR name="firstnamesuggestedby" -->
226                     </td>
227                     <td><!-- TMPL_VAR name="suggestioncreatedon" --></td>
228                     <td> - - - - - </td>
229                     <td> - - - - - </td>
230                 </tr>
231
232
233                 <tr>
234                     <td>suggestion managed by (GPD)</td>
235                     <td>
236                         <!-- TMPL_VAR name="surnamemanagedingpdby" -->
237                         <!-- TMPL_IF name="firstnamemanagedingpdby" -->,<!-- /TMPL_IF -->
238                         <!-- TMPL_VAR name="firstnamemanagedingpdby" -->
239                     </td>
240                     <td><!-- TMPL_VAR name="suggestionmanagedingpdon" --></td>
241
242                     <td>
243                         <!-- TMPL_IF name="rejected2" -->
244                             REJECTED
245                         <!-- TMPL_ELSE -->
246                             ACCEPTED
247                         <!-- /TMPL_IF -->
248                     </td>
249
250                     <td>
251                         <!-- TMPL_IF name="rejected2" -->
252                                 <!-- TMPL_VAR NAME="reason" -->
253                         <!-- TMPL_ELSE -->
254                                  - - - - - 
255                         <!-- /TMPL_IF -->
256                     </td>
257
258                 </tr>
259
260                 <!-- "suggestion managed by (PD) " -->
261                 <!-- ################################################### -->
262
263                 <tr>
264                     <td>suggestion managed by (PD)</td>
265
266                     <!-- TMPL_IF name="rejected2" -->
267                     <td> - - - - - </td>
268                     <td> - - - - - </td>
269                     <td> - - - - - </td>
270                     <td> - - - - - </td>
271
272                     <!-- TMPL_ELSE -->
273
274                         <!-- TMPL_IF name="accepted2" -->
275                         <td></td>
276                         <td></td>
277                         <td></td>
278                         <td></td>
279     
280                         <!-- TMPL_ELSE -->
281                         <td>
282                             <!-- TMPL_VAR name="surnamemanagedinpdby" -->
283                             <!-- TMPL_IF name="firstnamemanagedinpdby" -->,<!-- /TMPL_IF -->
284                             <!-- TMPL_VAR name="firstnamemanagedinpdby" -->
285                         </td>
286                         <td><!-- TMPL_VAR name="suggestionmanagedinpdon" --></td>
287                         <td><!-- TMPL_VAR NAME="status" --></td>
288                         <td><!-- TMPL_VAR NAME="reason" --></td>
289     
290                         <!-- /TMPL_IF -->
291
292                     <!-- /TMPL_IF -->
293                 </tr>
294         </li>
295
296     </ol>
297
298
299
300 <!-- TMPL_ELSE -->
301
302 <!-- ###################################################################### -->
303 <!-- ## the user can edit the fields (step=1) -->
304 <!-- ###################################################################### -->
305 <!-- ###################################################################### -->
306
307
308 <!-- ###################################################################### -->
309 <!-- description of the item -->
310 <!-- ###################################################################### -->
311
312
313     <form action="/cgi-bin/koha/suggestion/suggestiondetails.pl" method="post">
314
315         <input type="hidden" name="ordernumber" value=<!-- TMPL_VAR name="ordernumber" --> />
316
317         <fieldset class="rows">
318             <ol>
319                 <li>
320                     <h2>Document</h2>
321                 </li>
322                 <li>
323                     <label for="title">Title: *</label>
324                     <input type="text" id="title" name="title" size="50" maxlentgh="80" value="<!-- TMPL_VAR name="title" -->"/>
325                 </li>
326                 <li>
327                     <label for="author">Author: *</label>
328                     <input type="text" id="author" name="author" size="50" maxlength="80" value="<!-- TMPL_VAR name="author" -->" />
329                 </li>
330                 <li>
331                     <label for="copyrightdate">Copyright date: </label>
332                     <input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="<!-- TMPL_VAR name="copyrightdate" -->"/>
333                 </li>
334                 <li>
335                     <label for="isbn">ISBN: *</label>
336                     <input type="text" id="isbn" name="isbn" size="13" maxlength="13" value="<!-- TMPL_VAR name="isbn" -->"/>
337                 </li>
338                 <li>
339                     <label for="rrp">unit price: </label>
340                     <input type="text" id="rrp" name="rrp" size="15" maxlength="15" value="<!-- TMPL_VAR name="rrp" -->"/>
341                 </li>
342                 <li>
343                     <label for="publishercode">Publisher: *</label>
344                     <input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="<!-- TMPL_VAR name="publishercode" -->"/>
345                 </li>
346                 <li>
347                     <label for="seriestitle">Series:</label>
348                     <input type="text" id="seriestitle" name="seriestitle" size="50" maxlength="50" value="<!-- TMPL_VAR name="seriestitle" -->"/>
349                 </li>
350                 <li>
351                     <label for="note">Notes:</label>
352                     <textarea name="note" id="note" rows="5" cols="40" value="<!-- TMPL_VAR name="note" -->"><!-- TMPL_VAR name="note" --></textarea>
353                 </li>
354
355                 <li>
356                     <label for="itemtype">Item type: *</label>
357                     <select id="itemtype" name="itemtype">
358
359                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
360
361                             <!-- TMPL_IF NAME="selected" -->
362
363                                 <option value="<!-- TMPL_VAR NAME="itemtype" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option>
364
365                             <!-- TMPL_ELSE -->
366
367                                 <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
368
369                             <!-- /TMPL_IF -->
370
371                         <!-- /TMPL_LOOP -->
372                     </select>
373                 </li>
374
375
376                 <li>
377                     <h2>Branch, book fund group, book fund, audience</h2>
378                 </li>
379
380 <!-- ############################################################# -->
381 <!-- 'Branch, book fund group, book fund, audience'        -->
382 <!-- ############################################################# -->
383
384                 <li>
385                     <label for="branch_loop">Branch: *</label>
386                     <select id="branch_loop" name="branch_loop">
387                         <!-- TMPL_LOOP NAME="branch_loop" -->
388                             <!-- TMPL_IF NAME="selected" -->
389                                 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
390                             <!-- TMPL_ELSE -->
391                                 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
392                             <!-- /TMPL_IF -->
393                         <!-- /TMPL_LOOP -->
394                     </select>
395                 </li>
396
397                 <li>
398                     <label for="bookfundgroup_loop">book fund group: *</label>
399                     <select name="bookfundgroup_loop">
400                         <option value="">choose a book fund group</option>
401
402                         <!-- TMPL_LOOP NAME="bookfundgroup_loop" -->
403
404                             <!-- TMPL_IF NAME="selected" -->
405                                 <option value="<!-- TMPL_VAR name="bookfundgroupnumber" -->" selected="selected"><!-- TMPL_VAR NAME="bookfundgroupname"--></option>
406
407                             <!-- TMPL_ELSE -->
408                                 <option value="<!-- TMPL_VAR name="bookfundgroupnumber" -->" ><!-- TMPL_VAR NAME="bookfundgroupname"--></option>
409
410                             <!-- /TMPL_IF -->
411
412                         <!-- /TMPL_LOOP -->
413                     </select>
414                 </li>
415
416                 <li>
417                     <label for="bookfund_loop">book fund :</label>
418                     <select name="bookfund_loop">
419
420                         <!-- TMPL_IF NAME="chooseabookfund" -->
421                         <option value"">choose a book fund</option>
422                         <!-- TMPL_ELSE -->
423                         <option value"">please 1st specify a book fund group</option>
424                         <!-- /TMPL_IF -->
425
426                         <!-- TMPL_LOOP NAME="bookfund_loop" -->
427
428                             <!-- TMPL_IF NAME="selected" -->
429                                 <option value="<!-- TMPL_VAR name="bookfundnumber" -->" selected="selected"><!-- TMPL_VAR NAME="bookfundname"--></option>
430
431                             <!-- TMPL_ELSE -->
432                                 <option value="<!-- TMPL_VAR name="bookfundnumber" -->" ><!-- TMPL_VAR NAME="bookfundname"--></option>
433
434                             <!-- /TMPL_IF -->
435                         <!-- /TMPL_LOOP -->
436                     </select>
437                 </li>
438
439                 <li>
440                     <label for="audience_loop">audience :</label>
441                     <select name="audience_loop">
442
443                         <!-- TMPL_IF NAME="chooseanaudience" -->
444                             <option value"">choose an audience</option>
445                         <!-- TMPL_ELSE -->
446                             <option value"">please 1st specify a book fund group</option>
447                         <!-- /TMPL_IF -->
448
449                         <!-- TMPL_LOOP NAME="audience_loop" -->
450
451                             <!-- TMPL_IF NAME="selected" -->
452                                 <option value="<!-- TMPL_VAR name="audiencenumber" -->" selected="selected"><!-- TMPL_VAR NAME="audiencename"--></option>
453
454                             <!-- TMPL_ELSE -->
455                                 <option value="<!-- TMPL_VAR name="audiencenumber" -->" ><!-- TMPL_VAR NAME="audiencename"--></option>
456
457                             <!-- /TMPL_IF -->
458                         <!-- /TMPL_LOOP -->
459                     </select>
460
461                 </li>
462
463
464                 <li>
465                     <h2>Suggestion management</h2>
466                 </li>
467
468 <!-- ############################################################# -->
469 <!-- suggestion management         -->
470 <!-- ############################################################# -->
471
472                 <li>
473
474                     <table>
475                         <tr>
476                             <th>Action</th>
477                             <th>Author</th>
478                             <th>Date</th>
479                             <th>Status</th>
480                             <th>Reason</th>
481                         </tr>
482
483                         <tr>
484                             <td>suggestion made by</td>
485                             <td>
486                                 <!-- TMPL_VAR name="surnamesuggestedby" -->
487                                 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
488                                 <!-- TMPL_VAR name="firstnamesuggestedby" -->
489                             </td>
490                             <td><!-- TMPL_VAR name="suggestioncreatedon" --></td>
491                             <td> - - - - - </td>
492                             <td> - - - - - </td>
493                         </tr>
494
495
496                         <tr>
497                             <td>suggestion managed by (GPD)</td>
498                             <td></td>
499                             <td></td>
500                             <td>
501                                 <select name="aorr">
502                                     <option value=""> -- Choose Action -- </option>
503                                     <option value="REJECTED" <!-- TMPL_IF name="rejected1" -->selected="selected"<!-- /TMPL_IF -->>Reject</option>
504                                     <option value="ACCEPTED" <!-- TMPL_IF name="accepted1" -->selected="selected"<!-- /TMPL_IF -->>Accept</option>
505                                 </select>
506                             </td>
507
508                             <td>
509
510                                 <span id="span-select-reason<!-- TMPL_VAR NAME="ordernumber" -->" class="content_visible">
511
512
513                                     <!-- TMPL_IF NAME="reasons_loop" -->
514                                         <select name="reason" onchange="displayOther('<!-- TMPL_VAR NAME="ordernumber" -->');">
515                                             <option value=""> -- Choose a reason -- </option>
516
517                                             <!-- TMPL_LOOP NAME="reasons_loop" -->
518
519                                                 <option value="<!-- TMPL_VAR NAME="lib" -->" <!-- TMPL_IF name="selected" -->selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="lib" --></option>
520
521                                             <!-- /TMPL_LOOP -->
522
523                                             <option value="other" <!-- TMPL_IF name="selected" -->selected="selected"<!-- /TMPL_IF -->>Others...</option>
524
525                                         </select>
526
527                                     <!-- TMPL_ELSE -->
528                                         <span class="problem">No reasons defined in <a href="/cgi-bin/koha/admin/authorised_values.pl">authorised values</a></span>
529                                     <!-- /TMPL_IF -->
530
531                                     </span>
532
533                                     <span id="span-other-reason<!-- TMPL_VAR NAME="ordernumber" -->" class="content_hidden">
534
535                                         <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=''}" />
536
537                                         <small><a href="#" onclick="displayOther('<!-- TMPL_VAR NAME="ordernumber" -->'); return false;">back to list</a></small>
538
539                                     </span>
540
541                             </td>
542
543                         </tr>
544
545                         <tr>
546                             <td>suggestion managed by (PD)</td>
547                             <td></td>
548                             <td></td>
549                             <td></td>
550                             <td></td>
551                         </tr>
552
553                 </li>
554
555             </ol>
556
557         </fieldset>
558
559         <fieldset class="action">
560             <input type="hidden" name="op" value="add_confirm" />
561             <input type="submit" value="Submit Your Suggestion" />
562             <a class="action" href="/cgi-bin/koha/suggestion/acceptorreject.pl">Cancel</a>
563         </fieldset>
564
565     </form>
566
567 <!-- /TMPL_IF -->
568
569     <br><br>
570     <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Suggestions Management</a>
571
572
573 <!--</div>
574 </div>-->
575 <div class="yui-b">
576 <!--<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->-->
577 <!--</div>
578 </div>-->
579 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
580 </div>