Lines 10-21
Link Here
|
10 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
10 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% INCLUDE 'datatables.inc' %] |
12 |
[% INCLUDE 'datatables.inc' %] |
|
|
13 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
13 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
14 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
14 |
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> |
|
|
15 |
<script type="text/JavaScript"> |
15 |
<script type="text/JavaScript"> |
16 |
//<![CDATA[ |
16 |
//<![CDATA[ |
17 |
$(document).ready(function() { |
17 |
$(document).ready(function() { |
18 |
$("#files,#recordst").dataTable($.extend(true, {}, dataTablesDefaults, { |
18 |
$("#files").dataTable($.extend(true, {}, dataTablesDefaults, { |
19 |
"aoColumnDefs": [ |
19 |
"aoColumnDefs": [ |
20 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
20 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
21 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
21 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
Lines 25-42
Link Here
|
25 |
"aaSorting": [] |
25 |
"aaSorting": [] |
26 |
} ) ); |
26 |
} ) ); |
27 |
|
27 |
|
28 |
$("form#Aform").submit(function() { |
28 |
$("select[name='budget_id']").change(function(){ |
29 |
var total_errors = CheckMandatorySubfields(this); |
29 |
var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat'); |
30 |
if (total_errors > 0) { |
30 |
var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat'); |
31 |
var alertString = _("Form not submitted because of the following problem(s)"); |
31 |
var destination_sort1 = $(this).siblings('span.sort1').find('input[name="sort1"]'); |
32 |
alertString += "\n------------------------------------------------------------------------------------\n"; |
32 |
var sort1 = $(destination_sort1).val(); |
33 |
alertString += "\n- " + _("%s mandatory fields empty (highlighted)").format(total_errors); |
33 |
if ( destination_sort1.length < 1 ) { |
34 |
alert(alertString); |
34 |
destination_sort1 = $(this).siblings('span.sort1').find('select[name="sort1"]'); |
35 |
return false; |
|
|
36 |
} |
35 |
} |
37 |
return true; |
36 |
var destination_sort2 = $(this).siblings('span.sort2').find('input[name="sort2"]'); |
|
|
37 |
var sort2 = $(destination_sort2).val(); |
38 |
if ( destination_sort2.length < 1 ) { |
39 |
destination_sort2 = $(this).siblings('span.sort2').find('select[name="sort2"]'); |
40 |
} |
41 |
getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 ); |
42 |
|
43 |
getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 ); |
44 |
} ); |
45 |
|
46 |
$("select[name='budget_id']").change(); |
47 |
|
48 |
$("select[name='all_budget_id']").change(function(){ |
49 |
var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat'); |
50 |
var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat'); |
51 |
var destination_sort1 = $(this).parent().siblings('li').find('input[name="all_sort1"]'); |
52 |
if ( destination_sort1.length < 1 ) { |
53 |
destination_sort1 = $(this).parent().siblings('li').find('select[name="all_sort1"]'); |
54 |
} |
55 |
var destination_sort2 = $(this).parent().siblings('li').find('input[name="all_sort2"]'); |
56 |
if ( destination_sort2.length < 1 ) { |
57 |
destination_sort2 = $(this).parent().siblings('li').find('select[name="all_sort2"]'); |
58 |
} |
59 |
getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1 ); |
60 |
getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2 ); |
61 |
$(this).parent().siblings('li').find('select[name="sort1"]').attr('name', 'all_sort1'); |
62 |
$(this).parent().siblings('li').find('input[name="sort1"]').attr('name', 'all_sort1'); |
63 |
$(this).parent().siblings('li').find('select[name="sort2"]').attr('name', 'all_sort2'); |
64 |
$(this).parent().siblings('li').find('input[name="sort2"]').attr('name', 'all_sort2'); |
65 |
} ); |
66 |
|
67 |
$('input:checkbox[name="import_record_id"]').change(function(){ |
68 |
if ( $(this).is(':checked') ) { |
69 |
$(this).parent().addClass("selected"); |
70 |
$(this).parent().removeClass("unselected"); |
71 |
} else { |
72 |
$(this).parent().addClass("unselected"); |
73 |
$(this).parent().removeClass("selected"); |
74 |
} |
75 |
} ); |
76 |
|
77 |
$("input:checkbox").attr("checked", false); |
78 |
$("div.biblio.unselected select").attr("disabled", false); |
79 |
$("div.biblio.unselected input").attr("disabled", false); |
80 |
|
81 |
$("#checkAll").click(function(){ |
82 |
$("#Aform").checkCheckboxes(); |
83 |
$("input:checkbox[name='import_record_id']").change(); |
84 |
return false; |
85 |
}); |
86 |
$("#unCheckAll").click(function(){ |
87 |
$("#Aform").unCheckCheckboxes(); |
88 |
$("input:checkbox[name='import_record_id']").change(); |
89 |
return false; |
38 |
}); |
90 |
}); |
|
|
91 |
|
39 |
}); |
92 |
}); |
|
|
93 |
|
94 |
function disableUnchecked(form){ |
95 |
$("div.biblio.unselected").each(function(){ |
96 |
$(this).find('select').attr('disabled', 'disabled'); |
97 |
$(this).find('input').attr('disabled', 'disabled'); |
98 |
}); |
99 |
form.submit(); |
100 |
} |
40 |
//]]> |
101 |
//]]> |
41 |
</script> |
102 |
</script> |
42 |
</head> |
103 |
</head> |
Lines 49-75
Link Here
|
49 |
<div id="yui-main"> |
110 |
<div id="yui-main"> |
50 |
<div class="yui-b"> |
111 |
<div class="yui-b"> |
51 |
[% IF ( batch_details ) %] |
112 |
[% IF ( batch_details ) %] |
52 |
<h1>Add orders from [% comments %] |
113 |
<h1>Add orders from [% comments %] |
53 |
([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %]) |
114 |
([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %]) |
54 |
</h1> |
115 |
</h1> |
55 |
<div> |
116 |
<div> |
56 |
<form action="[% scriptname %]" method="post" name="import_biblios"> |
117 |
<span class="checkall"><a id="checkAll" href="#">Check All</a></span> |
57 |
<table id="recordst"> |
118 |
<span class="uncheckall"><a id="unCheckAll" href="#">Uncheck All</a></span> |
58 |
<thead> |
119 |
<form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform" onsubmit="disableUnchecked(this); return false;"> |
59 |
<tr> |
120 |
<input type="hidden" name="op" value="import_records"/> |
60 |
<th class="anti-the">Citation</th> |
121 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
61 |
<th>Match?</th> |
122 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
62 |
<th>Order</th> |
123 |
<input type="hidden" name="import_batch_id" value="[%import_batch_id %]" /> |
63 |
</tr> |
124 |
<input type="hidden" name="ordernumber" value="[% ordernumber %]" /> |
64 |
</thead> |
125 |
|
65 |
<tbody> |
126 |
[% FOREACH cur IN loop_currencies %] |
66 |
[% FOREACH biblio_lis IN biblio_list %] |
127 |
<input type="hidden" name="[% cur.currency %]" value="[% cur.rate %]" /> |
67 |
<tr> |
128 |
[% END %] |
68 |
<td> |
|
|
69 |
[% biblio_lis.citation %] |
70 |
|
129 |
|
71 |
</td> |
130 |
[% FOREACH biblio IN biblio_list %] |
72 |
<td> |
131 |
<div class="biblio unselected" style="border-radius: 5px 5px; -moz-border-radius: 5px; padding: 5px; margin:5px; border-style : solid; border-color : grey; border-width:1px;"> |
|
|
132 |
<input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" /> |
133 |
<input type="hidden" value="[% biblio.rrp %]" name="rrp" /> |
134 |
<label for="record_[% biblio.import_record_id %]"><span class="citation" style="font-weight:bold;">[% biblio.citation %]</span></label> |
135 |
<span class="match" style="display:block;"> |
73 |
[% IF ( biblio_lis.overlay_status == 'no_match' ) %] |
136 |
[% IF ( biblio_lis.overlay_status == 'no_match' ) %] |
74 |
No match |
137 |
No match |
75 |
[% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] |
138 |
[% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] |
Lines 79-290
Link Here
|
79 |
[% ELSE %] |
142 |
[% ELSE %] |
80 |
[% biblio_lis.overlay_status %] |
143 |
[% biblio_lis.overlay_status %] |
81 |
[% END %] |
144 |
[% END %] |
82 |
</td> |
145 |
</span> |
83 |
<td><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]&breedingid=[% biblio_lis.import_record_id %]&import_batch_id=[% biblio_lis.import_batch_id %]&biblionumber=[% biblio_lis.match_biblionumber %]">Add order</a></td> |
146 |
[% IF ( biblio.match_biblionumber ) %] |
84 |
</tr> |
147 |
Matches biblio [% biblio.match_biblionumber %] (score = [% biblio.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber %]">[% biblio.match_citation %]</a> |
85 |
[% IF ( biblio_lis.match_biblionumber ) %] |
148 |
[% END %] |
86 |
<tr> |
149 |
<span class="quantity" style="display:block;"> |
87 |
<td class="highlight" colspan="3"> Matches biblio [% biblio_lis.match_biblionumber %] (score = [% biblio_lis.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio_lis.match_biblionumber %]">[% biblio_lis.match_citation %]</a></td> |
150 |
Quantity: <input type="text" value="[% biblio.quantity %]" name="quantity" /> |
88 |
</tr> |
151 |
</span> |
89 |
[% END %] |
152 |
<span class="price" style="display:block;"> |
90 |
[% END %] |
153 |
Price: <input type="text" value="[% biblio.price %]" name="price" /> |
91 |
</tbody> |
154 |
</span> |
92 |
</table> |
155 |
<span class="discount" style="display:block;"> |
93 |
</form> |
156 |
Discount: <input type="text" value="[% biblio.discount %]" name="discount" /> |
94 |
</div> |
157 |
</span> |
95 |
[% IF ( pages ) %] |
158 |
<span class="budget" style="display:block;"> |
96 |
<div class="pages"> |
159 |
[% IF ( close ) %] |
97 |
Page |
160 |
<span class="label">Budget: </span> |
98 |
[% FOREACH page IN pages %] |
161 |
<input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %] |
99 |
[% IF ( page.current_page ) %] |
|
|
100 |
<span class="current">[% page.page_number %]</span> |
101 |
[% ELSE %] |
102 |
<a class="nav" href="[% page.script_name %]?import_batch_id=[% page.import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a> |
103 |
[% END %] |
104 |
[% END %] |
105 |
[% END %] |
106 |
[% ELSE %] |
107 |
<div> |
108 |
<h1>Choose the file to add to the basket</h1> |
109 |
<table id="files"> |
110 |
<thead> |
111 |
<tr> |
112 |
<th>File name</th> |
113 |
<th>Comments</th> |
114 |
<th>Status</th> |
115 |
<th class="title-string">Staged</th> |
116 |
<th># Bibs</th> |
117 |
<th class="NoSort"> </th> |
118 |
</tr> |
119 |
</thead> |
120 |
<tbody> |
121 |
[% FOREACH batch_lis IN batch_list %] |
122 |
<tr> |
123 |
<td>[% batch_lis.file_name %]</td> |
124 |
<td>[% batch_lis.comments %]</td> |
125 |
<td> |
126 |
[% IF ( batch_lis.import_status == 'cleaned' ) %] |
127 |
Cleaned |
128 |
[% ELSIF ( batch_lis.import_status == 'imported' ) %] |
129 |
Imported |
130 |
[% ELSIF ( batch_lis.import_status == 'importing' ) %] |
131 |
Importing |
132 |
[% ELSIF ( batch_lis.import_status == 'reverted' ) %] |
133 |
Reverted |
134 |
[% ELSIF ( batch_lis.import_status == 'reverting' ) %] |
135 |
Reverting |
136 |
[% ELSIF ( batch_lis.import_status == 'staged' ) %] |
137 |
Staged |
138 |
[% ELSE %] |
139 |
[% batch_lis.import_status %] |
140 |
[% END %] |
141 |
</td> |
142 |
<td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td> |
143 |
<td>[% batch_lis.num_biblios %]</td> |
144 |
<td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">Add orders</a></td> |
145 |
</tr> |
146 |
[% END %] |
147 |
</tbody> |
148 |
</table> |
149 |
</div> |
150 |
[% END %] |
151 |
</div> |
152 |
[% IF ( import_batch_id ) %] |
153 |
<div class="yui-b"> |
154 |
<h2>Import all</h2> |
155 |
<p>Import all the lines in the basket with the following parameters:</p> |
156 |
<form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform"> |
157 |
<input type="hidden" name="op" value="import_records"/> |
158 |
<input type="hidden" name="ordernumber" value="[% ordernumber %]" /> |
159 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
160 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
161 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id %]" /> |
162 |
|
163 |
[% FOREACH loop_currencie IN loop_currencies %] |
164 |
<input type="hidden" name="[% loop_currencie.currency %]" value="[% loop_currencie.rate %]" /> |
165 |
[% END %] |
166 |
|
167 |
[% IF ( items ) %] |
168 |
<fieldset class="rows"> |
169 |
<legend>Item</legend> |
170 |
[% IF ( NoACQframework ) %] |
171 |
<div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div> |
172 |
[% END %] |
173 |
|
174 |
[% FOREACH item IN items %] |
175 |
<div id="outeritemblock"> |
176 |
<div id="itemblock"> |
177 |
<ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];"> |
178 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]"> |
179 |
[% IF (iteminformatio.mandatory) %] |
180 |
<label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
181 |
[% ELSE %] |
162 |
[% ELSE %] |
182 |
<label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
163 |
<label for="budget_id">Budget: </label> |
|
|
164 |
<select size="1" name="budget_id"> |
165 |
<option value=""></option> |
166 |
[% FOREACH budget IN budget_loop %] |
167 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
168 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option> |
169 |
[% ELSE %] |
170 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
171 |
[% END %] |
172 |
[% END %] |
173 |
</select> |
183 |
[% END %] |
174 |
[% END %] |
184 |
[% iteminformatio.marc_value %] |
175 |
<span class="sort1"> |
185 |
<input type="hidden" name="itemid" value="1" /> |
176 |
<label for="sort1">Planning value1: </label> |
186 |
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" /> |
177 |
<input type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" /> |
187 |
<input type="hidden" name="tag" value="[% iteminformatio.tag %]" /> |
178 |
</span> |
188 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
179 |
<span class="sort2"> |
189 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
180 |
<label for="sort2">Planning value2: </label> |
190 |
[% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] |
181 |
<input type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" /> |
191 |
</div></li> |
182 |
</span> |
|
|
183 |
</span> |
184 |
</div> |
192 |
[% END %] |
185 |
[% END %] |
193 |
</ol> |
186 |
<div> |
194 |
</div><!-- /iteminformation --> |
187 |
<h2>Import all</h2> |
195 |
</div> |
188 |
<p>Import all the lines in the basket with the following parameters:</p> |
196 |
|
189 |
|
197 |
[% END %] <!-- /items --> |
190 |
[% IF ( items ) %] |
198 |
</fieldset> |
191 |
<fieldset class="rows"> |
199 |
[% END %] <!-- items --> |
192 |
<legend>Item</legend> |
200 |
<fieldset class="rows"> |
193 |
[% IF ( NoACQframework ) %] |
201 |
<legend>Accounting details</legend> |
194 |
<div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div> |
202 |
<ol> |
|
|
203 |
<li> |
204 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order --> |
205 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
206 |
</li> |
207 |
<li> |
208 |
[% IF ( close ) %] |
209 |
<span class="label">Budget: </span> |
210 |
<input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
211 |
[% ELSE %] |
212 |
<li> |
213 |
<label for="currency">Currency:</label> |
214 |
<select name="currency" id="currency"> |
215 |
[% FOREACH loop_currencie IN loop_currencies %] |
216 |
[% IF ( loop_currencie.selected ) %]<option value="[% loop_currencie.currcode %]" selected="selected">[% loop_currencie.currcode %]</option>[% ELSE %]<option value="[% loop_currencie.currcode %]">[% loop_currencie.currcode %]</option>[% END %][% END %] |
217 |
</select> |
218 |
</li> |
219 |
<li> |
220 |
<label for="budget_id">Budget: </label> |
221 |
<select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id"> |
222 |
[% FOREACH budget_loo IN budget_loop %] |
223 |
[% IF ( budget_loo.b_sel ) %] |
224 |
<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> |
225 |
[% ELSE %] |
226 |
<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> |
227 |
[% END %] |
228 |
[% END %] |
229 |
</select> |
230 |
</li> |
231 |
[% END %] |
195 |
[% END %] |
232 |
</li> |
196 |
[% FOREACH item IN items %] |
233 |
<li> |
197 |
<div id="outeritemblock"> |
234 |
<label for="order_internalnote">Internal note: </label> |
198 |
<div id="itemblock"> |
235 |
<textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote"></textarea> |
199 |
<ol> |
236 |
</li> |
200 |
[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];"> |
237 |
<li> |
201 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]"> |
238 |
<label for="order_vendornote">Vendor note: </label> |
202 |
[% IF (iteminformatio.mandatory) %] |
239 |
<textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote"></textarea> |
203 |
<label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
240 |
</li> |
204 |
[% ELSE %] |
241 |
<li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
205 |
<label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
242 |
<label for="sort1">Planning value1: </label> |
206 |
[% END %] |
243 |
<span id="sort1_zone"> |
207 |
|
244 |
[% IF CGIsort1 %] |
208 |
[% iteminformatio.marc_value %] |
245 |
<select id="sort1" size="1" name="sort1"> |
209 |
<input type="hidden" name="itemid" value="1" /> |
246 |
[% FOREACH sort_opt IN CGIsort1 %] |
210 |
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" /> |
247 |
[% IF sort_opt.default %] |
211 |
<input type="hidden" name="tag" value="[% iteminformatio.tag %]" /> |
248 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
212 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
|
|
213 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
214 |
[% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] |
215 |
</div></li> |
216 |
[% END %] |
217 |
</ol> |
218 |
</div><!-- /iteminformation --> |
219 |
</div> |
220 |
[% END %] <!-- /items --> |
221 |
</fieldset> |
222 |
[% END %] <!-- items --> |
223 |
|
224 |
<fieldset class="rows"> |
225 |
<legend>Accounting details</legend> |
226 |
<ol> |
227 |
<li> |
228 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order --> |
229 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
230 |
</li> |
231 |
<li> |
232 |
[% IF ( close ) %] |
233 |
<span class="label">Budget: </span> |
234 |
<input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
249 |
[% ELSE %] |
235 |
[% ELSE %] |
250 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
236 |
<li> |
|
|
237 |
<label for="all_currency">Currency:</label> |
238 |
<select name="all_currency" id="all_currency"> |
239 |
[% FOREACH loop_currencie IN loop_currencies %] |
240 |
[% IF ( loop_currencie.selected ) %] |
241 |
<option value="[% loop_currencie.currcode %]" selected="selected">[% loop_currencie.currcode %]</option> |
242 |
[% ELSE %] |
243 |
<option value="[% loop_currencie.currcode %]">[% loop_currencie.currcode %]</option> |
244 |
[% END %] |
245 |
[% END %] |
246 |
</select> |
247 |
</li> |
248 |
<li> |
249 |
<label for="all_budget_id">Budget: </label> |
250 |
<select id="all_budget_id" size="1" name="all_budget_id"> |
251 |
[% FOREACH budget_loo IN budget_loop %] |
252 |
[% IF ( budget_loo.b_sel ) %] |
253 |
<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]" selected="selected">[% budget_loo.b_txt %]</option> |
254 |
[% ELSE %] |
255 |
<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
256 |
[% END %] |
257 |
[% END %] |
258 |
</select> |
259 |
</li> |
251 |
[% END %] |
260 |
[% END %] |
252 |
[% END %] |
261 |
</li> |
253 |
</select> |
262 |
<li> |
254 |
[% ELSE %] |
263 |
<label for="all_order_internalnote">Internal note: </label> |
255 |
<input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" /> |
264 |
<textarea id="all_order_internalnote" cols="30" rows="3" name="all_order_internalnote"></textarea> |
256 |
[% END %] |
265 |
</li> |
257 |
</span> |
266 |
<li> |
258 |
</li> |
267 |
<label for="all_order_vendornote">Vendor note: </label> |
259 |
<li> |
268 |
<textarea id="all_order_vendornote" cols="30" rows="3" name="all_order_vendornote"></textarea> |
260 |
<label for="sort2">Planning value2: </label> |
269 |
</li> |
261 |
<span id="sort2_zone"> |
270 |
<li> |
262 |
[% IF CGIsort2 %] |
271 |
<div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
263 |
<select id="sort2" size="1" name="sort1"> |
272 |
<label for="sort1">Planning value1: </label> |
264 |
[% FOREACH sort_opt IN CGIsort2 %] |
273 |
[% IF CGIsort1 %] |
265 |
[% IF sort_opt.default %] |
274 |
<select id="all_sort1" size="1" name="all_sort1"> |
266 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
275 |
[% FOREACH sort_opt IN CGIsort1 %] |
|
|
276 |
[% IF sort_opt.default %] |
277 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
278 |
[% ELSE %] |
279 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
280 |
[% END %] |
281 |
[% END %] |
282 |
</select> |
267 |
[% ELSE %] |
283 |
[% ELSE %] |
268 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
284 |
<input type="text" id="all_sort1" size="20" name="all_sort1" value="[% sort1 %]" /> |
269 |
[% END %] |
285 |
[% END %] |
270 |
[% END %] |
286 |
</li> |
271 |
</select> |
287 |
<li> |
272 |
[% ELSE %] |
288 |
<span id="sort2_zone"> |
273 |
<input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" /> |
289 |
<label for="sort2">Planning value2: </label> |
274 |
[% END %] |
290 |
[% IF CGIsort2 %] |
275 |
</span> |
291 |
<select id="all_sort2" size="1" name="all_sort1"> |
276 |
</li> |
292 |
[% FOREACH sort_opt IN CGIsort2 %] |
277 |
<li> |
293 |
[% IF sort_opt.default %] |
278 |
|
294 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
279 |
</li> |
295 |
[% ELSE %] |
280 |
</ol> |
296 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
281 |
</fieldset> |
297 |
[% END %] |
282 |
<fieldset class="action"> |
298 |
[% END %] |
283 |
<input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a> |
299 |
</select> |
284 |
</fieldset> |
300 |
[% ELSE %] |
285 |
</form> |
301 |
<input type="text" id="all_sort2" size="20" name="all_sort2" value="[% sort2 %]" /> |
286 |
</div> |
302 |
[% END %] |
287 |
[% END %] |
303 |
</span> |
|
|
304 |
</li> |
305 |
</ol> |
306 |
</fieldset> |
307 |
<fieldset class="action"> |
308 |
<input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a> |
309 |
</fieldset> |
310 |
|
311 |
</div> |
312 |
</form> |
313 |
[% ELSE %] |
314 |
<div> |
315 |
<h1>Choose the file to add to the basket</h1> |
316 |
<table id="files"> |
317 |
<thead> |
318 |
<tr> |
319 |
<th>File name</th> |
320 |
<th>Comments</th> |
321 |
<th>Status</th> |
322 |
<th class="title-string">Staged</th> |
323 |
<th># Bibs</th> |
324 |
<th class="NoSort"> </th> |
325 |
</tr> |
326 |
</thead> |
327 |
<tbody> |
328 |
[% FOREACH batch_lis IN batch_list %] |
329 |
<tr> |
330 |
<td>[% batch_lis.file_name %]</td> |
331 |
<td>[% batch_lis.comments %]</td> |
332 |
<td> |
333 |
[% IF ( batch_lis.import_status == 'cleaned' ) %] |
334 |
Cleaned |
335 |
[% ELSIF ( batch_lis.import_status == 'imported' ) %] |
336 |
Imported |
337 |
[% ELSIF ( batch_lis.import_status == 'importing' ) %] |
338 |
Importing |
339 |
[% ELSIF ( batch_lis.import_status == 'reverted' ) %] |
340 |
Reverted |
341 |
[% ELSIF ( batch_lis.import_status == 'reverting' ) %] |
342 |
Reverting |
343 |
[% ELSIF ( batch_lis.import_status == 'staged' ) %] |
344 |
Staged |
345 |
[% ELSE %] |
346 |
[% batch_lis.import_status %] |
347 |
[% END %] |
348 |
</td> |
349 |
<td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td> |
350 |
<td>[% batch_lis.num_biblios %]</td> |
351 |
<td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">Add orders</a></td> |
352 |
</tr> |
353 |
[% END %] |
354 |
</tbody> |
355 |
</table> |
356 |
</div> |
357 |
[% END %] |
358 |
</div> |
288 |
</div> |
359 |
</div> |
289 |
</div> |
360 |
</div> |
290 |
</div> |
361 |
</div> |