Commit b585c6c1 authored by Adrian Schlegel's avatar Adrian Schlegel
Browse files

changed the rdf type for books to publication


added the new element myrole
Signed-off-by: default avatarAdrian Schlegel <adrian@liip.ch>
parent 22d210b9
......@@ -389,28 +389,20 @@ class LeapExportElementResumeCompositeChildEmploymenthistory extends LeapExportE
));
}
}
class LeapExportElementResumeCompositeChildBook extends LeapExportElementResumeCompositeChildWithSiblings {
public function ensure_siblings() {
$this->siblings = array(
'related' => new LeapExportElementResumeCompositeSibling($this->parentartefact, $this->exporter, $this, array(
'title' => $this->originalrecord->contribution,
'content' => $this->originalrecord->description,
'updated' => PluginExportLeap::format_rfc3339_date($this->originalrecord->mtime),
), 'achievement', 'related')
);
}
class LeapExportElementResumeCompositeChildBook extends LeapExportElementResumeCompositeChild {
public function record_to_entrydata($record) {
return array(
'end' => $record->date,
'title' => $record->title,
'myrole' => $record->contribution,
'content' => $record->description,
'updated' => PluginExportLeap::format_rfc3339_date($record->mtime),
);
}
public function get_leap_type() {
return 'resource';
return 'publication';
}
public function get_categories() {
......
{include file="export:leap:entry.tpl" skipfooter=true}
{if $myrole} <leap2:myrole>{$myrole}</leap2:myrole>
{/if}
{if $start} <leap2:date leap2:point="start" leap2:label="{$start}"></leap2:date>
{/if}
{if $end} <leap2:date leap2:point="end" leap2:label="{$end}"></leap2:date>
......
Markdown is supported
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