Lines 260-277
Link Here
|
260 |
[% UNLESS can_be_edited %] |
260 |
[% UNLESS can_be_edited %] |
261 |
<td class="error">Cannot delete</td> |
261 |
<td class="error">Cannot delete</td> |
262 |
[% ELSE %] |
262 |
[% ELSE %] |
263 |
[% IF item.safe_to_delete == 1 %] |
263 |
[% IF item.safe_to_delete %] |
264 |
<td><input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" checked="checked" /></td> |
264 |
<td><input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" checked="checked" /></td> |
265 |
[% ELSE %] |
265 |
[% ELSE %] |
266 |
[% SET messages = item.safe_to_delete.messages %] |
266 |
[% SET messages = item.safe_to_delete.messages %] |
267 |
[% FOR m IN messages %] |
267 |
[% FOR m IN messages %] |
268 |
[% SWITCH m %] |
268 |
[% SWITCH m.message %] |
269 |
[% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %] |
269 |
[% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %] |
270 |
[% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %] |
270 |
[% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %] |
271 |
[% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %] |
271 |
[% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %] |
272 |
[% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %] |
272 |
[% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %] |
273 |
[% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %] |
273 |
[% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %] |
274 |
[% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ item.safe_to_delete _ ')' %] |
274 |
[% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ m.message _ ')' %] |
275 |
[% END %] |
275 |
[% END %] |
276 |
[% END %] |
276 |
[% END %] |
277 |
|
277 |
|
278 |
- |
|
|