[Koha-bugs] [Bug 31779] New: 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:44:51 CEST 2022


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

            Bug ID: 31779
           Summary: Article Request form shows all locations in pickup
                    library menu
 Change sponsored?: ---
           Product: Koha
           Version: 22.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: ephetteplace at cca.edu
        QA Contact: testopia at bugs.koha-community.org

To recreate:

1. have multiple locations/branches
2. set one to not be available as a pickup location
3. have an item where you can make article requests (e.g. a newspaper or
journal)
4. go to the article request form for the item
/cgi-bin/koha/opac-request-article.pl?biblionumber={{biblionumber}}
5. note the "pickup library" select menue at the bottom of the form

Expected behavior: the location in step #2 will not be listed in the select
menu because it is not an available pickup location. This is the case, for
instance, on the holds form at
/cgi-bin/koha/opac-reserve.pl?biblionumber={{biblionumber}}.

Actual behavior: all libraries are listed. The template iterates over all
branches `FOREACH b IN Branches.all` without discrimination.

There's a question of whether article pickups and holds pickups should be
treated the same, maybe there's some edge case where these are different, but
for us and I would imagine the vast majority of libraries it doesn't make sense
to offer a pickup location for articles when the branch itself doesn't process
holds (usually means there are no circulation functions or staff at that
location).

I looked at the logic in
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt to see if it could be
easily copied over to the
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt but it is not
as straightforward as I'd expected. We will probably resort to OPACUserJS to
work around this in the meantime.

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


More information about the Koha-bugs mailing list