recherche: Majuscule aux facettes
authorPatrick Hetu <patrick.hetu@auf.org>
Fri, 18 Sep 2015 15:59:02 +0000 (11:59 -0400)
committerPatrick Hetu <patrick.hetu@auf.org>
Fri, 18 Sep 2015 15:59:02 +0000 (11:59 -0400)
project/framonde/templatetags/auf.py

index 98bc8a0..b7df16b 100644 (file)
@@ -35,13 +35,13 @@ def do_show_facet(context, facet_name):
                 "?selected_facets=" + long_facet_name,
                 "?"),
                 smart_text(
-                    f[0]), f[1].capitalize())
+                    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