From ad6ef9f2a5ed1a2c7b3eef1209db000599ab331c Mon Sep 17 00:00:00 2001 From: Hammat Wele 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 --- .../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: - "
ccode: [REF,ARC]

- would mark all REF and ARC collections (Reference and Archives) items as unavailable in Z3950 results.

" - "You can define multiple keys and values, items meeting ANY of the criteria will be marked unavailable:

" - "
itype: [REF]
holdingbranch: [REPAIR]

- 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(" ["+data[i]+"]"); + $(val).after(" ["+data[i].value+"]"); }); }, error: function (data) { -- 2.34.1