/**
  * Shortcode to display viewer.
  *
  * @param array $args
  * @param Omeka_View $view
  * @return string
  */
 public static function shortcodeOpenLayersZoom($args, $view)
 {
     // Check required arguments
     $recordType = isset($args['record_type']) ? $args['record_type'] : 'Item';
     $recordType = ucfirst(strtolower($recordType));
     if (!in_array($recordType, array('Item', 'File'))) {
         return;
     }
     // Get the specified record.
     if (isset($args['record_id'])) {
         $recordId = (int) $args['record_id'];
         $record = get_record_by_id($recordType, $recordId);
     } else {
         $record = get_current_record(strtolower($recordType));
     }
     if (empty($record)) {
         return;
     }
     $html = $view->openLayersZoom()->zoom($record);
     if ($html) {
         $html = '<link href="' . css_src('ol') . '" media="all" rel="stylesheet" type="text/css" >' . js_tag('ol') . js_tag('OpenLayersZoom') . $html;
         return $html;
     }
 }