[Koha-bugs] [Bug 31779] Article Request form shows all locations in pickup library menu

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 13 21:57:21 CEST 2022


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

--- Comment #1 from Eric Phetteplace <ephetteplace at cca.edu> ---
In case it's useful for other people, this is the custom JS I've added:

if (location.pathname.match('/cgi-bin/koha/opac-request-article.pl')) {
    // remove invalid pickup library options
    $('option[value="NOTAPICKUPLIB1"],
option[value="NOTAPICKUPLIB2"]').remove()
}

You need to add in your own branch codes. We actually only have one valid
location so I added another line `$('#branchcode').parent().hide()` to hide the
menu and its label altogether since there's no choice for users to make.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list