Bugzilla – Attachment 164558 Details for
Bug 27428
Show the number of records in the bibliographic record detail page with ElasticSearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27428: (QA follow-up) Add missing POD, remove ES template literals in opac-display-record-count.js
Bug-27428-QA-follow-up-Add-missing-POD-remove-ES-t.patch (text/plain), 1.57 KB, created by
Hammat wele
on 2024-04-09 13:31:06 UTC
(
hide
)
Description:
Bug 27428: (QA follow-up) Add missing POD, remove ES template literals in opac-display-record-count.js
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-04-09 13:31:06 UTC
Size:
1.57 KB
patch
obsolete
>From d791c22203f372d5804c40deda5ab837a507d572 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Tue, 28 Mar 2023 16:31:34 +0000 >Subject: [PATCH] Bug 27428: (QA follow-up) Add missing POD, remove ES template > literals in opac-display-record-count.js > >Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> >--- > Koha/SearchEngine/Elasticsearch/Browse.pm | 8 ++++++++ > .../opac-tmpl/bootstrap/js/opac-display-record-count.js | 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/Browse.pm b/Koha/SearchEngine/Elasticsearch/Browse.pm >index 5d4282ed2f..14e1d1b0f9 100644 >--- a/Koha/SearchEngine/Elasticsearch/Browse.pm >+++ b/Koha/SearchEngine/Elasticsearch/Browse.pm >@@ -175,6 +175,14 @@ sub _build_query_count_record { > return $query; > } > >+=head2 count_record >+ >+ $result = $browser->count_record($ses); >+ >+Return an arrayref of record counts >+ >+=cut >+ > sub count_record { > my ($self, $cgi_q) = @_; > my @results_return; >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/opac-display-record-count.js b/koha-tmpl/opac-tmpl/bootstrap/js/opac-display-record-count.js >index 47265534f3..7fc68f19f0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/opac-display-record-count.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/opac-display-record-count.js >@@ -46,7 +46,7 @@ var not_symbols = { > > function NumberResultsRecord(){ > >- var regex = `a[href*="${regex_es_link}"]`; >+ var regex = 'a[href*="${' + regex_es_link + '}"]'; > var all_link = $(regex); > /* array json data to server */ > var json_data=[]; >-- >2.34.1
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 27428
:
115159
|
115206
|
117950
|
119980
|
120034
|
120633
|
132068
|
139625
|
139626
|
139681
|
145222
|
148842
|
154509
|
154510
|
158639
|
158640
|
158641
|
161349
|
164557
|
164558
|
164559
|
164560
|
167328
|
167677
|
167767
|
167768
|
167769
|
167770
|
167771
|
167774
|
170274
|
170275
|
170276
|
170277
|
170278
|
170279