Lines 6-11
Link Here
|
6 |
[% INCLUDE 'datatables.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
7 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
8 |
//<![CDATA[ |
8 |
//<![CDATA[ |
|
|
9 |
var popup; |
9 |
function DeleteConfirm() { |
10 |
function DeleteConfirm() { |
10 |
var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]"); |
11 |
var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]"); |
11 |
var answer = confirm(msg); |
12 |
var answer = confirm(msg); |
Lines 46-63
Link Here
|
46 |
return; // abort delete |
47 |
return; // abort delete |
47 |
} |
48 |
} |
48 |
}; |
49 |
}; |
49 |
|
|
|
50 |
function Add() { |
50 |
function Add() { |
51 |
window.open("/cgi-bin/koha/patroncards/add_user_search.pl", |
51 |
var bor_nums = document.getElementById("bor_num_list"); |
|
|
52 |
if (bor_nums.value == '') { |
53 |
window.open("/cgi-bin/koha/patroncards/add_user_search.pl", |
52 |
'PatronPopup', |
54 |
'PatronPopup', |
53 |
'width=740,height=450,location=yes,toolbar=no,' |
55 |
'width=740,height=450,location=yes,toolbar=no,' |
54 |
+ 'scrollbars=yes,resize=yes' |
56 |
+ 'scrollbars=yes,resize=yes'); |
55 |
); |
57 |
} |
56 |
} |
58 |
else { |
|
|
59 |
document.forms["add_by_bor_num"].submit(); |
60 |
} |
61 |
}; |
57 |
|
62 |
|
58 |
function add_user(borrowernumber) { |
63 |
function add_user(borrowernumber) { |
59 |
var myurl = "edit-batch.pl?op=add&batch_id=[% batch_id %]&borrower_number="+borrowernumber; |
64 |
$("#bor_num_list").val($("#bor_num_list").val()+borrowernumber+"\r\n"); |
60 |
window.location.href = myurl; |
|
|
61 |
} |
65 |
} |
62 |
|
66 |
|
63 |
function DeDuplicate() { |
67 |
function DeDuplicate() { |
Lines 180-185
Link Here
|
180 |
[% INCLUDE 'patroncards-errors.inc' %] |
184 |
[% INCLUDE 'patroncards-errors.inc' %] |
181 |
<div id="manage-patroncard-batches"> |
185 |
<div id="manage-patroncard-batches"> |
182 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
186 |
<div class="hint">Current library: [% LoginBranchname %]</div> |
|
|
187 |
<form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post"> |
188 |
<div> |
189 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
190 |
<ol><li> |
191 |
<input type="hidden" name="op" value="add" /> |
192 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
193 |
<label for="bor_num_list">Add by borrowernumber(s): |
194 |
<br /> <span class="hint">One borrowernumber per line.</span> |
195 |
</label> |
196 |
<textarea rows="5" id="bor_num_list" name="bor_num_list" tabindex="1" class="focus"></textarea> |
197 |
</li></ol> |
198 |
</fieldset> |
199 |
</div> |
200 |
</form> |
183 |
[% IF ( table_loop ) %] |
201 |
[% IF ( table_loop ) %] |
184 |
<form name="items" class="checkboxed"> |
202 |
<form name="items" class="checkboxed"> |
185 |
<h2>Items in batch number [% batch_id %]</h2> |
203 |
<h2>Items in batch number [% batch_id %]</h2> |
Lines 221-229
Link Here
|
221 |
</table> |
239 |
</table> |
222 |
</form> |
240 |
</form> |
223 |
[% ELSE %] |
241 |
[% ELSE %] |
224 |
<div class="dialog message"> |
242 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
225 |
<h4>There are no items in batch [% batch_id %] yet</h4> |
243 |
<ol><li> |
226 |
<p>Use the toolbar above to add items.</p></div> |
244 |
<div class="dialog message"> |
|
|
245 |
<h4>There are no items in this batch yet</h4> |
246 |
<p>Add items by borrowernumber using the text area above or leave empty to add via patron search.</p> |
247 |
</div> |
248 |
</li></ol> |
249 |
</fieldset> |
227 |
[% END %] |
250 |
[% END %] |
228 |
</div> |
251 |
</div> |
229 |
</div> |
252 |
</div> |