diff --git a/openlibrary/i18n/messages.pot b/openlibrary/i18n/messages.pot
index 7dc4521e522..8c479049ae3 100644
--- a/openlibrary/i18n/messages.pot
+++ b/openlibrary/i18n/messages.pot
@@ -806,6 +806,13 @@ msgid_plural "%(count)s editions"
msgstr[0] ""
msgstr[1] ""
+#: SearchResultsWork.html publishers/view.html
+#, python-format
+msgid "%(count)s ebook"
+msgid_plural "%(count)s ebooks"
+msgstr[0] ""
+msgstr[1] ""
+
#: SearchResultsWork.html
#, python-format
msgid "in %(count)d language"
@@ -7050,13 +7057,6 @@ msgstr ""
msgid "Publisher: %(name)s"
msgstr ""
-#: publishers/view.html
-#, python-format
-msgid "%(count)s ebook"
-msgid_plural "%(count)s ebooks"
-msgstr[0] ""
-msgstr[1] ""
-
#: publishers/view.html
msgid "0 ebooks"
msgstr ""
diff --git a/openlibrary/macros/SearchResultsWork.html b/openlibrary/macros/SearchResultsWork.html
index 3351e10e1c2..b70c46db932 100644
--- a/openlibrary/macros/SearchResultsWork.html
+++ b/openlibrary/macros/SearchResultsWork.html
@@ -175,30 +175,37 @@
$if doc.get('ia') and len(doc.get('ia')) > 1:
-
$ blur_preview = "preview-covers--blur" if blur else ""
-
- $for x, i in enumerate(doc.get('ia')[1:10]):
-
-
-
-
-
-
- $if doc.get('first_publish_year'):
-
- $_('First published in %(year)s', year=doc.first_publish_year)
- —
- $if doc.get('edition_count'):
-
- $ungettext('%(count)s edition', '%(count)s editions', doc.edition_count, count=doc.edition_count)
+
+
+
+ $for x, i in enumerate(doc.get('ia')[1:5]):
+
+
+
- $if doc.get('languages') and doc_type in ['infogami_work', 'solr_work']:
-
- $ langs = [get_language_name(lang.key if hasattr(lang, 'key') else '/languages' + lang) for lang in doc.languages]
- $:ungettext('in %(count)d language', 'in %(count)d languages', len(doc.languages), count=len(doc.languages), langs=commify_list(langs))
+
+
+ $if doc.get('first_publish_year'):
+
+ $_('First published in %(year)s', year=doc.first_publish_year)
+
+
+ $if doc.get('edition_count'):
+
+ $ungettext('%(count)s edition', '%(count)s editions', doc.edition_count, count=doc.edition_count),
+
+ $if doc.get('ia'):
+
+ $ungettext('%(count)s ebook', '%(count)s ebooks', len(doc.get('ia')), count=len(doc.get('ia')))
+
+ $if doc.get('languages') and doc_type in ['infogami_work', 'solr_work']:
+
+ $ langs = [get_language_name(lang.key if hasattr(lang, 'key') else '/languages' + lang) for lang in doc.languages]
+ $:ungettext('in %(count)d language', 'in %(count)d languages', len(doc.languages), count=len(doc.languages), langs=commify_list(langs))
+
-
+
$if show_librarian_extras: