/** * This returns the string to display a coverage field, whether a map or * not. * * @param string $text The original text for the element. * @param Omeka_Record $record The record that this text applies * to. * @param ElementText|NULL $elementText The ElementText record that stores * this text. (This is optional and defaults to NULL.) * * @return string * @author Eric Rochester <*****@*****.**> **/ public static function displayCoverage($text, $record, $elementText = NULL) { $util = new NeatlineFeatures_Utils_View(); $util->setCoverageElement(); $util->setViewOptions($text, $record, $elementText); $output = $util->getView(); return $output; }