Koha/catalogue
Lucas Gass 66c332a789
Bug 37383: Use libraries_where_can_edit_items to check if items are editable
To test:
1 - have a system with 2+ branches
2 - have a bib with 2+ items, all with holdingbranch=A
3 - set logged in library to A
4 - go to bib details page, confirm each item has an Edit button in the holdings table
5 - edit one item, set holdingbranch=B
6 - reload bib details page
7 - confirm the item now at branch B does not have an edit button
8 - APPLY PATCH and restart_all
9 - Try 1 - 6 again, this time you should see the proper edit buttons
10 - Set up library group:
    * Create a library group for library A + B
    * Action: Limit item editing by group
11 - Set up test user:
    * Create a staff patron with these permissions:
    * catalogue
    * fast_cataloguing
    * edit_items
    * view_borrower_infos_from_any_libraries
    * edit borrowers
* Home library: library A

12 - Set up test items:
    * Create a record with 3 items with different home libraries:
        * A
        * B
        * C

13 - We expect the use to be able to edit A and B, but not C.
14 - With the same user turn OFF the view_borrower_infos_from_any_libraries permission
15 - Behavior should not change, we expect the use to be able to edit A and B, but not C.
16 - Make sure StaffDetailItemSelection still works as expected for all users. With the sys pref on the checkbox should show up for superlibrarians and users with 'tools' permissions.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-07-25 10:58:38 +01:00
..
detail.pl Bug 37383: Use libraries_where_can_edit_items to check if items are editable 2024-07-25 10:58:38 +01:00
export.pl Bug 36336: (bug 34478 follow-up) Fix export from catalogue detail 2024-03-22 10:35:20 +01:00
getitem-ajax.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
image.pl Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
imageviewer.pl Bug 31310: Remove GetItemsInfo from catalogue/imageviewer 2022-08-16 09:22:47 -03:00
ISBDdetail.pl Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
issuehistory.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
item-export.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
itemsearch.pl Bug 35294: Fix typos in catalogue code comments 2024-06-13 14:26:22 +01:00
labeledMARCdetail.pl Bug 36834: (Bug 29697 follow-up) Koha explodes when trying to open in Labeled MARC view a bibliographic record with an invalid biblionumber 2024-05-21 13:39:49 +02:00
MARCdetail.pl Bug 36438: Check object for calling metadata 2024-04-12 11:25:59 +02:00
moredetail.pl Bug 33788: Limit the number of old issues rows returned 2023-05-30 08:27:55 -03:00
search-history.pl Bug 34478: Rename action with op - catalogue/search-history 2024-03-01 10:56:38 +01:00
search.pl Bug 37244: Facets should not impact library pulldown. 2024-07-05 15:48:07 +02:00
showelastic.pl Bug 35618: Remove deprecated parameter "type" from showelastic.pl page 2023-12-28 12:16:12 +01:00
showmarc.pl Bug 30779: Remove _update_import_record_marc and update tests 2022-08-18 09:02:04 -03:00
stockrotation.pl Bug 36193: cud- treatment for catalogue/stockrotation.pl 2024-03-12 17:47:32 +01:00
updateitem.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00