Bug 30893

Summary: Typo: update_patrons_category.pl fine(s)
Product: Koha Reporter: Evelyn Hartline <evelyn>
Component: Command-line UtilitiesAssignee: Nick Clemens (kidclamp) <nick>
Status: CLOSED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: minor    
Priority: P5 - low CC: arthur.suzuki, david, lucas, robin, victor
Version: 21.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: String patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This updates the help text for the update patrons category cronjob script (misc/cronjobs/update_patrons_category.pl). It changes the full option names and associated information for -fo (--fineover to --finesover) and -fu (--fineunder to --finesunder), as well as some minor formatting and text tidy ups.
Version(s) released in:
22.11.00, 22.05.01, 21.11.07
Circulation function:
Attachments: Bug 30893: Fix documentation in update_patrons_category.pl
Bug 30893: Fix documentation in update_patrons_category.pl
Bug 30893: Fix documentation in update_patrons_category.pl

Description Evelyn Hartline 2022-06-02 17:03:50 UTC
in the SYNOPSIS and OPTIONS portions of update_patrons_category.pl, the options fineover and fineunder do not match the GetOptions finesover and finesunder. The shortened versions can be used, but the plural/not plural should be fixed. 

 -fo=X --fineover=X       update if fines over  X amount
 -fu=X --fineunder=X      update if fines under X amount

vs

 'fo|finesover=s'  => \$fine_min,
 'fu|finesunder=s' => \$fine_max,
Comment 1 Nick Clemens (kidclamp) 2022-06-03 11:36:07 UTC
Created attachment 135677 [details] [review]
Bug 30893: Fix documentation in update_patrons_category.pl
Comment 2 David Nind 2022-06-04 01:07:29 UTC
Created attachment 135698 [details] [review]
Bug 30893: Fix documentation in update_patrons_category.pl

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2022-06-04 01:12:41 UTC
I amended the patch to fix a couple of minor things:

- -fo and -fu: extra spaces before update (so they line up with the other items), removed space for -fo between "..over X.."

- -too_young: removed extra space between age and current

- --from and --to: changed to sentence case so now "*Required* Defines.." instead of "*required* defines.."
Comment 4 Katrin Fischer 2022-06-06 10:57:26 UTC
Created attachment 135720 [details] [review]
Bug 30893: Fix documentation in update_patrons_category.pl

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Tomás Cohen Arazi (tcohen) 2022-06-06 14:38:46 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 6 Lucas Gass (lukeg) 2022-06-15 16:29:10 UTC
Pushed to 22.05.x for 22.05.01
Comment 7 Arthur Suzuki 2022-06-21 13:57:01 UTC
thx! pushed to 21.11.x for 21.11.07
Comment 8 Victor Grousset/tuxayo 2022-06-26 00:12:35 UTC
Not backported to oldoldstable (21.05.x). Feel free to ask if it's needed.

Nothing to document, marking resolved.