recherche: Majuscule aux facettes
[auf_framonde.git] / project / framonde / templatetags / auf.py
index 11b26d4..b7df16b 100644 (file)
@@ -35,14 +35,13 @@ def do_show_facet(context, facet_name):
                 "?selected_facets=" + long_facet_name,
                 "?"),
                 smart_text(
-                    f[0]),
-                f[1])
+                    f[0]).capitalize(), f[1])
         else:
             if path.endswith('/'):
                 html += "<dd><a href='%s?selected_facets=%s'><input onclick='window.location=\"%s?selected_facets=%s\"; return true;'type='checkbox' />%s</a> (%s)</dd>" % (
-                    path, long_facet_name, path, long_facet_name, smart_text(f[0]), f[1])
+                    path, long_facet_name, path, long_facet_name, smart_text(f[0]).capitalize(), f[1])
             else:
                 html += "<dd><a href='%s&selected_facets=%s'><input onclick='window.location=\"%s&selected_facets=%s\"; return true;'type='checkbox' /> %s</a> (%s)</dd>" % (
-                    path, long_facet_name, path, long_facet_name, smart_text(f[0]), f[1])
+                    path, long_facet_name, path, long_facet_name, smart_text(f[0]).capitalize(), f[1])
     return html