omeka/Omeka — pull request #286 by clioweb (2012-09-22 02:13:04+00:00)
Title: Adds partial as option for Omeka_View_Helper_RecordMetadataList.

There is a [todo in Omeka_View_Helper_RecordMetadataList](https://github.com/omeka/Omeka/blob/master/application/views/helpers/RecordMetadataList.php#L289) for being able to choose the partial for outputting HTML:

> Could pass the name of the partial in as an argument rather than hardcoding it. That would allow us to use arbitrary partials for purposes such as repackaging the data for RSS/XML or other data formats.

I was looking into writing a plugin to output `` tags for Dublin Core values when showing items. Being able to specify a partial for outputting this markup instead of writing something from scratch would be pretty nice.

This add a `$_partial` property to Omeka_View_Helper_RecordMetadataList. It sets the default value for the partial as 'common/record-metadata.php', which is currently the only partial it uses, but lets you change it using a 'partial' option. Example:

```
'common/dc-meta-tags.php')); ?>
```