Actions

Developer Area/Import//Export/LEAP Export/Internal Artefact Plugin: Difference between revisions

From Mahara Wiki

< Developer Area‎ | Import//Export‎ | LEAP Export
(Created page with "The internal artefact plugin hooks into the LEAP export system to export all profile related artefacts. Due to profile artefacts not…")
 
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The internal artefact plugin hooks into the [[Developer Area/Import//Export/LEAP Export|LEAP export system]] to export all profile related artefacts. Due to profile artefacts not mapping nicely to entries - in fact, most profile artefacts become persondata elements within an entry - this plugin generates its own XML for most of them.
The internal artefact plugin hooks into the [[Developer Area/Import%2f%2fExport/LEAP Export|LEAP export system]] to export all profile related artefacts. Due to profile artefacts not mapping nicely to entries - in fact, most profile artefacts become persondata elements within an entry - this plugin generates its own XML for most of them.


<div id="section_1">
<div id="section_1">


== Export Strategy ==
==Export Strategy==


Apart from the Occupation and Industry profile fields, all artefacts are exported in a [http://wiki.cetis.ac.uk/2009-03/LEAP2A_types#person LEAP2A person entry]. This entry always has the id <code>portfolio:artefactinternal</code>, and is referenced by the <code></code> tag for the feed. Inside this entry are [http://wiki.cetis.ac.uk/2009-03/LEAP2A_personal_data#persondata leap:persondata elements] for most of Mahara's profile fields. The address fields are exported in a [http://wiki.cetis.ac.uk/2009-03/LEAP2A_literals#spatial leap:spatial element].
Apart from the Occupation and Industry profile fields, all artefacts are exported in a [http://wiki.cetis.ac.uk/2009-03/LEAP2A_types#person LEAP2A person entry]. This entry always has the id <code>portfolio:artefactinternal</code>, and is referenced by the <code></code> tag for the feed. Inside this entry are [http://wiki.cetis.ac.uk/2009-03/LEAP2A_personal_data#persondata leap:persondata elements] for most of Mahara's profile fields. The address fields are exported in a [http://wiki.cetis.ac.uk/2009-03/LEAP2A_literals#spatial leap:spatial element].
Line 11: Line 11:
</div><div id="section_2">
</div><div id="section_2">


== Further Information ==
==Further Information==


* [http://git.mahara.org/?p=mahara.git;a=blob;f=htdocs/artefact/internal/export/leap/lib.php;hb=HEAD artefact/internal/export/leap/lib.php in source control] 
* [http://git.mahara.org/?p=mahara.git;a=blob;f=htdocs/artefact/internal/export/leap/lib.php;hb=HEAD artefact/internal/export/leap/lib.php in source control] 
* [[Developer Area/Import//Export/LEAP Import/Internal Artefact Plugin|LEAP Internal Import]] 
* [[Developer Area/Import%2f%2fExport/LEAP Import/Internal Artefact Plugin|LEAP Internal Import]] 


</div>
</div>
[[Category:Developer Area]][[Category:Plugins]][[Category:Artefact Plugins]][[Category:LEAP]]

Latest revision as of 16:49, 16 Mayıs 2011

The internal artefact plugin hooks into the LEAP export system to export all profile related artefacts. Due to profile artefacts not mapping nicely to entries - in fact, most profile artefacts become persondata elements within an entry - this plugin generates its own XML for most of them.

Export Strategy

Apart from the Occupation and Industry profile fields, all artefacts are exported in a LEAP2A person entry. This entry always has the id portfolio:artefactinternal, and is referenced by the tag for the feed. Inside this entry are leap:persondata elements for most of Mahara's profile fields. The address fields are exported in a leap:spatial element.

Profile icons are linked to this element using a related link type. These are the only links created for the person entry.