Lines 63-70
if (ok) {
Link Here
|
63 |
ff.submit(); |
63 |
ff.submit(); |
64 |
|
64 |
|
65 |
} |
65 |
} |
66 |
|
66 |
$(document).ready(function() |
67 |
|
67 |
{ |
|
|
68 |
//We apply the fonction only for modify option |
69 |
<!--TMPL_IF NAME="quantityrec"--> |
70 |
$('#quantity').blur(function() |
71 |
{ |
72 |
// if user decreases the quantity |
73 |
if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) |
74 |
{ |
75 |
alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"); |
76 |
return true; |
77 |
} |
78 |
else |
79 |
{ |
80 |
// if user increases the quantity |
81 |
alert("You can't add a new item, please create a new order line"); |
82 |
// and we replace the original value |
83 |
$(this).val(<!-- TMPL_VAR name="quantityrec" -->) |
84 |
return false; |
85 |
} |
86 |
}); |
87 |
<!-- /TMPL_IF --> |
88 |
}); |
68 |
//]]> |
89 |
//]]> |
69 |
</script> |
90 |
</script> |
70 |
</head> |
91 |
</head> |
Lines 83-89
ff.submit();
Link Here
|
83 |
|
104 |
|
84 |
<h2> |
105 |
<h2> |
85 |
<!-- TMPL_IF name="ordernumber" --> |
106 |
<!-- TMPL_IF name="ordernumber" --> |
86 |
Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->) |
107 |
Modify order line |
87 |
<!-- TMPL_ELSE --> |
108 |
<!-- TMPL_ELSE --> |
88 |
New order |
109 |
New order |
89 |
<!-- /TMPL_IF --> |
110 |
<!-- /TMPL_IF --> |
Lines 161-166
ff.submit();
Link Here
|
161 |
<label for="entertitle" class="required">Title: </label> |
182 |
<label for="entertitle" class="required">Title: </label> |
162 |
<input type="text" id="entertitle" size="50" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="html" -->" /> |
183 |
<input type="text" id="entertitle" size="50" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="html" -->" /> |
163 |
<!-- /TMPL_IF --> |
184 |
<!-- /TMPL_IF --> |
|
|
185 |
|
186 |
<span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!--TMPL_VAR NAME= "biblionumber"-->">Edit Catalog</a></span> |
164 |
</li> |
187 |
</li> |
165 |
<li> |
188 |
<li> |
166 |
<!-- TMPL_IF name="biblionumber" --> |
189 |
<!-- TMPL_IF name="biblionumber" --> |
Lines 361-370
ff.submit();
Link Here
|
361 |
</li> |
384 |
</li> |
362 |
<li> |
385 |
<li> |
363 |
<label for="notes">Notes: </label> |
386 |
<label for="notes">Notes: </label> |
364 |
<textarea id="notes" cols="30" rows="3" name="notes"><!-- TMPL_VAR NAME="notes" --></textarea> |
387 |
<textarea id="notes" cols="30" rows="3" name="notes"></textarea> |
365 |
</li> |
388 |
</li> |
366 |
<li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
389 |
<li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
367 |
<label for="sort1">Planning value1: </label> |
390 |
<label for="sort1">Statistic 1: </label> |
368 |
|
391 |
|
369 |
<!-- TMPL_IF Name="CGIsort1" --> |
392 |
<!-- TMPL_IF Name="CGIsort1" --> |
370 |
<!-- TMPL_VAR Name="CGIsort1" --> |
393 |
<!-- TMPL_VAR Name="CGIsort1" --> |
Lines 374-380
ff.submit();
Link Here
|
374 |
<!--/TMPL_IF --> |
397 |
<!--/TMPL_IF --> |
375 |
</li> |
398 |
</li> |
376 |
<li> |
399 |
<li> |
377 |
<label for="sort2">Planning value2: </label> |
400 |
<label for="sort2">Statistic 2: </label> |
378 |
|
401 |
|
379 |
<!-- TMPL_IF Name="CGIsort2" --> |
402 |
<!-- TMPL_IF Name="CGIsort2" --> |
380 |
<!-- TMPL_VAR Name="CGIsort2" --> |
403 |
<!-- TMPL_VAR Name="CGIsort2" --> |
381 |
- |
|
|