[% USE raw %] [% USE Koha %] [% USE KohaDates %] [% USE Asset %] [% USE Branches %] [% SET footerjs = 1 %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] Batch item deletion › Cataloging › Koha [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'cat-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %]

Batch item deletion

[% FOREACH message IN messages %] [% IF message.type == 'success' %]
[% ELSIF message.type == 'warning' %]
[% ELSIF message.type == 'error' %]
[% END %] [% IF message.code == 'cannot_enqueue_job' %] Cannot enqueue this job. [% END %] [% IF message.error %] (The error was: [% message.error | html %], see the Koha log file for more information). [% END %]
[% 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 %]
[% 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 %]
[% END %] [% IF cannot_be_deleted.size %]

Warning, the following items cannot be deleted:

[% FOREACH barcode IN cannot_be_deleted %] [% END %]
Cannot be deleted
[% barcode | html %]
[% END %] [% IF ( notfoundbarcodes.size || notfounditemnumbers.size || cannot_be_deleted.size ) && !too_many_items_display && item_loop %]

The following barcodes were found:

[% END %]
[% IF biblionumber %] [% END %] [% IF items.size %] [% PROCESS items_table_batchmod headers => item_header_loop, items => items, checkboxes_delete => 1, display_columns_selection => 1 %] [% 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 op == 'enqueued' %]

The job has been enqueued! It will be processed as soon as possible.

View detail of the enqueued job | New batch item deletion

[% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%] [% IF 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' %]