Browse Source

Update default dublin core template

Update the template to:
  - expand newline in the metadata to <br> tags
  - run it through filter_xss before displaying as is done in the
    metadata template.
pull/657/head
Jonathan Green 9 years ago
parent
commit
1e432e4854
  1. 2
      theme/islandora-dublin-core-description.tpl.php

2
theme/islandora-dublin-core-description.tpl.php

@ -15,6 +15,6 @@
<div class="islandora-metadata-sidebar">
<?php if (!empty($dc_array['dc:description']['value'])): ?>
<h2><?php print $dc_array['dc:description']['label']; ?></h2>
<p property="description"><?php print $dc_array['dc:description']['value']; ?></p>
<p property="description"><?php print nl2br(filter_xss($dc_array['dc:description']['value'])); ?></p>
<?php endif; ?>
</div>

Loading…
Cancel
Save