Bugzilla – Attachment 149478 Details for
Bug 33466
Link vendor name in list of licenses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33466: Link to the vendor from the ERM module
Bug-33466-Link-to-the-vendor-from-the-ERM-module.patch (text/plain), 3.83 KB, created by
Katrin Fischer
on 2023-04-11 20:53:44 UTC
(
hide
)
Description:
Bug 33466: Link to the vendor from the ERM module
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-04-11 20:53:44 UTC
Size:
3.83 KB
patch
obsolete
>From 3359b01c64081b0437b32070ff108cbf7d52c1b4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Apr 2023 11:27:08 +0200 >Subject: [PATCH] Bug 33466: Link to the vendor from the ERM module > >There are 3 tables in the ERM module where we display the vendor name >but without a link to the acquisition module. > >This patch adds the links. > >Test plan: >Create an agreement, a license and a local package. >Pick a vendor and notice that now there is a link on the list view. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/js/vue/components/ERM/AgreementsList.vue | 6 +++++- > .../js/vue/components/ERM/EHoldingsLocalPackagesList.vue | 8 +++++++- > .../prog/js/vue/components/ERM/LicensesList.vue | 6 +++++- > 3 files changed, 17 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >index 90e4f1b6c6..072ce02931 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >@@ -252,7 +252,11 @@ export default { > orderable: true, > render: function (data, type, row, meta) { > return row.vendor_id != undefined >- ? escape_str(row.vendor.name) >+ ? '<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=' + >+ row.vendor_id + >+ '">' + >+ escape_str(row.vendor.name) + >+ "</a>" > : "" > }, > }, >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >index 14f9832e50..b78dab4de9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >@@ -180,7 +180,13 @@ export default { > searchable: true, > orderable: true, > render: function (data, type, row, meta) { >- return row.vendor ? escape_str(row.vendor.name) : "" >+ return row.vendor_id != undefined >+ ? '<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=' + >+ row.vendor_id + >+ '">' + >+ escape_str(row.vendor.name) + >+ "</a>" >+ : "" > }, > }, > { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue >index bb188d453c..2db4d82e50 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue >@@ -152,7 +152,11 @@ export default { > orderable: true, > render: function (data, type, row, meta) { > return row.vendor_id != undefined >- ? escape_str(row.vendor.name) >+ ? '<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=' + >+ row.vendor_id + >+ '">' + >+ escape_str(row.vendor.name) + >+ "</a>" > : "" > }, > }, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33466
:
149417
|
149466
| 149478