Browse Source

Merge branch 'issue-1266-islandora-pseudo_bundles-warning' of https://github.com/kayakr/islandora into issue-1266-islandora-pseudo_bundles-warning

pull/732/head
dannylamb 6 years ago
parent
commit
4f9366e659
  1. 18
      islandora.module

18
islandora.module

@ -365,14 +365,16 @@ function islandora_entity_extra_field_info() {
$pseudo_bundles = $config_factory->get(IslandoraSettingsForm::GEMINI_PSEUDO); $pseudo_bundles = $config_factory->get(IslandoraSettingsForm::GEMINI_PSEUDO);
foreach ($pseudo_bundles as $key) { if (!empty($pseudo_bundles)) {
list($bundle, $content_entity) = explode(":", $key); foreach ($pseudo_bundles as $key) {
$extra_field[$content_entity][$bundle]['display']['field_gemini_uri'] = [ list($bundle, $content_entity) = explode(":", $key);
'label' => t('Fedora URI'), $extra_field[$content_entity][$bundle]['display']['field_gemini_uri'] = [
'description' => t('The URI to the persistent'), 'label' => t('Fedora URI'),
'weight' => 100, 'description' => t('The URI to the persistent'),
'visible' => TRUE, 'weight' => 100,
]; 'visible' => TRUE,
];
}
} }
return $extra_field; return $extra_field;
} }

Loading…
Cancel
Save