Bug 38208

Summary: Provide a link to ERM agreements and licenses from a vendor record
Product: Koha Reporter: Matt Blenkinsop <matt.blenkinsop>
Component: AcquisitionsAssignee: Matt Blenkinsop <matt.blenkinsop>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: esther.melander
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38207
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 38010    
Bug Blocks: 38290    
Attachments: Bug 38208: Provide a link from vendors to ERM
Bug 38208: Provide a link from vendors to ERM
Bug 38208: Provide a link from vendors to ERM

Description Matt Blenkinsop 2024-10-18 14:33:25 UTC
It would be useful to be able to have a link in the left hand menu on the vendor record that takes you to the ERM Agreements or Licenses pages and filters the list by that vendor's id
Comment 1 Matt Blenkinsop 2024-12-04 10:09:34 UTC
Created attachment 175138 [details] [review]
Bug 38208: Provide a link from vendors to ERM

This patch provides a link in the left hand menu so that from a vendor record you can access ERM agreements and licenses relevant to that vendor

Test plan:
1) Apply patch and yarn build
2) Navigate to ERM and create some agreements and licenses that link to a vendor and some that don't
3) Navigate to a vendor record
4) There should be links in the left hand menu for agreements and licenses
5) Click on these and you should be taken to ERM and see a filtered table based on that vendor
Comment 2 Matt Blenkinsop 2024-12-04 10:10:38 UTC
Created attachment 175139 [details] [review]
Bug 38208: Provide a link from vendors to ERM

This patch provides a link in the left hand menu so that from a vendor record you can access ERM agreements and licenses relevant to that vendor

Test plan:
1) Apply patch and reset_all
2) Navigate to ERM and create some agreements and licenses that link to a vendor and some that don't
3) Navigate to a vendor record
4) There should be links in the left hand menu for agreements and licenses
5) Click on these and you should be taken to ERM and see a filtered table based on that vendor
Comment 3 Matt Blenkinsop 2024-12-19 12:34:32 UTC
Created attachment 175722 [details] [review]
Bug 38208: Provide a link from vendors to ERM

This patch provides a link in the left hand menu so that from a vendor record you can access ERM agreements and licenses relevant to that vendor

Test plan:
1) Apply patch and reset_all
2) Navigate to ERM and create some agreements and licenses that link to a vendor and some that don't
3) Navigate to a vendor record
4) There should be links in the left hand menu for agreements and licenses
5) Click on these and you should be taken to ERM and see a filtered table based on that vendor
Comment 4 Esther Melander 2024-12-31 16:47:53 UTC
I tried this using a sandbox. I did restart all services. I was able to create agreements and licenses and link them to a vendor. The sandbox had one vendor called My Vendor that was available. However I had these difficulties:

1. I tried to add additional vendors and was given a 404 error
2. I tried searching vendors and was given a 404 error.
3. I could click on the vendor My Vendor in the licenses and agreements tables. It took me to the Vendor Record/Detail page. There were no links in the left hand menu for agreements or licenses.
Comment 5 Esther Melander 2025-01-09 19:41:18 UTC
Just updating this ticket. I tried this again just in case there was a problem with my sandbox. These are the steps I took.

1. Spun up sandbox.
2. Applied patch.
3. Restarted services
4. Build CSS and JS
5. Proceed with testing plan.

If these steps are not correct, please advise. I had the same results:

1. I tried to add additional vendors and was given a 404 error
2. I tried searching vendors and was given a 404 error.
3. Clicking on the vendor My Vendor in the licenses and agreements tables gave me a 404 error.