Project

General

Profile

Revision 128e8a65

ID128e8a65b3bfc8ddb8027a496b393798c6cc2305
Parent 102f8c26
Child e251b6d6

Added by Andreas Kohlbecker over 2 years ago

fixing order of media title sources

View differences:

modules/cdm_dataportal/includes/media.inc
155 155
  }
156 156

  
157 157
  // Title.
158
  if (!empty($media_metadata->ObjectName)) {
158
  if (!empty($media->title_L10n)) {
159
    $metadata['title'] = $media->title_L10n;
160
  } else if ($media->protectedTitleCache && !empty($media->titleCache)) {
161
    $metadata['title'] = $media->titleCache;
162
  } else if (!empty($media_metadata->ObjectName)) {
159 163
    $metadata['title'] = $media_metadata->ObjectName;
160
  }
161
  elseif (!empty($media_metadata_aux['Object Name'])) {
164
  } else  if (!empty($media_metadata_aux['Object Name'])) {
162 165
    $metadata['title'] = $media_metadata_aux['Object Name'];
163
  }
164
  elseif (!empty($media->title_L10n)) {
165
    $metadata['title'] = $media->title_L10n;
166
  }
167
  elseif (!empty($media->titleCache)) {
166
  } else if (!empty($media->titleCache)) {
168 167
    $metadata['title'] = $media->titleCache;
169 168
  }
170 169

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)