Browse Source

Merge pull request #658 from jonathangreen/metadata_newlines

Changed based on code review to pull #657
pull/659/head
Jared Whiklo 8 years ago committed by GitHub
parent
commit
02e503b0c9
  1. 2
      theme/theme.inc

2
theme/theme.inc

@ -646,8 +646,10 @@ function islandora_preprocess_islandora_dublin_core_description(array &$variable
} }
} }
$variables['dc_array'] = isset($dc_object) ? $dc_object->asArray() : array(); $variables['dc_array'] = isset($dc_object) ? $dc_object->asArray() : array();
if (isset($variables['dc_array']['dc:description']['value'])) {
$variables['dc_array']['dc:description']['value'] = nl2br(filter_xss($variables['dc_array']['dc:description']['value'])); $variables['dc_array']['dc:description']['value'] = nl2br(filter_xss($variables['dc_array']['dc:description']['value']));
} }
}
/** /**
* Implements hook_preprocess(). * Implements hook_preprocess().

Loading…
Cancel
Save