|
Lines 35-40
function verify_images() {
Link Here
|
| 35 |
} |
35 |
} |
| 36 |
}); |
36 |
}); |
| 37 |
} |
37 |
} |
|
|
38 |
|
| 39 |
[% IF StaffDetailItemSelection %] |
| 40 |
function selectAllItems() { |
| 41 |
$("input[name='itemnumber'][type='checkbox']").attr('checked', 'checked'); |
| 42 |
} |
| 43 |
|
| 44 |
function deselectAllItems() { |
| 45 |
$("input[name='itemnumber'][type='checkbox']").attr('checked', null); |
| 46 |
} |
| 47 |
|
| 48 |
function itemSelectionExecuteAction() { |
| 49 |
var itemnumbers = new Array(); |
| 50 |
$("input[name='itemnumber'][type='checkbox']:checked").each(function() { |
| 51 |
itemnumbers.push($(this).val()); |
| 52 |
}); |
| 53 |
var action = $('#itemselection_action').val(); |
| 54 |
var del = (action == 'delete') ? 1 : 0; |
| 55 |
var url = '/cgi-bin/koha/tools/batchMod.pl?op=show'; |
| 56 |
if (action == 'delete') { |
| 57 |
url += '&del=1'; |
| 58 |
} |
| 59 |
url += '&itemnumber=' + itemnumbers.join('&itemnumber='); |
| 60 |
url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]'; |
| 61 |
window.location.href = url; |
| 62 |
} |
| 63 |
[% END %] |
| 64 |
|
| 38 |
$(document).ready(function() { |
65 |
$(document).ready(function() { |
| 39 |
$('#bibliodetails').tabs(); |
66 |
$('#bibliodetails').tabs(); |
| 40 |
$('#search-form').focus(); |
67 |
$('#search-form').focus(); |
|
Lines 266-273
function verify_images() {
Link Here
|
| 266 |
<div id="holdings"> |
293 |
<div id="holdings"> |
| 267 |
[% IF ( count ) %] |
294 |
[% IF ( count ) %] |
| 268 |
[% IF ( showncount ) %] |
295 |
[% IF ( showncount ) %] |
|
|
296 |
[% IF (StaffDetailItemSelection) %] |
| 297 |
<a href="#" onclick="selectAllItems(); return false;">Select all</a> | |
| 298 |
<a href="#" onclick="deselectAllItems(); return false;">Deselect all</a> | |
| 299 |
<form onsubmit="itemSelectionExecuteAction(); return false;"> |
| 300 |
<label for="itemselection_action">Action:</label> |
| 301 |
<select id="itemselection_action"> |
| 302 |
[% IF CAN_user_tools_items_batchdel %] |
| 303 |
<option value="delete">Delete selected items</option> |
| 304 |
[% END %] |
| 305 |
[% IF CAN_user_tools_items_batchmod %] |
| 306 |
<option value="modify">Modify selected items</option> |
| 307 |
[% END %] |
| 308 |
</select> |
| 309 |
<input type="submit" value="Go" /> |
| 310 |
</form> |
| 311 |
[% END %] |
| 269 |
<table> |
312 |
<table> |
| 270 |
<tr> |
313 |
<tr> |
|
|
314 |
[% IF (StaffDetailItemSelection) %]<th></th>[% END %] |
| 271 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
315 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
| 272 |
<th>Current location</th> |
316 |
<th>Current location</th> |
| 273 |
<th>Home Library</th> |
317 |
<th>Home Library</th> |
|
Lines 287-292
function verify_images() {
Link Here
|
| 287 |
</tr> |
331 |
</tr> |
| 288 |
[% FOREACH itemloo IN itemloop %] |
332 |
[% FOREACH itemloo IN itemloop %] |
| 289 |
<tr> |
333 |
<tr> |
|
|
334 |
[% IF (StaffDetailItemSelection) %] |
| 335 |
<td style="text-align:center;vertical-align:middle"> |
| 336 |
<input type="checkbox" value="[% itemloo.itemnumber %]" name="itemnumber" /> |
| 337 |
</td> |
| 338 |
[% END %] |
| 290 |
[% IF ( item_level_itypes ) %] |
339 |
[% IF ( item_level_itypes ) %] |
| 291 |
<td class="itype"> |
340 |
<td class="itype"> |
| 292 |
[% IF !noItemTypeImages && itemloo.imageurl %] |
341 |
[% IF !noItemTypeImages && itemloo.imageurl %] |