Lines 29-47
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 |
<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. The "Notes" field can be used to provide any additional information.</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. |
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 |
|
38 |
|
34 |
<form action="/cgi-bin/koha/opac-suggestions.pl" method="post"> |
39 |
<form action="/cgi-bin/koha/opac-suggestions.pl" method="post"> |
35 |
<fieldset class="rows"> |
40 |
<fieldset class="rows"> |
36 |
<ol> |
41 |
<ol> |
37 |
<li><label class="required" for="title">Title:</label><input type="text" id="title" name="title" maxlength="255" /></li> |
42 |
<li><label class="required" for="title">Title:</label><input type="text" id="title" name="title" maxlength="255" /></li> |
38 |
<li><label for="author">Author:</label><input type="text" id="author" name="author" maxlength="80" /></li> |
43 |
<li><label [% IF (mandatoryfields.author) %]class="required" [% END %]for="author">Author:</label><input type="text" id="author" name="author" maxlength="80" /></li> |
39 |
<li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></li> |
44 |
<li><label [% IF (mandatoryfields.copyrightdate) %]class="required" [% END %]for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></li> |
40 |
<li><label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /></li> |
45 |
<li><label [% IF (mandatoryfields.isbn) %]class="required" [% END %]for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /></li> |
41 |
<li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" maxlength="80" /></li> |
46 |
<li><label [% IF (mandatoryfields.publishercode) %]class="required" [% END %]for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" maxlength="80" /></li> |
42 |
<li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" maxlength="80" /></li> |
47 |
<li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" maxlength="80" /></li> |
43 |
<li><label for="place">Publication place:</label><input type="text" id="place" name="place" maxlength="80" /></li> |
48 |
<li><label [% IF (mandatoryfields.place) %]class="required" [% END %]for="place">Publication place:</label><input type="text" id="place" name="place" maxlength="80" /></li> |
44 |
<li><label for="itemtype">Item type:</label> |
49 |
<li><label [% IF (mandatoryfields.itemtype) %]class="required" [% END %]for="itemtype">Item type:</label> |
45 |
<select name="itemtype" id="itemtype"> |
50 |
<select name="itemtype" id="itemtype"> |
46 |
<option value="">Default</option> |
51 |
<option value="">Default</option> |
47 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
52 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
Lines 70-76
Link Here
|
70 |
[% END %] |
75 |
[% END %] |
71 |
[% IF ( patron_reason_loop ) %] |
76 |
[% IF ( patron_reason_loop ) %] |
72 |
<li> |
77 |
<li> |
73 |
<label for="patronreason">Reason for suggestion: </label> |
78 |
<label [% IF (mandatoryfields.patronreason) %]class="required" [% END %]for="patronreason">Reason for suggestion: </label> |
74 |
<select name="patronreason" id="patronreason"> |
79 |
<select name="patronreason" id="patronreason"> |
75 |
<option value="">-- Choose --</option> |
80 |
<option value="">-- Choose --</option> |
76 |
[% FOREACH patron_reason_loo IN patron_reason_loop %] |
81 |
[% FOREACH patron_reason_loo IN patron_reason_loop %] |
Lines 313-318
Link Here
|
313 |
if(f.title.value.length ==0){ |
318 |
if(f.title.value.length ==0){ |
314 |
_alertString += _("- You must enter a Title") + "\n"; |
319 |
_alertString += _("- You must enter a Title") + "\n"; |
315 |
} |
320 |
} |
|
|
321 |
[% IF (mandatoryfields.author) %]if (f.author.value.length == 0){ |
322 |
_alertString += _("- You must enter an Author") + "\n"; |
323 |
}[% END %] |
324 |
[% IF (mandatoryfields.copyrightdate) %]if (f.copyrightdate.value.length == 0){ |
325 |
_alertString += _("- You must enter a Copyright date") + "\n"; |
326 |
}[% END %] |
327 |
[% IF (mandatoryfields.isbn) %]if (f.isbn.value.length == 0){ |
328 |
_alertString += _("- You must enter a Standard number (ISBN, ISSN or other)") + "\n"; |
329 |
}[% END %] |
330 |
[% IF (mandatoryfields.publishercode) %]if (f.publishercode.value.length == 0){ |
331 |
_alertString += _("- You must enter a Publisher") + "\n"; |
332 |
}[% END %] |
333 |
[% IF (mandatoryfields.place) %]if (f.place.value.length == 0){ |
334 |
_alertString += _("- You must enter a Publication place") + "\n"; |
335 |
}[% END %] |
336 |
[% IF (mandatoryfields.itemtype) %]if (f.itemtype.value.length == 0){ |
337 |
_alertString += _("- You must choose an Item type") + "\n"; |
338 |
}[% END %] |
339 |
[% IF (patron_reason_loop && mandatoryfields.patronreason) %]if (f.patronreason.value.length == 0){ |
340 |
_alertString += _("- You must choose a Reason for suggestion") + "\n"; |
341 |
}[% END %] |
316 |
|
342 |
|
317 |
if (_alertString.length==0) { |
343 |
if (_alertString.length==0) { |
318 |
f.submit(); |
344 |
f.submit(); |