|
|
|
@ -66,7 +66,10 @@ class mods_extend extends Process {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$collections= $relsExtDom->getElementsByTagName('isMemberOfCollection'); |
|
|
|
|
$relationships = array('isMemberOfCollection','isMemberOf','isPartOf'); |
|
|
|
|
foreach ($relationships as $relationship) |
|
|
|
|
{ |
|
|
|
|
$collections= $relsExtDom->getElementsByTagName($relationship); |
|
|
|
|
for ($i=0; $i < $collections->length; $i++) { |
|
|
|
|
$collection = $collections->item($i); |
|
|
|
|
list(, $ident) = explode('/', $collection->getAttribute('rdf:resource')); |
|
|
|
@ -93,6 +96,7 @@ class mods_extend extends Process {
|
|
|
|
|
|
|
|
|
|
$modsRoot->appendChild($relatedItem); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$identifier = $modsDom->createElement('mods:identifier', $pid); |
|
|
|
|
$identifier->setAttribute('type', 'pid'); |
|
|
|
|