Beispiel #1
0
 /**
  * Appends Dublin Core metadata.
  *
  * Appends a metadata element, an child element with the required format,
  * and further children for each of the Dublin Core fields present in the
  * item.
  */
 public function appendMetadata($item, $metadataElement)
 {
     $omekaXml = new Output_ItemOmekaXml($item, 'item');
     $node = $omekaXml->getDoc()->documentElement;
     $node = $metadataElement->ownerDocument->importNode($node, true);
     $metadataElement->appendChild($node);
 }
Beispiel #2
0
<?php

$omekaXml = new Output_ItemOmekaXml($item, 'item');
echo $omekaXml->getDoc()->saveXML();