From 9d934707dd93bcb88d77b727bec42fc4e57f098c Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f92f967626d3f3d8e1a873a5378f3fdaa0724fac) Signed-off-by: Martin Renvoize --- .../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) + ? '' + + escape_str(row.vendor.name) + + "" : "" }, }, 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 + ? '' + + escape_str(row.vendor.name) + + "" + : "" }, }, { 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) + ? '' + + escape_str(row.vendor.name) + + "" : "" }, }, -- 2.39.5