Bugzilla – Attachment 148842 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), 2.23 KB, created by
Hammat wele
on 2023-03-28 16:33:33 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:
2023-03-28 16:33:33 UTC
Size:
2.23 KB
patch
obsolete
>From a2f8311234a1a6aa76641ec4f6b8f05a10cd6dd6 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 > >--- > Koha/SearchEngine/Elasticsearch/Browse.pm | 8 ++++++++ > .../opac-tmpl/bootstrap/en/includes/doc-head-close.inc | 2 +- > .../opac-tmpl/bootstrap/js/opac-display-record-count.js | 2 +- > 3 files changed, 10 insertions(+), 2 deletions(-) > >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/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc >index e8a66a4ba5..4c2e546e9d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc >@@ -44,7 +44,7 @@ > <style>[% Koha.Preference('OPACUserCSS') | $raw %]</style> > [% END %] > [% IF ( Koha.Preference('OPACDisplayRecordCount') ) %] >- [% Asset.js("js/opac-display-record-count.js") %] >+ [% Asset.js("js/opac-display-record-count.js") | $raw %] > [% END %] > [% IF SCO_login %] > [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %] >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