|
|
@ -244,8 +244,8 @@ class CollectionPolicy extends XMLDatastream { |
|
|
|
$rootEl->appendChild($relationshipEl); |
|
|
|
$rootEl->appendChild($relationshipEl); |
|
|
|
|
|
|
|
|
|
|
|
$newDom->appendChild($rootEl); |
|
|
|
$newDom->appendChild($rootEl); |
|
|
|
|
|
|
|
$this->xml = new DOMDocument(); |
|
|
|
$this->xml = DOMDocument::loadXML($newDom->saveXml()); |
|
|
|
$this->xml->loadXML($newDom->saveXml()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -427,7 +427,8 @@ class CollectionPolicy extends XMLDatastream { |
|
|
|
if ($this->xml == NULL) { |
|
|
|
if ($this->xml == NULL) { |
|
|
|
$fedoraItem = new Fedora_Item($this->pid); |
|
|
|
$fedoraItem = new Fedora_Item($this->pid); |
|
|
|
$ds = $fedoraItem->get_datastream_dissemination($this->dsid); |
|
|
|
$ds = $fedoraItem->get_datastream_dissemination($this->dsid); |
|
|
|
$this->xml = DOMDocument::loadXML($ds); |
|
|
|
$this->xml = new DOMDocument(); |
|
|
|
|
|
|
|
$this->xml->loadXML($ds); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|