Summary: | Not possible to set default value for patron attributes | ||
---|---|---|---|
Product: | Koha | Reporter: | Ron Houk <rhouk> |
Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | andrew, caroline.cyr-la-rose, gmcharlt, jandrews, kyle.m.hall, lisettepalouse+koha |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Ron Houk
2019-04-17 18:00:57 UTC
Hi Ron, can you explain your use case a bit? Maybe we can suggest a work around. Hi Katrin, Where this came up for us was we are in the process of starting a tool lending library at my public library. Patrons need to sign a waiver in order to check out garden tools. I've created a patron attribute that is tied to the YES_NO value category. The vast majority of patrons will not checkout garden tools so we'd like to have this attribute default to the NO field when staff are creating a new patron. (In reply to Ron Houk from comment #2) > Hi Katrin, > > Where this came up for us was we are in the process of starting a tool > lending library at my public library. Patrons need to sign a waiver in > order to check out garden tools. I've created a patron attribute that is > tied to the YES_NO value category. > > The vast majority of patrons will not checkout garden tools so we'd like to > have this attribute default to the NO field when staff are creating a new > patron. This could be useful in lots of instances -- we are looking to do a newsletter opt-out, and it would be nice to have a pre-selected value for a new patron attribute. There is JQ in the library now that can do this: https://wiki.koha-community.org/wiki/JQuery_Library#Select_an_attribute_value_by_default_only_on_add_patron_add_screen The code I wrote only does it on creation so you don't accidentally edit it out back to default if you change it. Lisette I also would find this helpful. My use case is the same as Ron's, i.e. a library has parents sign waivers for kids to use the public computers. The patron attribute is "Computer allowed" and limited to kids accounts, with the authorized value YES_NO. The default would be NO until the parent signs the waiver. I've just run into this need, for much the same reason Ron described. We have an attribute to record whether or not patrons have signed a hotspot use agreement. We'd like all patrons to default to "No." It'd be nice to accomplish this without jQuery. |