Bugzilla – Attachment 170278 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: (follow-up) show the number instead [[object Object]], move OPACDisplayRecordCount to the 'Features' section
Bug-27428-follow-up-show-the-number-instead-object.patch (text/plain), 3.38 KB, created by
Hammat wele
on 2024-08-13 17:29:49 UTC
(
hide
)
Description:
Bug 27428: (follow-up) show the number instead [[object Object]], move OPACDisplayRecordCount to the 'Features' section
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-08-13 17:29:49 UTC
Size:
3.38 KB
patch
obsolete
>From ad6ef9f2a5ed1a2c7b3eef1209db000599ab331c Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Wed, 12 Jun 2024 21:57:53 +0000 >Subject: [PATCH] Bug 27428: (follow-up) show the number instead [[object > Object]], move OPACDisplayRecordCount to the 'Features' section > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../modules/admin/preferences/searching.pref | 18 +++++++++--------- > .../bootstrap/js/opac-display-record-count.js | 6 ++++-- > 2 files changed, 13 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >index 4a8d54f84c..b3cac6e15a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >@@ -116,6 +116,14 @@ Searching: > - "<pre>ccode: [REF,ARC]</pre><br/> - would mark all REF and ARC collections (Reference and Archives) items as unavailable in Z3950 results.<br/><br/>" > - "You can define multiple keys and values, items meeting ANY of the criteria will be marked unavailable:<br/><br/>" > - "<pre>itype: [REF]<br/>holdingbranch: [REPAIR]</pre><br/> - would mark all reference items AND items at the REPAIR branch as unavailable." >+ - >+ - pref: OPACDisplayRecordCount >+ type: boolean >+ default: 0 >+ choices: >+ 1: Show >+ 0: "Don't show" >+ - the number of records next to search links in the bibliographic record detail page in the OPAC. > Search form: > - > - pref: LoadSearchHistoryToTheFirstLoggedUser >@@ -373,12 +381,4 @@ Searching: > - LIBRIS base URL > - pref: LibrisURL > class: url >- - "Please only change this if you are sure it needs changing." >- - >- - pref: OPACDisplayRecordCount >- type: boolean >- default: 0 >- choices: >- 1: Show >- 0: "Don't show" >- - the number of records next to search links in the bibliographic record detail page in the OPAC. >\ No newline at end of file >+ - "Please only change this if you are sure it needs changing." >\ No newline at end of file >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 efefb4b2fc..3e41dfb400 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 >@@ -7,7 +7,9 @@ var es_builder = { > 'Provider' : 'provider', > 'se,phr' : 'title-series', > 'au' : 'author', >- 'su,complete-subfield' : 'subject' >+ 'su,complete-subfield' : 'subject', >+ 'su' : 'subject', >+ 'copydate': 'copydate', > } > var not_symbols = { > '\'':'%27', >@@ -63,7 +65,7 @@ function NumberResultsRecord(){ > url: url_request + JSON.stringify(json_data) + '&key=' + key_display, > success: function (data) { > jQuery.each( all_link, function( i, val ) { >- $(val).after(" <span style=\"color:black\"><b>["+data[i]+"]</b></span>"); >+ $(val).after(" <span style=\"color:black\"><b>["+data[i].value+"]</b></span>"); > }); > }, > error: function (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