Lines 29-45
Link Here
|
29 |
<h1>Enter a new purchase suggestion</h1> |
29 |
<h1>Enter a new purchase suggestion</h1> |
30 |
|
30 |
|
31 |
<p>Please fill out this form to make a purchase suggestion. You will receive an email when the library processes your suggestion</p> |
31 |
<p>Please fill out this form to make a purchase suggestion. You will receive an email when the library processes your suggestion</p> |
32 |
[% IF (mandatoryfields) %] |
|
|
33 |
<p>Form fields labeled in red are mandatory. The more information you enter the easier it will be for the librarians to find the title you're requesting. |
32 |
<p>Form fields labeled in red are mandatory. The more information you enter the easier it will be for the librarians to find the title you're requesting. |
34 |
[% ELSE %] |
|
|
35 |
<p>Only the title is required, but the more information you enter the easier it will be for the librarians to find the title you're requesting. |
36 |
[% END %] |
37 |
The "Notes" field can be used to provide any additional information.</p> |
33 |
The "Notes" field can be used to provide any additional information.</p> |
38 |
|
34 |
|
39 |
<form action="/cgi-bin/koha/opac-suggestions.pl" id="newsuggestionform" onsubmit="return Check(this);" method="post"> |
35 |
<form action="/cgi-bin/koha/opac-suggestions.pl" id="newsuggestionform" onsubmit="return Check(this);" method="post"> |
40 |
<fieldset class="rows"> |
36 |
<fieldset class="rows"> |
41 |
<ol> |
37 |
<ol> |
42 |
<li><label class="required" for="title">Title:</label><input type="text" id="title" name="title" class="span6" maxlength="255" /></li> |
38 |
<li><label for="title">Title:</label><input type="text" id="title" name="title" class="span6" maxlength="255" /></li> |
43 |
<li><label for="author">Author:</label><input type="text" id="author" name="author" class="span6" maxlength="80" /></li> |
39 |
<li><label for="author">Author:</label><input type="text" id="author" name="author" class="span6" maxlength="80" /></li> |
44 |
<li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></li> |
40 |
<li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></li> |
45 |
<li><label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /></li> |
41 |
<li><label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /></li> |
Lines 322-351
Link Here
|
322 |
[% END %] |
318 |
[% END %] |
323 |
}); |
319 |
}); |
324 |
|
320 |
|
325 |
function Check(f) { |
|
|
326 |
var _alertString=""; |
327 |
var alertString2; |
328 |
|
329 |
var FieldsRequired = [[% mandatoryfields %]]; |
330 |
FieldsRequired.unshift("title"); |
331 |
|
332 |
for (var i = 0; i < FieldsRequired.length; i++) { |
333 |
var lbl = FieldsRequired[i]; |
334 |
if (!f[lbl] || (f[lbl].value.length != 0)) continue; |
335 |
_alertString += _("- Some mandatory fields are missing") + "\n"; |
336 |
break; |
337 |
} |
338 |
|
339 |
if (_alertString.length == 0) { |
340 |
return true; |
341 |
} else { |
342 |
alertString2 = _("Form not submitted because of the following problem(s)"); |
343 |
alertString2 += "\n------------------------------------------------------------------------------------\n\n"; |
344 |
alertString2 += _alertString; |
345 |
alert(alertString2); |
346 |
return false; |
347 |
} |
348 |
} |
349 |
//]]> |
321 |
//]]> |
350 |
</script> |
322 |
</script> |
351 |
[% END %] |
323 |
[% END %] |