[Koha-bugs] [Bug 35434] Non-superlibrarians should not place holds in other libraries when IndependentBranches is enabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 26 12:33:12 CET 2024


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

PTFS Europe Sandboxes <sandboxes at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #159346|0                           |1
        is obsolete|                            |

--- Comment #4 from PTFS Europe Sandboxes <sandboxes at ptfs-europe.com> ---
Created attachment 161509
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161509&action=edit
Bug 35434: IndependentBranches prevents non-superlibrarians from placing holds
in other libraries

I updated the hold page on the staff interface so that non-superlibrarians
can't place holds in other libraries when the system preference
'IndependentBranches' is enabled.

TEST PLAN
1) Appy the patch.
2) In 'Koha administration > System preferences', set 'IndependentBranches' to
'yes'.
3) In 'Koha administration > Circulation and fines rules', add a rule by only
clicking the 'Save' button (this will create a circulation rule for all patron
categories and all item types, allowing unlimited holds).
4) Create a staff patron (with username and password).
    ---> In 'Patrons > + New patron > Staff', fill the required fields, add a
username and password.
    ---> Remember the home library.
    ---> Click the 'Save' button.
5) Add permissions to the created patron.
    ---> In the patron detail page, click on 'More > Set permissions' and check
the following boxes:
        - Staff access, allows viewing of catalogue in staff interface
        - Add, modify and view patron information
        - Place and modify holds for patrons
    ---> Click the 'Save' button.
6) Create an other patron of any patron category with the same home library as
the staff patron you created.
7) Create a record with one item.
    ---> In 'Cataloging > + New record', fill the required fields.
    ---> Click the 'Save' button.
    ---> You should now be in the item form. Fill the required field (home
library and current library should be the same as the patron's home library).
    ---> Click the 'Add item' button.
8) On the record details page, click 'Place hold' and search for the patron you
created in step 6.
    ---> In the 'Pickup at' field, you should see all the libraries.
    ---> In the 'Allowed pickup locations' column of the item, you should see
the same.
9) Log out from the staff interface and login with the staff patron you
created.
10) Click 'Search catalog' from the search bar and search for the record you
created.
11) On the record details page, click 'Place hold', then search for the patron
in step 6.
    ---> In the 'Pickup at' field, you should only see the home library of the
item.
    ---> In the 'Allowed pickup locations' column of the item, you should see
the same.

Signed-off-by: Anni Rajala <anni.rajala at turku.fi>

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


More information about the Koha-bugs mailing list