From 6b19436f5fd47de229ce2271428424e59966fe25 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 15 Dec 2022 08:17:16 +0100 Subject: [PATCH] Bug 32468: Use fetchLocalTitleCount to know if local titles exist We don't need to fetch 20 titles to know if there is at least one. We should call fetchLocalTitleCount. Note that this should be implemented for all 'List' views. Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../ERM/EHoldingsEBSCOTitlesList.vue | 16 +++++------ .../ERM/EHoldingsLocalTitlesList.vue | 21 ++++++-------- koha-tmpl/intranet-tmpl/prog/js/vue/fetch.js | 28 +++++++++++-------- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue index 3554c0f00e..7e807400ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue @@ -46,15 +46,13 @@ >
{{ - $__("%s titles found locally").format( - local_count_titles - ) + $__("%s titles found locally").format(local_title_count) }}
@@ -68,7 +66,7 @@