Hi Tibor,

my sortest patch?

Ferran
When a collection has zero items and this zero is not displayed, there is no
clear separator between this collection name and the next, and it confuses
users because it seems a single one.


---
 modules/websearch/lib/websearch_templates.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

Index: cds-invenio/modules/websearch/lib/websearch_templates.py
===================================================================
--- cds-invenio.orig/modules/websearch/lib/websearch_templates.py	2007-04-11 14:24:21.057158259 +0200
+++ cds-invenio/modules/websearch/lib/websearch_templates.py	2007-04-11 14:26:24.861879334 +0200
@@ -809,7 +809,8 @@
         ')</small>')
         """
 
-        if number is None: return ''
+        if number is None:
+            number = 0
 
         if prolog is None:
             prolog = '''&nbsp;<small class="nbdoccoll">('''

Reply via email to