<?php if(!empty($facetPairs)){ ?>
<h2><?php echo $handler->getFacetFieldLabel($fieldName) ?></h2>
<div id="<?php echo $fieldName ?>">
  <?php foreach($facetPairs as $name => $count){ ?>
<a href="./index.php?<?php echo $handler->getLinkStr($fieldName.":".$name,0) ?>"><?php echo $name ?>(<?php echo $count ?>)</a><br>
  <?php } ?>
<?php }?>
</div>
