Lines 76-86
Link Here
|
76 |
if ( $(this).is(':checked') ) { |
76 |
if ( $(this).is(':checked') ) { |
77 |
$(container).addClass("selected"); |
77 |
$(container).addClass("selected"); |
78 |
$(container).removeClass("unselected"); |
78 |
$(container).removeClass("unselected"); |
79 |
$(container).find("ol").toggle(); |
79 |
$(container).find("ol").toggle(true); |
80 |
} else { |
80 |
} else { |
81 |
$(container).addClass("unselected"); |
81 |
$(container).addClass("unselected"); |
82 |
$(container).removeClass("selected"); |
82 |
$(container).removeClass("selected"); |
83 |
$(container).find("ol").toggle(); |
83 |
$(container).find("ol").toggle(false); |
84 |
} |
84 |
} |
85 |
} ); |
85 |
} ); |
86 |
|
86 |
|
Lines 118-129
Link Here
|
118 |
|
118 |
|
119 |
return disableUnchecked($(this)); |
119 |
return disableUnchecked($(this)); |
120 |
}); |
120 |
}); |
|
|
121 |
$('#tabs').tabs(); |
121 |
}); |
122 |
}); |
122 |
|
123 |
|
123 |
function disableUnchecked(form){ |
124 |
function disableUnchecked(form){ |
124 |
$("div.biblio.unselected").each(function(){ |
125 |
$("div.biblio.unselected").each(function(){ |
125 |
$(this).find('select').attr('disabled', 'disabled'); |
126 |
$(this).remove(); |
126 |
$(this).find('input').attr('disabled', 'disabled'); |
|
|
127 |
}); |
127 |
}); |
128 |
return 1; |
128 |
return 1; |
129 |
} |
129 |
} |
Lines 142-152
Link Here
|
142 |
<h1>Add orders from [% comments %] |
142 |
<h1>Add orders from [% comments %] |
143 |
([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %]) |
143 |
([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %]) |
144 |
</h1> |
144 |
</h1> |
145 |
<div> |
145 |
<form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform"> |
|
|
146 |
<div id="tabs" class="toptabs"> |
147 |
<ul> |
148 |
<li><a href="#records_to_import">Select to import</a></li> |
149 |
<li><a href="#items_info" class="items_info">Items information</a></li> |
150 |
<li><a href="#accounting_details">Default accounting details</a></li> |
151 |
</ul> |
152 |
|
146 |
<div id="records_to_import"> |
153 |
<div id="records_to_import"> |
147 |
<span class="checkall"><a id="checkAll" href="#">Check All</a></span> |
154 |
<span class="checkall"><a id="checkAll" href="#">Check All</a></span> |
148 |
<span class="uncheckall"><a id="unCheckAll" href="#">Uncheck All</a></span> |
155 |
<span class="uncheckall"><a id="unCheckAll" href="#">Uncheck All</a></span> |
149 |
<form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform"> |
|
|
150 |
<input type="hidden" name="op" value="import_records"/> |
156 |
<input type="hidden" name="op" value="import_records"/> |
151 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
157 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
152 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
158 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
Lines 158-164
Link Here
|
158 |
[% END %] |
164 |
[% END %] |
159 |
|
165 |
|
160 |
[% FOREACH biblio IN biblio_list %] |
166 |
[% FOREACH biblio IN biblio_list %] |
161 |
<fieldset class="biblio unselected rows"> |
167 |
<fieldset class="biblio unselected rows" style="float:none;"> |
162 |
<legend> |
168 |
<legend> |
163 |
<label for="record_[% biblio.import_record_id %]" style="width:auto;"> |
169 |
<label for="record_[% biblio.import_record_id %]" style="width:auto;"> |
164 |
<input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" /> |
170 |
<input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" /> |
Lines 222-233
Link Here
|
222 |
</fieldset> |
228 |
</fieldset> |
223 |
[% END %] |
229 |
[% END %] |
224 |
</div> |
230 |
</div> |
225 |
<div id="import_all"> |
231 |
<div id="items_info"> |
226 |
<h2>Import all</h2> |
232 |
<h2>Items information</h2> |
227 |
<p>Import all the lines in the basket with the following parameters:</p> |
233 |
<p>Import all the checked items in the basket with the following parameters:</p> |
228 |
|
234 |
|
229 |
[% IF ( items ) %] |
235 |
[% IF ( items ) %] |
230 |
<fieldset class="rows"> |
236 |
<fieldset class="rows" style="float:none;"> |
231 |
<legend>Item</legend> |
237 |
<legend>Item</legend> |
232 |
[% IF ( NoACQframework ) %] |
238 |
[% IF ( NoACQframework ) %] |
233 |
<div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div> |
239 |
<div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div> |
Lines 259-266
Link Here
|
259 |
[% END %] <!-- /items --> |
265 |
[% END %] <!-- /items --> |
260 |
</fieldset> |
266 |
</fieldset> |
261 |
[% END %] <!-- items --> |
267 |
[% END %] <!-- items --> |
262 |
|
268 |
</div> |
263 |
<fieldset class="rows"> |
269 |
<div id="accounting_details"> |
|
|
270 |
<fieldset class="rows" style="float:none;"> |
264 |
<legend>Accounting details</legend> |
271 |
<legend>Accounting details</legend> |
265 |
<ol> |
272 |
<ol> |
266 |
<li> |
273 |
<li> |
Lines 339-349
Link Here
|
339 |
</li> |
346 |
</li> |
340 |
</ol> |
347 |
</ol> |
341 |
</fieldset> |
348 |
</fieldset> |
342 |
<fieldset class="action"> |
349 |
</div> |
343 |
<input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a> |
350 |
</div> |
344 |
</fieldset> |
|
|
345 |
|
351 |
|
346 |
</div> |
352 |
<fieldset class="action"> |
|
|
353 |
<input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a> |
354 |
</fieldset> |
347 |
</form> |
355 |
</form> |
348 |
[% ELSE %] |
356 |
[% ELSE %] |
349 |
<div> |
357 |
<div> |