Summary: | Article request form shows all locations in pickup library menu | ||
---|---|---|---|
Product: | Koha | Reporter: | Eric Phetteplace <ephetteplace> |
Component: | Circulation | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | gmcharlt, kyle.m.hall |
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
Eric Phetteplace
2022-10-13 19:44:51 UTC
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. Changing from OPAC to circulation as the article request form in staff probably shows the same behavior. |