[Koha-bugs] [Bug 14504] Add command-line script to batch delete items based on lost/withdrawn statuses

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 7 23:17:43 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14504

--- Comment #3 from Barton Chittenden <barton at bywatersolutions.com> ---
Test plan:

TESTING THE MAIN FUNCTIONALITY OF THE SCRIPT:
=============================================

Create items with various values of itemlost and, withdrawn. Back-date the
respective timestamps (itemlost_on, timestamp).

Check out one or two of these items (this will exercise the safeguards against
deleting checked out items).

run

delete_items.pl --criteria "items.itemlost = <your lost value here>" --criteria
"itemlost_on < <one day after items was lost>" --dry-run

do the same using items.withdrawn and items.timestamp.

The results of the queries will be written to STDOUT. If you are working in an
instance that has lost or withdrawn items that you want to keep, you may want
to adjust the itemlost_on or timestamp values of your test items accordingly.

Once satisfied with the output using the '--dry-run' option, use '--commit'
instead, then verifiy that the items have been deleted.

run delete_items.pl on checked-out items. If you are running '--verbose' or
'--dry-run', you should receive a message to stdout showing that the item was
not deleted.

OTHER THINGS TO TEST:
=====================

Run the script with the following options. Check the spelling and accuracy on
--help and --manual, and make sure that the output from --version contains a
version number.

    --help  Show the brief help information.

    --manual
            Read the manual, with examples.

    --version
            Show the version number and exit.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list