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. 4
      theme/theme.inc

4
theme/theme.inc

@ -646,7 +646,9 @@ 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();
$variables['dc_array']['dc:description']['value'] = nl2br(filter_xss($variables['dc_array']['dc:description']['value'])); if (isset($variables['dc_array']['dc:description']['value'])) {
$variables['dc_array']['dc:description']['value'] = nl2br(filter_xss($variables['dc_array']['dc:description']['value']));
}
} }
/** /**

Loading…
Cancel
Save