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

Nick Clemens <n...@bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #107291|0                           |1
        is obsolete|                            |
 Attachment #107292|0                           |1
        is obsolete|                            |

--- Comment #12 from Nick Clemens <n...@bywatersolutions.com> ---
Created attachment 109116
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109116&action=edit
Bug 25624: Add 'operator' option to allow for different comparisons

This patch adds the option to specify the operators fper field specified in the
script

We also add support for testing 'null' fields

To test:
1 - Run the script with no parameters and verify the help explains the
parameters
2 - Add a patron in category PT (or your choice) with email 'a...@b.com'
3 - Add a patron in category PT (or as above)    with email 'c...@d.com'
4 - Try running with options
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field
email=a...@b.com (first patron returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field
email=a...@b.com -o email=e (first patron returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field
email=a...@b.com -o email=gt (both patrons returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field
email=a...@b.com -o email=gte (second patron returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field email=a@b%
-o email=l (first patron returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field email=a@b%
-o email=nl (second patron returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field email=null
-o email=e (neither patron returned)
    perl misc/cronjobs/update_patrons_category.pl -f PT -t s --field email=null
-o email=ne (both patrons returned)
5 - Test other combination
6 - Test with --confirm and ensure updates suceed as before patches

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

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to