https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26899
Christopher Brannon <cbran...@cdalibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Pick up location defaults |Pick up location defaults |to first choice if patron |to first choice if patron's | |library is disabled as pick | |up location --- Comment #1 from Christopher Brannon <cbran...@cdalibrary.org> --- If patron's home library is disabled as a pick up location, it defaults to the first available location in the dropdown. I'm not sure if this request should be under system administration or hold requests. I think that if their location is disabled, there should be a message in the dropdown, and disable the Confirm hold button until another location is chosen. This is what I did with jQuery: //Reroute Patron Pick-up Locations if($.inArray($('#opac-holds #members span.loggedinusername').attr('data-branchcode'), ['LAKECITY','POSTFALLS','ATHOL','RATHDRUM']) != -1) { $('#opac-holds select[name="branch"]').prepend('<option value="NONE">BRANCH CLOSED - CHOOSE PICK UP LOCATION</option>').val('NONE').width('350px'); $('#opac-holds select[name="branch"] option[value="NONE"]').prop('disabled', true); $('#opac-holds input.placehold').prop('disabled', true); $('#opac-holds select[name="branch"]').change(function() { $('#opac-holds input.placehold').prop('disabled', false); }); } //End Reroute If the library is in the array, the button is disabled and they are forced to choose a different location. I'm going to change this slightly and have it do this if their logged in library is not in the dropdown, so we don't have to edit this list. But you get the idea. This should be a part of Koha, because this easily slips by the attention of so many patrons, and holds route to the wrong library because of it. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/