From 3754cabab2a52a29975bc74a4e0183f329df5fe1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 4 May 2022 16:56:59 +0200 Subject: [PATCH] Bug 32030: more fixes Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../js/vue/components/ERM/AgreementsShow.vue | 54 ++++++++++++++++--- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue index 41714fef35..c792a9eba9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue @@ -27,14 +27,14 @@
  • {{ - get_lib_from_av(av_statuses, agreement.status) + get_lib_from_av(av_agreement_statuses, agreement.status) }}
  • {{ get_lib_from_av( - av_closure_reasons, + av_agreement_closure_reasons, agreement.closure_reason ) }} @@ -48,7 +48,7 @@ {{ get_lib_from_av( - av_renewal_priorities, + av_agreement_renewal_priorities, agreement.renewal_priority ) }} @@ -100,14 +100,50 @@ v-bind:key="counter" > {{ patron_to_html(role.patron) }} + + {{ get_lib_from_av(av_agreement_user_roles, role.role) }} + + + + +
  • + +
  • + + + + + + + + + + + + + + +
    NameStatusPhysical locationNotesURI
    {{ agreement_license.license.name }} {{ - av_agreement_user_roles.find( - (r) => - r.authorised_value == role.role - ).lib + get_lib_from_av( + av_agreement_license_statuses, + agreement_license.status + ) + }} + + {{ + get_lib_from_av( + av_agreement_license_location, + agreement_license.physical_location + ) }} {{ agreement_license.notes }}{{ agreement_license.uri }}
    @@ -169,7 +205,7 @@ export default { fetch(apiUrl, { headers: { - 'x-koha-embed': 'periods,user_roles,user_roles.patron' + 'x-koha-embed': 'periods,user_roles,user_roles.patron,agreement_licenses,agreement_licenses.license' } }) .then(res => res.json()) @@ -192,6 +228,8 @@ export default { av_agreement_closure_reasons: Array, av_agreement_renewal_priorities: Array, av_agreement_user_roles: Array, + av_agreement_license_statuses: Array, + av_agreement_license_location: Array, }, components: { AgreementPeriods, -- 2.39.5