Commit cb567e83 authored by Nigel McNie's avatar Nigel McNie
Browse files

Generate rel="related" instead of rel="relation" in resume, import it properly.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent d02ddb3c
......@@ -401,10 +401,10 @@ class LeapExportElementResumeCompositeChildBook extends LeapExportElementResumeC
public function ensure_siblings() {
$this->siblings = array(
'relation' => new LeapExportElementResumeCompositeSibling($this->parentartefact, $this->exporter, $this, array(
'related' => new LeapExportElementResumeCompositeSibling($this->parentartefact, $this->exporter, $this, array(
'title' => $this->originalrecord->contribution,
'content' => $this->originalrecord->description,
), 'achievement', 'relation')
), 'achievement', 'related')
);
}
......
......@@ -145,7 +145,7 @@ class LeapImportResume extends LeapImportArtefactPlugin {
// If it exists, the related achievement will be the user's role in
// relation to the book
foreach ($entry->link as $link) {
if ($importer->curie_equals($link['rel'], '', 'relation') && isset($link['href'])) {
if ($importer->curie_equals($link['rel'], '', 'related') && isset($link['href'])) {
if ($potentialrole = $importer->get_entry_by_id((string)$link['href'])) {
if (PluginImportLeap::is_rdf_type($potentialrole, $importer, 'achievement')) {
// We have a related achievement!
......
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