I used aggregation on the filter block, to show the count of nodes belonging to each taxonomy term, then I noticed that the output of the data-option-value included several dashes (as replacements for the blank spaces), and the number for the node count, as in:
<a class="filterbutton" data-option-value=".argentina------------6">
I did a quick and dirty preg_replace in views_isotope_theme.inc as follows:

function template_preprocess_views_isotope_filter_block(&$vars) {
  template_preprocess_views_view_list($vars);
   $pattern='/[\-]{2,}[0-9]{0,}/';
  $vars['isotope_filter_classes'] = array();
  
  // Clean row values for use as filter classes.
  foreach ($vars['rows'] as $row)
    $vars['isotope_filter_classes'][] = '.' . preg_replace($pattern,'',strtolower(drupal_clean_css_identifier(trim($row))));
}

The results can be observed at: http://d7.papep-undp.org/biblio

Comments

matt.elkins’s picture

Status: Needs work » Closed (won't fix)

Based on the information you've provided, I'd suggest that the problem you encountered is down to your specific implementation rather than a bug. In most cases, I imagine that the default formatting for data-option-value values and the corresponding CSS classes is sufficient. In special cases like yours, I'd recommend overriding template_preprocess_views_isotope_filter_block in a module/theme of your own to implement any extra formatting that you require.

In a future version, I'll be considering adding the ability to provide two distinct values for filter blocks - one representing the value to be used for filtering (i.e. data-option-value), and a label for the filter link itself.

Thanks for your post!