Lines 36-41
function verify_images() {
Link Here
|
36 |
} |
36 |
} |
37 |
}); |
37 |
}); |
38 |
} |
38 |
} |
|
|
39 |
|
40 |
[% IF StaffDetailItemSelection %] |
41 |
function selectAllItems(div) { |
42 |
$("input[name='itemnumber'][type='checkbox']", div).attr('checked', 'checked'); |
43 |
} |
44 |
|
45 |
function deselectAllItems(div) { |
46 |
$("input[name='itemnumber'][type='checkbox']", div).removeAttr('checked'); |
47 |
} |
48 |
|
49 |
function itemSelectionExecuteAction(div) { |
50 |
var itemnumbers = new Array(); |
51 |
$("input[name='itemnumber'][type='checkbox']:checked", div).each(function() { |
52 |
itemnumbers.push($(this).val()); |
53 |
}); |
54 |
if (itemnumbers.length > 0) { |
55 |
var action = $('select[name="itemselection_action"]', div).val(); |
56 |
var del = (action == 'delete') ? 1 : 0; |
57 |
var url = '/cgi-bin/koha/tools/batchMod.pl?op=show'; |
58 |
if (action == 'delete') { |
59 |
url += '&del=1'; |
60 |
} |
61 |
url += '&itemnumber=' + itemnumbers.join('&itemnumber='); |
62 |
url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]'; |
63 |
new_window = $("input[name='new_window']", div).attr('checked'); |
64 |
if (new_window) { |
65 |
window.open(url); |
66 |
} else { |
67 |
window.location.href = url; |
68 |
} |
69 |
} else { |
70 |
alert(_("Please select at least one item.")); |
71 |
} |
72 |
} |
73 |
[% END %] |
74 |
|
39 |
$(document).ready(function() { |
75 |
$(document).ready(function() { |
40 |
$('#bibliodetails').tabs(); |
76 |
$('#bibliodetails').tabs(); |
41 |
$('#search-form').focus(); |
77 |
$('#search-form').focus(); |
Lines 272-279
function verify_images() {
Link Here
|
272 |
<div id="holdings"> |
308 |
<div id="holdings"> |
273 |
[% IF ( count ) %] |
309 |
[% IF ( count ) %] |
274 |
[% IF ( showncount ) %] |
310 |
[% IF ( showncount ) %] |
|
|
311 |
[% IF (StaffDetailItemSelection) %] |
312 |
<a href="#" onclick="selectAllItems($(this).parent()); return false;">Select all</a> | |
313 |
<a href="#" onclick="deselectAllItems($(this).parent()); return false;">Deselect all</a> | |
314 |
<form onsubmit="itemSelectionExecuteAction($(this).parent()); return false;"> |
315 |
<label>Action:</label> |
316 |
<select name="itemselection_action"> |
317 |
[% IF CAN_user_tools_items_batchdel %] |
318 |
<option value="delete">Delete selected items</option> |
319 |
[% END %] |
320 |
[% IF CAN_user_tools_items_batchmod %] |
321 |
<option value="modify">Modify selected items</option> |
322 |
[% END %] |
323 |
</select> |
324 |
<input type="submit" value="Go" /> |
325 |
<input type="checkbox" name="new_window" /> |
326 |
<label>Open in new window</label> |
327 |
</form> |
328 |
[% END %] |
275 |
<table> |
329 |
<table> |
276 |
<tr> |
330 |
<tr> |
|
|
331 |
[% IF (StaffDetailItemSelection) %]<th></th>[% END %] |
277 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
332 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
278 |
<th>Current location</th> |
333 |
<th>Current location</th> |
279 |
<th>Home Library</th> |
334 |
<th>Home Library</th> |
Lines 293-298
function verify_images() {
Link Here
|
293 |
</tr> |
348 |
</tr> |
294 |
[% FOREACH itemloo IN itemloop %] |
349 |
[% FOREACH itemloo IN itemloop %] |
295 |
<tr> |
350 |
<tr> |
|
|
351 |
[% IF (StaffDetailItemSelection) %] |
352 |
<td style="text-align:center;vertical-align:middle"> |
353 |
<input type="checkbox" value="[% itemloo.itemnumber %]" name="itemnumber" /> |
354 |
</td> |
355 |
[% END %] |
296 |
[% IF ( item_level_itypes ) %] |
356 |
[% IF ( item_level_itypes ) %] |
297 |
<td class="itype"> |
357 |
<td class="itype"> |
298 |
[% IF !noItemTypeImages && itemloo.imageurl %] |
358 |
[% IF !noItemTypeImages && itemloo.imageurl %] |