Bug 26661

Summary: Cities and Towns dropdown in patron editor should focus by default on logged in library city/town
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt
Version: Main   
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 Christopher Brannon 2020-10-12 20:15:45 UTC
When entering new patrons, there is high probability that the patron being entered is from the same town as the logged in library on the staff interface.  However, when you open the dropdown, the list always starts from the top.  If you have a long list, it's a lot of scrolling and searching.  We could eliminate a lot of that searching by defaulting the position to the same or closest zipcode to the logged in library (if that information is entered in the library details).  All the code needs to do is look at the logged in library, look at that library's zipcode, and if it exists, open up the dropdown in or near that same zipcode based on numerical value.