Bug 38290 - Add library group limits to vendors
Summary: Add library group limits to vendors
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Matt Blenkinsop
QA Contact: Testopia
URL:
Keywords:
Depends on: 23005 38010 38207 38291
Blocks:
  Show dependency treegraph
 
Reported: 2024-10-29 16:40 UTC by Matt Blenkinsop
Modified: 2024-12-04 10:22 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38290: Add a column for library group visibility (3.40 KB, patch)
2024-12-04 10:21 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 38290: DBIC file (2.44 KB, patch)
2024-12-04 10:21 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 38290: Add library group limit classes (9.48 KB, patch)
2024-12-04 10:21 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 38290: Add library group api client (2.19 KB, patch)
2024-12-04 10:21 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 38290: Add fields to the UI for CRUD (25.73 KB, patch)
2024-12-04 10:21 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 38290: Add cypress tests (29.40 KB, patch)
2024-12-04 10:22 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 38290: Set lib_group_visibility as null (1.03 KB, patch)
2024-12-04 10:22 UTC, Matt Blenkinsop
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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