From 115ac83fa5c676e0c70036abedb74882591c165d 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 --- .../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 3554c0f00ed..7e807400ea3 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 @@