Bug 27805 introduced the "email" input type for system preferences which validates the format. This validation prevents putting several email addresses separated by commas in system preferences. In the manual, it says you can input several addresses separated by commas in NoticeBcc https://koha-community.org/manual/21.05/en/html/circulationpreferences.html#noticebcc so it was a need (I also had a client ask me why he couldn't remove one of the three addresses he had in there and save). Can we adjust the validation? To test: 1) Go to Administration > Global system preferences 2) Search for NoticeBcc 3) Add multiple email addresses separated by commas 4) Click "Save all circulation preferences" Validation error: Please enter a valid email address. See also bug 16786, bug 12802
If it's not possible to adjust the validation, let me know and I'll change the manual so that it doesn't confuse users.
This isn't something I'm likely to work on, but I was looking at the "email" input type today for other reasons, and I did notice that you can provide a "multiple" attribute to provide a list of comma separated email addresses: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple Although if you do that, then the "required" attribute doesn't work anymore. That would be OK for system preferences like NoticeBcc but not for other fields (like self-registration or borrower modification).
I had a quick go at this, and although I got it to add 'multiple' to the input field, it still fails validation. I'll post my work in case it helps lead anyone else to the correct solution.
Created attachment 160363 [details] [review] Bug 31376: Attempt to allow comma delimeted list of emails for preferences This doesn't work in chrome in my testing.. but I'm not entirely sure why. I even tried commenting out the jQuery validator lines introduced in bug 8000, but that didn't help either.