Lines 19-34
for( x=0; x<allColumns.length; x++ ){
Link Here
|
19 |
allColumns[x] = Number(allColumns[x]) + 2; |
19 |
allColumns[x] = Number(allColumns[x]) + 2; |
20 |
} |
20 |
} |
21 |
$(document).ready(function(){ |
21 |
$(document).ready(function(){ |
22 |
$("#selectallbutton").click(function() { |
22 |
|
23 |
$("#itemst").find("input:checkbox").each(function() { |
|
|
24 |
$(this).attr("checked", "checked"); |
25 |
}); |
26 |
}); |
27 |
$("#clearallbutton").click(function() { |
28 |
$("#itemst").find("input:checkbox").each(function() { |
29 |
$(this).removeAttr("checked"); |
30 |
}); |
31 |
}); |
32 |
$("input[name='disable_input']").click(function() { |
23 |
$("input[name='disable_input']").click(function() { |
33 |
var row = $(this).attr("id"); |
24 |
var row = $(this).attr("id"); |
34 |
row = row.replace("row","hint"); |
25 |
row = row.replace("row","hint"); |
Lines 42-47
$(document).ready(function(){
Link Here
|
42 |
$("#"+row).html(""); |
33 |
$("#"+row).html(""); |
43 |
} |
34 |
} |
44 |
}); |
35 |
}); |
|
|
36 |
|
45 |
}); |
37 |
}); |
46 |
//]]> |
38 |
//]]> |
47 |
</script> |
39 |
</script> |
Lines 97-103
$(document).ready(function(){
Link Here
|
97 |
<input type="hidden" name="src" id="src" value="[% src %]" /> |
89 |
<input type="hidden" name="src" id="src" value="[% src %]" /> |
98 |
|
90 |
|
99 |
[% IF ( item_loop ) %] |
91 |
[% IF ( item_loop ) %] |
100 |
[% IF ( show ) %]<div id="toolbar"><a id="selectallbutton" href="#">Select All</a> | <a id="clearallbutton" href="#">Clear All</a></div>[% ELSE %][% END %] |
92 |
[% IF show %] |
|
|
93 |
<div id="toolbar"> |
94 |
<a id="selectallbutton" href="#">Select all</a> | <a id="clearallbutton" href="#">Clear all</a> | <a id="clearonloanbutton" href="#">Clear on loan</a> |
95 |
</div> |
96 |
[% END %] |
101 |
<div id="cataloguing_additem_itemlist"> |
97 |
<div id="cataloguing_additem_itemlist"> |
102 |
|
98 |
|
103 |
<p id="selections"><strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span> |
99 |
<p id="selections"><strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span> |
Lines 116-122
$(document).ready(function(){
Link Here
|
116 |
</tr> |
112 |
</tr> |
117 |
</thead> |
113 |
</thead> |
118 |
<tbody> |
114 |
<tbody> |
119 |
[% FOREACH item_loo IN item_loop %] <tr> [% IF ( show ) %][% IF ( item_loo.nomod ) %] <td class="error">Cannot Edit</td>[% ELSE %]<td><input type="checkbox" name="itemnumber" value="[% item_loo.itemnumber %]" id="row[% item_loo.itemnumber %]" checked="checked" /></td>[% END %][% ELSE %]<td> </td>[% END %] |
115 |
[% FOREACH item_loo IN item_loop %] |
|
|
116 |
<tr> |
117 |
[% IF show %] |
118 |
[% IF item_loo.nomod %] |
119 |
<td class="error">Cannot Edit</td> |
120 |
[% ELSE %] |
121 |
<td><input type="checkbox" name="itemnumber" value="[% item_loo.itemnumber %]" id="row[% item_loo.itemnumber %]" checked="checked" data-is-onloan="[% item_loo.onloan %]" /></td> |
122 |
[% END %] |
123 |
[% ELSE %] |
124 |
<td> </td> |
125 |
[% END %] |
120 |
<td><label for="row[% item_loo.itemnumber %]"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item_loo.biblionumber %]">[% item_loo.title %]</a>[% IF ( item_loo.author ) %], by [% item_loo.author %][% END %]</label></td> |
126 |
<td><label for="row[% item_loo.itemnumber %]"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item_loo.biblionumber %]">[% item_loo.title %]</a>[% IF ( item_loo.author ) %], by [% item_loo.author %][% END %]</label></td> |
121 |
[% FOREACH item_valu IN item_loo.item_value %] <td>[% item_valu.field |html %]</td> |
127 |
[% FOREACH item_valu IN item_loo.item_value %] <td>[% item_valu.field |html %]</td> |
122 |
[% END %] </tr> |
128 |
[% END %] </tr> |