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