[Koha-bugs] [Bug 26899] Pick up location defaults to first choice if patron's library is disabled as pick up location

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 2 18:54:24 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26899

Christopher Brannon <cbrannon at 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 <cbrannon at 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.


More information about the Koha-bugs mailing list