|
Lines 82-91
Link Here
|
| 82 |
return false; |
82 |
return false; |
| 83 |
} |
83 |
} |
| 84 |
} else { |
84 |
} else { |
| 85 |
alert(_("This record has no items.")); |
85 |
alertNoItems(); |
| 86 |
return false; |
86 |
return false; |
| 87 |
} |
87 |
} |
| 88 |
} |
88 |
} |
|
|
89 |
function alertNoItems(){ |
| 90 |
alert(_("This record has no items.")); |
| 91 |
} |
| 89 |
[% END %] |
92 |
[% END %] |
| 90 |
$(document).ready(function() { |
93 |
$(document).ready(function() { |
| 91 |
$("#z3950copy").click(function(){ |
94 |
$("#z3950copy").click(function(){ |
|
Lines 115-120
Link Here
|
| 115 |
return false; |
118 |
return false; |
| 116 |
}); |
119 |
}); |
| 117 |
$("#export").remove(); // Hide embedded export form if JS menus available |
120 |
$("#export").remove(); // Hide embedded export form if JS menus available |
|
|
121 |
$("#deletebiblio").tooltip(); |
| 122 |
$("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled") |
| 123 |
.on("click",function(e){ |
| 124 |
e.preventDefault(); |
| 125 |
alertNoItems(); |
| 126 |
}) |
| 127 |
.tooltip(); |
| 118 |
}); |
128 |
}); |
| 119 |
//]]> |
129 |
//]]> |
| 120 |
</script> |
130 |
</script> |
|
Lines 161-169
CAN_user_serials_create_subscription ) %]
Link Here
|
| 161 |
<li><a id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]">Edit items</a></li> |
171 |
<li><a id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]">Edit items</a></li> |
| 162 |
[% END %] |
172 |
[% END %] |
| 163 |
|
173 |
|
| 164 |
[% IF ( CAN_user_tools_items_batchmod ) %]<li><a href="/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber %]&src=CATALOGUING">Edit items in batch</a></li>[% END %] |
174 |
[% IF ( CAN_user_tools_items_batchmod ) %] |
|
|
175 |
[% IF ( count ) %] |
| 176 |
<li><a id="batchedit" href="/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber %]&src=CATALOGUING">Edit items in batch</a></li> |
| 177 |
[% ELSE %] |
| 178 |
<li class="disabled"><a id="batchedit-disabled" href="#" data-toggle="tooltip" data-placement="left" title="This record has no items">Edit items in batch</a></li> |
| 179 |
[% END %] |
| 180 |
[% END %] |
| 165 |
|
181 |
|
| 166 |
[% IF ( CAN_user_tools_items_batchdel ) %]<li><a href="/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber %]&src=CATALOGUING">Delete items in a batch</a></li>[% END %] |
182 |
[% IF ( CAN_user_tools_items_batchdel ) %] |
|
|
183 |
[% IF ( count ) %] |
| 184 |
<li><a id="batchdelete" href="/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber %]&src=CATALOGUING">Delete items in a batch</a></li> |
| 185 |
[% ELSE %] |
| 186 |
<li class="disabled"><a id="batchdelete-disabled" href="#" data-toggle="tooltip" data-placement="left" title="This record has no items">Delete items in a batch</a></li> |
| 187 |
[% END %] |
| 188 |
[% END %] |
| 167 |
|
189 |
|
| 168 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]">Attach item</a></li>[% END %] |
190 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]">Attach item</a></li>[% END %] |
| 169 |
|
191 |
|
|
Lines 174-186
CAN_user_serials_create_subscription ) %]
Link Here
|
| 174 |
<li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=[% current_framework %]&op=duplicate">Edit as new (duplicate)</a></li> |
196 |
<li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=[% current_framework %]&op=duplicate">Edit as new (duplicate)</a></li> |
| 175 |
<li><a href="#" id="z3950copy">Replace record via Z39.50</a></li> |
197 |
<li><a href="#" id="z3950copy">Replace record via Z39.50</a></li> |
| 176 |
|
198 |
|
| 177 |
[% IF ( count ) %]<li class="disabled">[% ELSE %]<li>[% END %] |
199 |
[% IF ( count ) %] |
| 178 |
<a id="deletebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=[% biblionumber %]">Delete record</a></li> |
200 |
<li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li> |
|
|
201 |
[% ELSE %] |
| 202 |
<li><a id="deletebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=[% biblionumber %]">Delete record</a></li> |
| 203 |
[% END %] |
| 179 |
[% END %] |
204 |
[% END %] |
| 180 |
|
205 |
|
| 181 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
206 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
| 182 |
[% UNLESS ( count ) %]<li class="disabled">[% ELSE %]<li>[% END %]<li> |
207 |
[% IF ( count ) %] |
| 183 |
<a href="#" id="deleteallitems">Delete all items</a></li> |
208 |
<li><a href="#" id="deleteallitems">Delete all items</a></li> |
|
|
209 |
[% ELSE %] |
| 210 |
<li class="disabled"><a href="#" id="deleteallitems-disabled" data-toggle="tooltip" data-placement="left" title="This record has no items">Delete all items</a></li> |
| 211 |
[% END %] |
| 184 |
[% END %] |
212 |
[% END %] |
| 185 |
|
213 |
|
| 186 |
</ul> |
214 |
</ul> |
| 187 |
- |
|
|