Lines 14-19
Link Here
|
14 |
actTotal = ""; |
14 |
actTotal = ""; |
15 |
|
15 |
|
16 |
function Check(ff) { |
16 |
function Check(ff) { |
|
|
17 |
|
17 |
[% IF (AcqCreateItemOrdering) %] |
18 |
[% IF (AcqCreateItemOrdering) %] |
18 |
// Remove last itemblock if it is not in items_list |
19 |
// Remove last itemblock if it is not in items_list |
19 |
var lastitemblock = $("#outeritemblock > div:last"); |
20 |
var lastitemblock = $("#outeritemblock > div:last"); |
Lines 34-44
function Check(ff) {
Link Here
|
34 |
|
35 |
|
35 |
_alertString +="-------------------------------------------------------------------\n\n"; |
36 |
_alertString +="-------------------------------------------------------------------\n\n"; |
36 |
|
37 |
|
37 |
if ( isNull(ff.title,1) && isNull(ff.entertitle,1) ){ |
|
|
38 |
ok=1; |
39 |
_alertString += "\n- " + _("Title cannot be empty"); |
40 |
} |
41 |
|
42 |
if(isNull(ff.budget_id,1)){ |
38 |
if(isNull(ff.budget_id,1)){ |
43 |
ok=1; |
39 |
ok=1; |
44 |
_alertString += "\n- "+ _("You must select a fund"); |
40 |
_alertString += "\n- "+ _("You must select a fund"); |
Lines 260-266
$(document).ready(function()
Link Here
|
260 |
</div> |
256 |
</div> |
261 |
[% END %] |
257 |
[% END %] |
262 |
|
258 |
|
263 |
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform" onsubmit="return Check(this);"> |
259 |
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" > |
264 |
|
260 |
|
265 |
<fieldset class="rows"> |
261 |
<fieldset class="rows"> |
266 |
<legend>Patrons</legend> |
262 |
<legend>Patrons</legend> |
Lines 313-320
$(document).ready(function()
Link Here
|
313 |
<span class="label">Title</span> |
309 |
<span class="label">Title</span> |
314 |
<input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span> |
310 |
<input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span> |
315 |
[% ELSE %] |
311 |
[% ELSE %] |
316 |
<label for="entertitle" class="required">Title: </label> |
312 |
<label for="entertitle">Title: </label> |
317 |
<input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" /> |
313 |
<input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" /> |
318 |
<span class="required">Required</span> |
314 |
<span class="required">Required</span> |
319 |
[% END %] |
315 |
[% END %] |
320 |
</li> |
316 |
</li> |
Lines 708-727
$(document).ready(function()
Link Here
|
708 |
[% INCLUDE 'intranet-bottom.inc' %] |
704 |
[% INCLUDE 'intranet-bottom.inc' %] |
709 |
|
705 |
|
710 |
[% BLOCK display_subfield %] |
706 |
[% BLOCK display_subfield %] |
711 |
[% IF field.mandatory %] |
707 |
<label>[% field.lib %] ([% field.tag %][% field.subfield %])</label> |
712 |
<label class="required">[% field.lib %] ([% field.tag %][% field.subfield %])</label> |
|
|
713 |
[% ELSE %] |
714 |
<label>[% field.lib %] ([% field.tag %][% field.subfield %])</label> |
715 |
[% END %] |
716 |
[% IF field.authorised_value %] |
708 |
[% IF field.authorised_value %] |
717 |
[% SWITCH field.authorised_value %] |
709 |
[% SWITCH field.authorised_value %] |
718 |
[% CASE 'branches' %] |
710 |
[% CASE 'branches' %] |
|
|
711 |
[% IF field.mandatory %] |
712 |
<select name="bib_field_value" required="required"> |
713 |
[% ELSE %] |
719 |
<select name="bib_field_value"> |
714 |
<select name="bib_field_value"> |
|
|
715 |
[% END %] |
720 |
<option value=""></option> |
716 |
<option value=""></option> |
721 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %] |
717 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %] |
722 |
</select> |
718 |
</select> |
723 |
[% CASE 'itemtypes' %] |
719 |
[% CASE 'itemtypes' %] |
|
|
720 |
[% IF field.mandatory %] |
721 |
<select name="bib_field_value" required="required"> |
722 |
[% ELSE %] |
724 |
<select name="bib_field_value"> |
723 |
<select name="bib_field_value"> |
|
|
724 |
[% END %] |
725 |
<option value=""></option> |
725 |
<option value=""></option> |
726 |
[% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %] |
726 |
[% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %] |
727 |
</select> |
727 |
</select> |
Lines 730-736
$(document).ready(function()
Link Here
|
730 |
[% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %] |
730 |
[% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %] |
731 |
[% END %] |
731 |
[% END %] |
732 |
[% ELSE %] |
732 |
[% ELSE %] |
733 |
<input type="text" name="bib_field_value" value="[% field.value %]" /> |
733 |
[% IF field.mandatory %] |
|
|
734 |
<input type="text" name="bib_field_value" value="[% field.value %]" required="required"/> |
735 |
[% ELSE %] |
736 |
<input type="text" name="bib_field_value" value="[% field.value %]"/> |
737 |
[% END %] |
738 |
|
734 |
[% END %] |
739 |
[% END %] |
735 |
<input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" /> |
740 |
<input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" /> |
736 |
<input type="hidden" name="bib_tag" value="[% field.tag %]" /> |
741 |
<input type="hidden" name="bib_tag" value="[% field.tag %]" /> |
737 |
- |
|
|