Browse Source

ISLANDORA-250 Wrong change for filter capitilization fixed.

pull/105/head
Adam Vessey 14 years ago
parent
commit
1a8ca9af3a
  1. 4
      ObjectHelper.inc

4
ObjectHelper.inc

@ -510,7 +510,7 @@ class ObjectHelper {
$pids = array(); $pids = array();
$query = 'select $object from <#ri> $query = 'select $object from <#ri>
where <info:fedora/' . $pid . '> <fedora-model:hasModel> $object where <info:fedora/' . $pid . '> <fedora-model:hasModel> $object
and $object <fedora-model:state> <info:fedora/Fedora-system:def/model#Active>'; and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>';
$content_models = $collectionHelper->getRelatedItems($pid, $query); $content_models = $collectionHelper->getRelatedItems($pid, $query);
if (empty($content_models)) { if (empty($content_models)) {
@ -529,7 +529,7 @@ class ObjectHelper {
} }
$cmodels = array(); $cmodels = array();
foreach ($sxml->xpath('//@uri') as $uri) { foreach ($sxml->xpath('//@uri') as $uri) {
if (strpos($uri, 'fedora-system:fedoraObject-3.0') != FALSE && $include_fedora_system_content_models == FALSE) { if (strpos($uri, 'fedora-system:FedoraObject-3.0') != FALSE && $include_fedora_system_content_models == FALSE) {
continue; continue;
} }
$cmodel_pid = substr(strstr($uri, '/'), 1); $cmodel_pid = substr(strstr($uri, '/'), 1);

Loading…
Cancel
Save