Bug 9811: Remove useless orderby management
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / member.tt
index a017726..0d81448 100644 (file)
@@ -205,10 +205,10 @@ $(document).ready(function() {
         },
         'bFilter': false,
         'bAutoWidth': false,
-        [% IF orderby_cardnumber_0 %]
-            'aaSorting': [[0, 'asc']],
-        [% ELSE %]
+        [% IF CAN_user_tools_manage_patron_lists %]
             'aaSorting': [[1, 'asc']],
+        [% ELSE %]
+            'aaSorting': [[0, 'asc']],
         [% END %]
         "aLengthMenu": [aLengthMenu, aLengthMenuLabel],
         'sPaginationType': 'full_numbers',
@@ -446,9 +446,9 @@ function filterByFirstLetterSurname(letter) {
                 <option value="">Any</option>
                 [% FOREACH cat IN categories %]
                   [% IF cat.selected %]
-                    <option selected="selected" value="[% cat.categorycode %]">[% cat.description %]</option>
+                    <option selected="selected" value="[% cat.categorycode %]">[% cat.description | html_entity %]</option>
                   [% ELSE %]
-                    <option value="[% cat.categorycode %]">[% cat.description %]</option>
+                    <option value="[% cat.categorycode %]">[% cat.description | html_entity %]</option>
                   [% END %]
                 [% END %]
               </select>