/**
  * Get online URLs for a record as an array
  *
  * @param \VuFind\RecordDriver\SolrDefault $record Record driver
  *
  * @return array|null
  */
 protected function getRecordOnlineURLs($record)
 {
     $urls = $record->getOnlineURLs();
     if ($urls) {
         $translate = $this->getViewRenderer()->plugin('translate');
         foreach ($urls as &$url) {
             if (isset($url['source'])) {
                 $url['source'] = ['value' => $url['source'], 'translated' => $translate->translate('source_' . $url['source'])];
             }
         }
     }
     return $urls;
 }
 /**
  * Get online URLs for a record as an array
  *
  * @param \VuFind\RecordDriver\SolrDefault $record Record driver
  *
  * @return array|null
  */
 protected function getRecordOnlineURLs($record)
 {
     $urls = $record->getOnlineURLs();
     if ($urls) {
         $translate = $this->getViewRenderer()->plugin('translate');
         foreach ($urls as &$url) {
             if (isset($url['source'])) {
                 if (is_array($url['source'])) {
                     $translated = [];
                     foreach ($url['source'] as $source) {
                         $translated[] = $translate->translate("source_{$source}", null, $source);
                     }
                 } else {
                     $translated = $translate->translate('source_' . $url['source']);
                 }
                 $url['source'] = ['value' => $url['source'], 'translated' => $translated];
             }
         }
     }
     return $urls;
 }