Bug 38290

Summary: Add library group limits to vendors
Product: Koha Reporter: Matt Blenkinsop <matt.blenkinsop>
Component: AcquisitionsAssignee: Matt Blenkinsop <matt.blenkinsop>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: clemens.tubach, michaela.sieber
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:
Bug Depends on: 23005, 38010, 38207, 38208, 38262, 38291    
Bug Blocks:    
Attachments: Bug 38290: Add a column for library group visibility
Bug 38290: DBIC file
Bug 38290: Add library group limit classes
Bug 38290: Add library group api client
Bug 38290: Add fields to the UI for CRUD
Bug 38290: Add cypress tests
Bug 38290: Set lib_group_visibility as null
Bug 38290: Add a column for library group visibility
Bug 38290: DBIC file
Bug 38290: Add library group limit classes
Bug 38290: Add library group api client
Bug 38290: Add fields to the UI for CRUD
Bug 38290: Add cypress tests
Bug 38290: Set lib_group_visibility as null
Bug 38290: Use parameters to set/fetch values
Bug 38290: Add unit tests

Description Matt Blenkinsop 2024-10-29 16:40:18 UTC
It should be possible to limit which vendors can be seen based on library groups
Comment 1 Katrin Fischer 2024-10-29 16:47:16 UTC
That would have been very helpful for us in the past. For some libraries the contacts etc. are not the same and having "duplicate" vendors with no way to see which libraries a vendor "belongs" to makes things difficult currently.

Can you share some more specifics about the implementation?
Comment 2 Matt Blenkinsop 2024-10-29 16:59:12 UTC
In short you will be able to set a list of library groups on a vendor record that determine which groups this vendor is visible to. When a user requests a page relevant to vendors the system will return a filtered list based on the user's logged in branchcode. Essentially if the user's branchcode exists in a library group then any vendors attached to that group (or any parent groups) will be returned but any attached to groups where that branch does not exits will be filtered out
Comment 3 Katrin Fischer 2024-10-30 06:58:48 UTC
Thanks Matt, I was hoping it would be able to have a vendor shared by multiple libraries, which this implementation would allow.
Comment 4 Matt Blenkinsop 2024-12-04 10:21:49 UTC
Created attachment 175155 [details] [review]
Bug 38290: Add a column for library group visibility

(cherry picked from commit a0a31abca79ae7c0e282211724eb995bd92e5b9b)
Comment 5 Matt Blenkinsop 2024-12-04 10:21:51 UTC
Created attachment 175156 [details] [review]
Bug 38290: DBIC file

(cherry picked from commit 3dbc11064865b842a33167925a350c31b2f62773)
Comment 6 Matt Blenkinsop 2024-12-04 10:21:53 UTC
Created attachment 175157 [details] [review]
Bug 38290: Add library group limit classes
Comment 7 Matt Blenkinsop 2024-12-04 10:21:56 UTC
Created attachment 175158 [details] [review]
Bug 38290: Add library group api client

(cherry picked from commit 67277c0bc4da4ac3bafd436c77b49bc7884e3f5b)
Comment 8 Matt Blenkinsop 2024-12-04 10:21:58 UTC
Created attachment 175159 [details] [review]
Bug 38290: Add fields to the UI for CRUD
Comment 9 Matt Blenkinsop 2024-12-04 10:22:01 UTC
Created attachment 175160 [details] [review]
Bug 38290: Add cypress tests

(cherry picked from commit e270a21e248c58ae7f402628252c9589dccb618e)
Comment 10 Matt Blenkinsop 2024-12-04 10:22:04 UTC
Created attachment 175161 [details] [review]
Bug 38290: Set lib_group_visibility as null
Comment 11 Matt Blenkinsop 2024-12-19 16:30:24 UTC
Created attachment 175779 [details] [review]
Bug 38290: Add a column for library group visibility

(cherry picked from commit a0a31abca79ae7c0e282211724eb995bd92e5b9b)
Comment 12 Matt Blenkinsop 2024-12-19 16:30:27 UTC
Created attachment 175780 [details] [review]
Bug 38290: DBIC file
Comment 13 Matt Blenkinsop 2024-12-19 16:30:29 UTC
Created attachment 175781 [details] [review]
Bug 38290: Add library group limit classes
Comment 14 Matt Blenkinsop 2024-12-19 16:30:32 UTC
Created attachment 175782 [details] [review]
Bug 38290: Add library group api client

(cherry picked from commit 67277c0bc4da4ac3bafd436c77b49bc7884e3f5b)
Comment 15 Matt Blenkinsop 2024-12-19 16:30:34 UTC
Created attachment 175783 [details] [review]
Bug 38290: Add fields to the UI for CRUD
Comment 16 Matt Blenkinsop 2024-12-19 16:30:37 UTC
Created attachment 175784 [details] [review]
Bug 38290: Add cypress tests

(cherry picked from commit e270a21e248c58ae7f402628252c9589dccb618e)
Comment 17 Matt Blenkinsop 2024-12-19 16:30:39 UTC
Created attachment 175785 [details] [review]
Bug 38290: Set lib_group_visibility as null
Comment 18 Matt Blenkinsop 2024-12-19 16:30:42 UTC
Created attachment 175786 [details] [review]
Bug 38290: Use parameters to set/fetch values
Comment 19 Matt Blenkinsop 2024-12-19 16:30:44 UTC
Created attachment 175787 [details] [review]
Bug 38290: Add unit tests

prove t/db_dependent/Koha/*/Limit/LibraryGroup.t