@@ -, +, @@
---
.../intranet-tmpl/prog/en/css/staff-global.css | 4 +++
.../prog/en/modules/catalogue/results.tt | 27 ++++++++++++++++++-
2 files changed, 29 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -1037,6 +1037,10 @@ div.help {
color : #990000;
}
+.inaccurate-item-statuses {
+ color : #990000;
+}
+
.circmessage li {
list-style : url(../../img/arrow-bullet.gif);
margin-bottom : .2em;
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
@@ -442,6 +442,7 @@ var holdForPatron = function () {
Location |
+ [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
[% IF ( loop.odd ) %][% ELSE %]
[% END %]
[% IF ( AmazonCoverImages || LocalCoverImages ) %]
@@ -545,8 +546,30 @@ var holdForPatron = function () {
- [% IF ( SEARCH_RESULT.items_count ) %] [% SEARCH_RESULT.items_count %]
- [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]
+ [% IF ( SEARCH_RESULT.items_count ) %]
+
+ [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
+
+ [% END %]
+
+ [% SEARCH_RESULT.items_count %]
+
+ [% IF ( SEARCH_RESULT.itemsplural ) %]
+ items
+ [% ELSE %]
+ item
+ [% END %]
+
+ [% IF ( SEARCH_RESULT.availablecount ) %]
+ , [% SEARCH_RESULT.availablecount %] available:
+ [% ELSE %]
+ , None available
+ [% END %]
+
+ [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
+
+ [% END %]
+
[% IF ( SEARCH_RESULT.availablecount ) %]
|