[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch item deletion [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF ( show ) %]

Batch item deletion

[% ELSE %]

Batch item deletion results

[% END %] [% IF ( barcode_not_unique ) %]
Error saving item: Barcode must be unique.
[% END %] [% IF ( no_next_barcode ) %]
Error saving items: Unable to automatically determine values for barcodes. No item has been inserted.
[% END %] [% IF ( book_on_loan ) %]
Cannot delete: item is checked out.
[% END %] [% IF ( book_reserved ) %]
Cannot delete: item has a waiting hold.
[% END %] [% UNLESS ( action ) %] [% IF ( notfoundbarcodes.size ) %]
[% IF ( itemresults ) %]

Warning, the following barcodes were not found:

[% ELSE %]

Warning: no barcodes were found

[% END %]
[% FOREACH notfoundbarcode IN notfoundbarcodes %] [% END %]
Barcodes not found
[% notfoundbarcode |html %]
[% UNLESS ( too_many_items_display ) %] [% IF ( item_loop ) %]

The following barcodes were found:

[% END %] [% END %] [% END %] [% IF ( notfounditemnumbers.size ) %]
[% IF ( itemresults ) %]

Warning, the following itemnumbers were not found:

[% ELSE %]

Warning: no itemnumbers were found

[% END %]
[% FOREACH notfounditemnumber IN notfounditemnumbers %] [% END %]
Itemnumbers not found
[% notfounditemnumber |html %]
[% UNLESS ( too_many_items_display ) %] [% IF ( item_loop ) %]

The following itemnumbers were found:

[% END %] [% END %] [% END %]
[% IF biblionumber %] [% END %] [% IF ( item_loop ) %] [% IF ( show ) %][% END %]

Show/hide columns: [% FOREACH item_header_loo IN item_header_loop %] [% END %]

[% IF ( show ) %][% END %] [% FOREACH item_header_loo IN item_header_loop %] [% END %] [% FOREACH item_loo IN item_loop %] [% IF show %] [% IF item_loo.nomod %] [% ELSE %] [% SET can_be_deleted = item_loo.item.safe_to_delete %] [% IF can_be_deleted == 1 %] [% ELSE %] [% SWITCH can_be_deleted %] [% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %] [% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %] [% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %] [% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %] [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %] [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ can_be_deleted _ ')' %] [% END %] [% END %] [% END %] [% ELSE %] [% END %] [% FOREACH item_valu IN item_loo.item_value %] [% END %] [% END %]
 Title Holds [% item_header_loo.header_value | html %]
Cannot delete  [% IF item_loo.holds %] [% IF item_loo.item_holds %] [% ELSE %] [% END %] [% ELSE %] [% IF item_loo.holds %] [% ELSE %] [% END %] [% END %] [% IF item_loo.holds %] [% item_loo.item_holds | html %]/[% item_loo.holds | html %] [% ELSE %] [% item_loo.holds | html %] [% END %] [% item_valu.field | html %]
[% END %] [% IF ( simple_items_display ) %] [% END %] [% IF ( show ) %] [% IF ( too_many_items_display ) %]

Too many items ([% too_many_items_display | html %]) to display individually.

[% FOREACH itemnumber IN itemnumbers_array %] [% END %] [% END %] [% IF ( itemresults ) %]

This will delete [% IF ( too_many_items_display ) %]all the[% ELSE %]the selected[% END %] items.

[% IF too_many_items_display %] [% ELSE %] [% END %] Cancel
[% ELSE %]

Return to batch item deletion

[% END %] [% END %]
[% END %] [% IF ( action ) %] [% IF deletion_failed %]
At least one item blocked the deletion. The operation rolled back and nothing happened!
[% ELSE %]

[% deleted_items | html %] item(s) deleted.

[% IF delete_records %]

[% deleted_records | html %] record(s) deleted.

[% END %] [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%] [% IF biblio_deleted %] [% IF searchid %] [% END %] Return to the cataloging module [% ELSE %] [% IF searchid %] Return to the record [% ELSE %] Return to the record [% END %] [% END %] [% ELSIF src %] Return to where you were [% ELSE %] Return to batch item deletion [% END %]
[% END %] [% IF ( not_deleted_items ) %]

[% not_deleted_items | html %] item(s) could not be deleted: [% FOREACH not_deleted_itemnumber IN not_deleted_itemnumbers %][% not_deleted_itemnumber.itemnumber | html %][% END %]

[% IF ( not_deleted_loop ) %] [% FOREACH not_deleted_loo IN not_deleted_loop %] [% END %]
Itemnumber Barcode Reason
[% not_deleted_loo.itemnumber | html %] [% IF ( CAN_user_editcatalogue_edit_items ) %][% not_deleted_loo.barcode | html %][% ELSE %][% not_deleted_loo.barcode | html %][% END %] [% SWITCH not_deleted_loo.reason %] [% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %] [% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %] [% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %] [% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %] [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %] [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ can_be_deleted _ ')' %] [% END %] [% cannot_delete_reason | html %]
[% END %]
[% END %]

[% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%] [% IF biblio_deleted %] Return to the cataloging module [% ELSIF searchid %] Return to the record [% ELSE %] Return to the record [% END %] [% ELSIF src %] Return to where you were [% ELSE %] Return to batch item deletion [% END %]

[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/pages/batchMod.js") | $raw %] [% Asset.js("js/browser.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]