/**
  * Get representations of tags belonging to a record.
  * 
  * The record must initialize the Tag mixin.
  * 
  * @param Omeka_Record_AbstractRecord $record
  * @return array
  */
 public function getTagRepresentations(Omeka_Record_AbstractRecord $record)
 {
     $tags = array();
     foreach ($record->getTags() as $tag) {
         $tags[] = array('id' => $tag->id, 'url' => $this->getResourceUrl("/tags/{$tag->id}"), 'name' => $tag->name, 'resource' => 'tags');
     }
     return $tags;
 }