[Koha-bugs] [Bug 18414] Allow to use other select criteria with delete_patrons.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 20 14:54:14 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18414

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #96574|0                           |1
        is obsolete|                            |

--- Comment #5 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 101116
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101116&action=edit
Bug 18413: Allow to use other select criteria with delete_patrons.pl

Adds the ability to specify a file with the --file flag that
should be a list of borrowernumbers for deletion.
If used without other flags it will delete the list of borrowers,
if used with other flags it will treat the other criteria
as filters for the list.

To Test:
1) Specify a list, e.g. borrowers.txt, of borrowernumbers in the database and
put them in a text file with one per line
2) Invoke the script like ./delete_patrons.pl --file borrowers.txt to delete
those patrons
3) Populate the list with a mix of borrowers in a category and those not, say
categoryfoo
4) Invoke the scirpt as ./delete_patrons.pl --category_code categoryfoo --file
borrowers.txt
5) Only the borrowers in the file that have the specified category will be
deleted

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

https://bugs.koha-community.org/show_bug.cgi?id=18414

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list