|
|
|
@ -429,6 +429,14 @@ class ObjectHelper {
|
|
|
|
|
return ''; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (($xsl_path = "$path/xsl/convertQDC.xsl") && |
|
|
|
|
($xsl = DOMDocument::load($xsl_path)) && |
|
|
|
|
($ds = DOMDocument::loadXML($xmlstr))) { |
|
|
|
|
$transform = new XSLTProcessor(); |
|
|
|
|
$transform->importStylesheet($domdoc); |
|
|
|
|
return $transform->transformToHTML($ds); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
$simplexml = new SimpleXMLElement($xmlstr); |
|
|
|
|
|
|
|
|
|
$headers = array( |
|
|
|
@ -444,7 +452,7 @@ class ObjectHelper {
|
|
|
|
|
$rendered_data = ''; |
|
|
|
|
if ($grand_children = $child->children()) { |
|
|
|
|
foreach($grand_children as $grand_child) { |
|
|
|
|
$data[] = $grand_child->tagName() . ' = ' . (string)$grand_child; |
|
|
|
|
$data[] = $grand_child->getName() . ' = ' . (string)$grand_child; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
@ -474,6 +482,7 @@ class ObjectHelper {
|
|
|
|
|
|
|
|
|
|
return theme('table', $headers, $rows, array('class' => 'dc-table')); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Queries fedora for what we call the qualified dublin core. Currently only dc.coverage has |
|
|
|
|