function theme_views_oai_pmh_dc_record in Views OAI-PMH 6
Same name and namespace in other branches
- 7 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_dc_record()
1 theme call to theme_views_oai_pmh_dc_record()
File
- theme/
views_oai_pmh.theme.inc, line 108 - Theme related functions for processing our output style plugins.
Code
function theme_views_oai_pmh_dc_record($vars) {
$nid = $vars['nid'];
$datestamp = $vars['node_changed'];
$header = theme('views_oai_pmh_record_header', array(
'nid' => $nid,
'node_changed' => $datestamp,
));
return '<record>' . $header . '<metadata>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">' . $vars['fields'] . '</oai_dc:dc>
</metadata>
</record>';
}