Bug 20436: Add ability to specify itemtypes for longoverdue.pl
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Mar 2018 11:15:12 +0000 (11:15 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 10 May 2019 18:56:42 +0000 (18:56 +0000)
commit0c02332600d430e77c4cc3dc62f9996c4375d55f
tree6186be8259de2dda548144810c6adb14fe5b25b1
parent6270a0150fb331a3e6a3a0ba23af0d3a1915d5f9
Bug 20436: Add ability to specify itemtypes for longoverdue.pl

It would be nice if we could filter long overdues based on itemtype the same way we can already filter based on borrower category code.

Test Plan:
1) Set up a number of overdues of various itemtypes
2) Run longoverdue.pl with --list-itemtypes to show itemtypes
3) Run longoverdue.pl with --itemtype to verify it only operates on that itemtype
4) Run longoverdue.pl with multiple --itemtype switches, verify it only operates on those itemtypes
5) Run longoverdue.pl with --skip-itemtype to verify it does not operate on that itemtype
6) Run longoverdue.pl with multiple --skip-itemtype switches, verify that it does not operate on those itemtypes

Signed-off-by: Jesse Maseto <jesse@bywatersolution.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/cronjobs/longoverdue.pl