Lines 10-17
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 |
[% IF (dateformat == 'metric') %] |
17 |
[% IF (dateformat == 'metric') %] |
Lines 29-46
Link Here
|
29 |
"aaSorting": [] |
29 |
"aaSorting": [] |
30 |
} ) ); |
30 |
} ) ); |
31 |
|
31 |
|
32 |
$("form#Aform").submit(function() { |
32 |
$("select[name='budget_id']").change(function(){ |
33 |
var total_errors = CheckMandatorySubfields(this); |
33 |
var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat'); |
34 |
if (total_errors > 0) { |
34 |
var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat'); |
35 |
var alertString = _("Form not submitted because of the following problem(s)"); |
35 |
var destination_sort1 = $(this).siblings('span.sort1').find('input[name="sort1"]'); |
36 |
alertString += "\n------------------------------------------------------------------------------------\n"; |
36 |
var sort1 = $(destination_sort1).val(); |
37 |
alertString += "\n- "+ total_errors + _(" mandatory fields empty (highlighted)"); |
37 |
if ( destination_sort1.length < 1 ) { |
38 |
alert(alertString); |
38 |
destination_sort1 = $(this).siblings('span.sort1').find('select[name="sort1"]'); |
39 |
return false; |
|
|
40 |
} |
39 |
} |
41 |
return true; |
40 |
var destination_sort2 = $(this).siblings('span.sort2').find('input[name="sort2"]'); |
|
|
41 |
var sort2 = $(destination_sort2).val(); |
42 |
if ( destination_sort2.length < 1 ) { |
43 |
destination_sort2 = $(this).siblings('span.sort2').find('select[name="sort2"]'); |
44 |
} |
45 |
getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 ); |
46 |
|
47 |
getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 ); |
48 |
} ); |
49 |
|
50 |
$("select[name='budget_id']").change(); |
51 |
|
52 |
$("select[name='all_budget_id']").change(function(){ |
53 |
var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat'); |
54 |
var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat'); |
55 |
var destination_sort1 = $(this).parent().siblings('li').find('input[name="all_sort1"]'); |
56 |
if ( destination_sort1.length < 1 ) { |
57 |
destination_sort1 = $(this).parent().siblings('li').find('select[name="all_sort1"]'); |
58 |
} |
59 |
var destination_sort2 = $(this).parent().siblings('li').find('input[name="all_sort2"]'); |
60 |
if ( destination_sort2.length < 1 ) { |
61 |
destination_sort2 = $(this).parent().siblings('li').find('select[name="all_sort2"]'); |
62 |
} |
63 |
getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1 ); |
64 |
getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2 ); |
65 |
$(this).parent().siblings('li').find('select[name="sort1"]').attr('name', 'all_sort1'); |
66 |
$(this).parent().siblings('li').find('input[name="sort1"]').attr('name', 'all_sort1'); |
67 |
$(this).parent().siblings('li').find('select[name="sort2"]').attr('name', 'all_sort2'); |
68 |
$(this).parent().siblings('li').find('input[name="sort2"]').attr('name', 'all_sort2'); |
69 |
} ); |
70 |
|
71 |
$('input:checkbox[name="import_record_id"]').change(function(){ |
72 |
if ( $(this).is(':checked') ) { |
73 |
$(this).parent().addClass("selected"); |
74 |
$(this).parent().removeClass("unselected"); |
75 |
} else { |
76 |
$(this).parent().addClass("unselected"); |
77 |
$(this).parent().removeClass("selected"); |
78 |
} |
79 |
} ); |
80 |
|
81 |
$("input:checkbox").attr("checked", false); |
82 |
$("div.biblio.unselected select").attr("disabled", false); |
83 |
$("div.biblio.unselected input").attr("disabled", false); |
84 |
|
85 |
$("#checkAll").click(function(){ |
86 |
$("#Aform").checkCheckboxes(); |
87 |
$("input:checkbox[name='import_record_id']").change(); |
88 |
return false; |
89 |
}); |
90 |
$("#unCheckAll").click(function(){ |
91 |
$("#Aform").unCheckCheckboxes(); |
92 |
$("input:checkbox[name='import_record_id']").change(); |
93 |
return false; |
42 |
}); |
94 |
}); |
|
|
95 |
|
43 |
}); |
96 |
}); |
|
|
97 |
|
98 |
function disableUnchecked(form){ |
99 |
$("div.biblio.unselected").each(function(){ |
100 |
$(this).find('select').attr('disabled', 'disabled'); |
101 |
$(this).find('input').attr('disabled', 'disabled'); |
102 |
}); |
103 |
form.submit(); |
104 |
} |
44 |
//]]> |
105 |
//]]> |
45 |
</script> |
106 |
</script> |
46 |
</head> |
107 |
</head> |
Lines 53-76
Link Here
|
53 |
<div id="yui-main"> |
114 |
<div id="yui-main"> |
54 |
<div class="yui-b"> |
115 |
<div class="yui-b"> |
55 |
[% IF ( batch_details ) %] |
116 |
[% IF ( batch_details ) %] |
56 |
<h1>Add orders from [% comments %] |
117 |
<h1>Add orders from [% comments %] |
57 |
([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %]) |
118 |
([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %]) |
58 |
</h1> |
119 |
</h1> |
59 |
<div> |
120 |
<div> |
60 |
<form action="[% scriptname %]" method="post" name="import_biblios"> |
121 |
<span class="checkall"><a id="checkAll" href="#">Check All</a></span> |
61 |
<table> |
122 |
<span class="uncheckall"><a id="unCheckAll" href="#">Uncheck All</a></span> |
62 |
<tr> |
123 |
<form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform" onsubmit="disableUnchecked(this); return false;"> |
63 |
<th>Citation</th> |
124 |
<input type="hidden" name="op" value="import_records"/> |
64 |
<th>Match?</th> |
125 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
65 |
<th>Order</th> |
126 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
66 |
</tr> |
127 |
<input type="hidden" name="import_batch_id" value="[%import_batch_id %]" /> |
67 |
[% FOREACH biblio_lis IN biblio_list %] |
128 |
<input type="hidden" name="ordernumber" value="[% ordernumber %]" /> |
68 |
<tr> |
129 |
|
69 |
<td> |
130 |
[% FOREACH cur IN loop_currencies %] |
70 |
[% biblio_lis.citation %] |
131 |
<input type="hidden" name="[% cur.currency %]" value="[% cur.rate %]" /> |
|
|
132 |
[% END %] |
71 |
|
133 |
|
72 |
</td> |
134 |
[% FOREACH biblio IN biblio_list %] |
73 |
<td> |
135 |
<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;"> |
|
|
136 |
<input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" /> |
137 |
<input type="hidden" value="[% biblio.rrp %]" name="rrp" /> |
138 |
<label for="record_[% biblio.import_record_id %]"><span class="citation" style="font-weight:bold;">[% biblio.citation %]</span></label> |
139 |
<span class="match" style="display:block;"> |
74 |
[% IF ( biblio_lis.overlay_status == 'no_match' ) %] |
140 |
[% IF ( biblio_lis.overlay_status == 'no_match' ) %] |
75 |
No match |
141 |
No match |
76 |
[% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] |
142 |
[% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] |
Lines 80-286
Link Here
|
80 |
[% ELSE %] |
146 |
[% ELSE %] |
81 |
[% biblio_lis.overlay_status %] |
147 |
[% biblio_lis.overlay_status %] |
82 |
[% END %] |
148 |
[% END %] |
83 |
</td> |
149 |
</span> |
84 |
<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> |
150 |
[% IF ( biblio.match_biblionumber ) %] |
85 |
</tr> |
151 |
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> |
86 |
[% IF ( biblio_lis.match_biblionumber ) %] |
152 |
[% END %] |
87 |
<tr> |
153 |
<span class="quantity" style="display:block;"> |
88 |
<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> |
154 |
Quantity: <input type="text" value="[% biblio.quantity %]" name="quantity" /> |
89 |
</tr> |
155 |
</span> |
90 |
[% END %] |
156 |
<span class="price" style="display:block;"> |
91 |
[% END %] |
157 |
Price: <input type="text" value="[% biblio.price %]" name="price" /> |
92 |
</table> |
158 |
</span> |
93 |
</form> |
159 |
<span class="discount" style="display:block;"> |
94 |
</div> |
160 |
Discount: <input type="text" value="[% biblio.discount %]" name="discount" /> |
95 |
[% IF ( pages ) %] |
161 |
</span> |
96 |
<div class="pages"> |
162 |
<span class="budget" style="display:block;"> |
97 |
Page |
163 |
[% IF ( close ) %] |
98 |
[% FOREACH page IN pages %] |
164 |
<span class="label">Budget: </span> |
99 |
[% IF ( page.current_page ) %] |
165 |
<input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %] |
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>Staged</th> |
116 |
<th># Bibs</th> |
117 |
<th> </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 %] |
166 |
[% ELSE %] |
182 |
<label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
167 |
<label for="budget_id">Budget: </label> |
|
|
168 |
<select size="1" name="budget_id"> |
169 |
<option value=""></option> |
170 |
[% FOREACH budget IN budget_loop %] |
171 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
172 |
<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> |
173 |
[% ELSE %] |
174 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
175 |
[% END %] |
176 |
[% END %] |
177 |
</select> |
183 |
[% END %] |
178 |
[% END %] |
184 |
[% iteminformatio.marc_value %] |
179 |
<span class="sort1"> |
185 |
<input type="hidden" name="itemid" value="1" /> |
180 |
<label for="sort1">Planning value1: </label> |
186 |
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" /> |
181 |
<input type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" /> |
187 |
<input type="hidden" name="tag" value="[% iteminformatio.tag %]" /> |
182 |
</span> |
188 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
183 |
<span class="sort2"> |
189 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
184 |
<label for="sort2">Planning value2: </label> |
190 |
[% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] |
185 |
<input type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" /> |
191 |
</div></li> |
186 |
</span> |
|
|
187 |
</span> |
188 |
</div> |
192 |
[% END %] |
189 |
[% END %] |
193 |
</ol> |
190 |
<div> |
194 |
</div><!-- /iteminformation --> |
191 |
<h2>Import all</h2> |
195 |
</div> |
192 |
<p>Import all the lines in the basket with the following parameters:</p> |
196 |
|
193 |
|
197 |
[% END %] <!-- /items --> |
194 |
[% IF ( items ) %] |
198 |
</fieldset> |
195 |
<fieldset class="rows"> |
199 |
[% END %] <!-- items --> |
196 |
<legend>Item</legend> |
200 |
<fieldset class="rows"> |
197 |
[% IF ( NoACQframework ) %] |
201 |
<legend>Accounting details</legend> |
198 |
<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 %] |
199 |
[% END %] |
232 |
</li> |
200 |
[% FOREACH item IN items %] |
233 |
<li> |
201 |
<div id="outeritemblock"> |
234 |
<label for="notes">Notes: </label> |
202 |
<div id="itemblock"> |
235 |
<textarea id="notes" cols="30" rows="3" name="notes"></textarea> |
203 |
<ol> |
236 |
</li> |
204 |
[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];"> |
237 |
<li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
205 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]"> |
238 |
<label for="sort1">Planning value1: </label> |
206 |
[% IF (iteminformatio.mandatory) %] |
239 |
<span id="sort1_zone"> |
207 |
<label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
240 |
[% IF CGIsort1 %] |
208 |
[% ELSE %] |
241 |
<select id="sort1" size="1" name="sort1"> |
209 |
<label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label> |
242 |
[% FOREACH sort_opt IN CGIsort1 %] |
210 |
[% END %] |
243 |
[% IF sort_opt.default %] |
211 |
|
244 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
212 |
[% iteminformatio.marc_value %] |
|
|
213 |
<input type="hidden" name="itemid" value="1" /> |
214 |
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" /> |
215 |
<input type="hidden" name="tag" value="[% iteminformatio.tag %]" /> |
216 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> |
217 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" /> |
218 |
[% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] |
219 |
</div></li> |
220 |
[% END %] |
221 |
</ol> |
222 |
</div><!-- /iteminformation --> |
223 |
</div> |
224 |
[% END %] <!-- /items --> |
225 |
</fieldset> |
226 |
[% END %] <!-- items --> |
227 |
|
228 |
<fieldset class="rows"> |
229 |
<legend>Accounting details</legend> |
230 |
<ol> |
231 |
<li> |
232 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order --> |
233 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
234 |
</li> |
235 |
<li> |
236 |
[% IF ( close ) %] |
237 |
<span class="label">Budget: </span> |
238 |
<input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
245 |
[% ELSE %] |
239 |
[% ELSE %] |
246 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
240 |
<li> |
|
|
241 |
<label for="all_currency">Currency:</label> |
242 |
<select name="all_currency" id="all_currency"> |
243 |
[% FOREACH loop_currencie IN loop_currencies %] |
244 |
[% IF ( loop_currencie.selected ) %] |
245 |
<option value="[% loop_currencie.currcode %]" selected="selected">[% loop_currencie.currcode %]</option> |
246 |
[% ELSE %] |
247 |
<option value="[% loop_currencie.currcode %]">[% loop_currencie.currcode %]</option> |
248 |
[% END %] |
249 |
[% END %] |
250 |
</select> |
251 |
</li> |
252 |
<li> |
253 |
<label for="all_budget_id">Budget: </label> |
254 |
<select id="all_budget_id" size="1" name="all_budget_id"> |
255 |
[% FOREACH budget_loo IN budget_loop %] |
256 |
[% IF ( budget_loo.b_sel ) %] |
257 |
<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> |
258 |
[% ELSE %] |
259 |
<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> |
260 |
[% END %] |
261 |
[% END %] |
262 |
</select> |
263 |
</li> |
247 |
[% END %] |
264 |
[% END %] |
248 |
[% END %] |
265 |
</li> |
249 |
</select> |
266 |
<li> |
250 |
[% ELSE %] |
267 |
<label for="notes">Notes: </label> |
251 |
<input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" /> |
268 |
<textarea id="notes" cols="30" rows="3" name="all_notes"></textarea> |
252 |
[% END %] |
269 |
</li> |
253 |
</span> |
270 |
<li> |
254 |
</li> |
271 |
<div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
255 |
<li> |
272 |
<label for="sort1">Planning value1: </label> |
256 |
<label for="sort2">Planning value2: </label> |
273 |
[% IF CGIsort1 %] |
257 |
<span id="sort2_zone"> |
274 |
<select id="all_sort1" size="1" name="all_sort1"> |
258 |
[% IF CGIsort2 %] |
275 |
[% FOREACH sort_opt IN CGIsort1 %] |
259 |
<select id="sort2" size="1" name="sort1"> |
276 |
[% IF sort_opt.default %] |
260 |
[% FOREACH sort_opt IN CGIsort2 %] |
277 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
261 |
[% IF sort_opt.default %] |
278 |
[% ELSE %] |
262 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
279 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
|
|
280 |
[% END %] |
281 |
[% END %] |
282 |
</select> |
263 |
[% ELSE %] |
283 |
[% ELSE %] |
264 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
284 |
<input type="text" id="all_sort1" size="20" name="all_sort1" value="[% sort1 %]" /> |
265 |
[% END %] |
285 |
[% END %] |
266 |
[% END %] |
286 |
</li> |
267 |
</select> |
287 |
<li> |
268 |
[% ELSE %] |
288 |
<span id="sort2_zone"> |
269 |
<input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" /> |
289 |
<label for="sort2">Planning value2: </label> |
270 |
[% END %] |
290 |
[% IF CGIsort2 %] |
271 |
</span> |
291 |
<select id="all_sort2" size="1" name="all_sort1"> |
272 |
</li> |
292 |
[% FOREACH sort_opt IN CGIsort2 %] |
273 |
<li> |
293 |
[% IF sort_opt.default %] |
274 |
|
294 |
<option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option> |
275 |
</li> |
295 |
[% ELSE %] |
276 |
</ol> |
296 |
<option value="[% sort_opt.id %]">[% sort_opt.label %]</option> |
277 |
</fieldset> |
297 |
[% END %] |
278 |
<fieldset class="action"> |
298 |
[% END %] |
279 |
<input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a> |
299 |
</select> |
280 |
</fieldset> |
300 |
[% ELSE %] |
281 |
</form> |
301 |
<input type="text" id="all_sort2" size="20" name="all_sort2" value="[% sort2 %]" /> |
282 |
</div> |
302 |
[% END %] |
283 |
[% 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>Staged</th> |
323 |
<th># Bibs</th> |
324 |
<th> </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> |
284 |
</div> |
359 |
</div> |
285 |
</div> |
360 |
</div> |
286 |
</div> |
361 |
</div> |