Commit 850c77f0 authored by Nigel McNie's avatar Nigel McNie
Browse files

Export our person entry with person_type#Self.



Might give other systems more of a chance of recognising it.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 139c89fa
......@@ -102,6 +102,11 @@ class LeapExportElementInternal extends LeapExportElement {
}
$this->smarty->assign('links', $this->links);
}
if (!$categories = $this->get_categories()) {
$categories = array();
}
$this->smarty->assign('categories', $categories);
}
public function get_template_path() {
......@@ -112,6 +117,15 @@ class LeapExportElementInternal extends LeapExportElement {
return 'person';
}
public function get_categories() {
return array(
array(
'scheme' => 'person_type',
'term' => 'Self',
)
);
}
public function data_mapping(ArtefactType $artefact) {
$artefacttype = $artefact->get('artefacttype');
static $mapping = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment