Bug 15834 - Ability to limit AutoEmailNewUser to specific patron categories
Summary: Ability to limit AutoEmailNewUser to specific patron categories
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 21:49 UTC by Christopher Brannon
Modified: 2023-10-25 19:36 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Brannon 2016-02-16 21:49:56 UTC
Would love to see a selection when creating a new account to suppress the welcome e-mail generated by AutoEmailOpacUser.  Sometimes, like when creating accounts for ILL, you don't want to send the info.

It would also be great if there were a preference where you could choose patron groups to not send this e-mail to.

Christopher
Comment 1 Katrin Fischer 2016-02-16 21:56:58 UTC
I think it's not send if you leave either email, username or password empty - maybe something to try as a work around. But would be nice to have this as an option by patron category.
Comment 2 Christopher Brannon 2016-02-16 23:30:07 UTC
Yeah, kind of a clunky workaround, if you remember.  Options are always better than workarounds.
Comment 3 Katrin Fischer 2016-02-17 06:22:53 UTC
Agreed.
Comment 4 Katrin Fischer 2023-08-28 21:20:00 UTC
The preference has since been renamed, but I think the enhancement request is still very valid.
Comment 5 Lari Strand 2023-10-25 11:26:49 UTC
It seems the WELCOME notice supports template toolkit.
https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit

List of available variables states branch, borrower.

One could write an if-else block to check if a borrower's category matches a value and place the message inside the block. Empty messages are not sent if I'm correct.

This counts as a workaround too though, I guess.
Comment 6 Christopher Brannon 2023-10-25 15:30:48 UTC
(In reply to Lari Strand from comment #5)
> It seems the WELCOME notice supports template toolkit.
> https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit
> 
> List of available variables states branch, borrower.
> 
> One could write an if-else block to check if a borrower's category matches a
> value and place the message inside the block. Empty messages are not sent if
> I'm correct.
> 
> This counts as a workaround too though, I guess.

If Template Toolkit had solid and complete documentation for notices, then yes, a workaround.  But even if documentation for TT in notices were solid, the average user doesn't have basic programming skills.  TT isn't doesn't even have a ready set of insertable elements like the outdated hungry alligator elements/fields that are still present.  If we are going to rely on TT for basic needs, then we are a bit short sighted for the average library that doesn't have someone that knows how to program at that level, and we are offering no easy way to implement it.

I guess the question is, what things are common enough to put built in functionality for, and what things are out of the scope of average use and should be left to TT?
Comment 7 Katrin Fischer 2023-10-25 19:36:59 UTC
Lari, I think your workaround should work. I also documented this on the wiki a little while ago:
https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit#Don.27t_generate_e-mail_for_a_patron_category