Project

General

Profile

« Previous | Next » 

Revision 425a0672

Added by Andreas Kohlbecker over 4 years ago

fixing order of preference in of media metadata for Author

View differences:

modules/cdm_dataportal/includes/media.inc
172 172
  }
173 173

  
174 174
  // Artist.
175
  if (!empty($media_metadata->Artist)) {
176
    $metadata['artist'] = '' . $media_metadata->Artist;
177
  }
178
  elseif (!empty($media->artist->titleCache)) {
175
  if (!empty($media->artist->titleCache)) {
179 176
    $metadata['artist'] = $media->artist->titleCache;
180 177
  }
178
  else if (!empty($media_metadata->Artist)) {
179
    $metadata['artist'] = '' . $media_metadata->Artist;
180
  }
181 181

  
182 182
  // Rights
183 183
  $metadata['rights'] = array();

Also available in: Unified diff