[Bug 40685] New: Self-registration defaults to the first library in the list
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40685 Bug ID: 40685 Summary: Self-registration defaults to the first library in the list Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: jrobb@sekls.org QA Contact: testopia@bugs.koha-community.org Patrons often skip the selection of Home library when self-registering because it is already populated by the first library in the list, leading to an influx of often incorrect new accounts for that library. If the Home library dropdown were initially blank, the patron would be forced to make a choice. We currently work around this by adding a blank option to the top of the dropdown with JS: //Blank library option to force a selection $('#opac-patron-registration #borrower_branchcode').prepend("<option value=''></option>").val(''); As an aside, blanking the top option then submitting the form without a branchcode leads to a 500 error, so we had to set branchcode as mandatory in PatronSelfRegistrationBorrowerMandatoryField to avoid that issue. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40685 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #1 from David Cook <dcook@prosentient.com.au> --- This is an interesting one for sure. I took a look at some of our examples, and it looks like we use Javascript in a number of cases to do similar things. (Same for category code too actually.) This would be a good fix for everyone I think. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40685 --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- (In reply to Jason Robb from comment #0)
we had to set branchcode as mandatory in PatronSelfRegistrationBorrowerMandatoryField to avoid that issue.
It sounds like we need to make it mandatory for the field to be mandatory! Otherwise we need a way to decide which library is the default. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40685 --- Comment #3 from David Cook <dcook@prosentient.com.au> --- (In reply to Owen Leonard from comment #2)
(In reply to Jason Robb from comment #0)
we had to set branchcode as mandatory in PatronSelfRegistrationBorrowerMandatoryField to avoid that issue.
It sounds like we need to make it mandatory for the field to be mandatory!
Otherwise we need a way to decide which library is the default.
I suppose the logic would be if branchcode is not unwanted, then it must be mandatory. If branchcode is unwanted, then a default library would need to be provided. With categorycode, if one isn't provided (ie categorycode is unwanted), then the default category is used. -- Looking at branchcode and categorycode, neither let you show an empty option on the UI. Probably because they're the 2 essential fields for a borrower DB entry. If they did have empty options, then I think we'd need to make them mandatory/required. Anyway, it seems doable... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40685 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org