Browse Source

Style cleanup

pull/807/head
Brandon Weigel 4 years ago
parent
commit
9403d3be20
  1. 10
      includes/orphaned_objects.inc

10
includes/orphaned_objects.inc

@ -172,11 +172,11 @@ function islandora_get_orphaned_objects() {
$qp->solrParams['fl'] = $params;
$qp->solrLimit = 1000000000;
// Check islandora_compound_object settings and changes query filters to include compound children if necessary.
// Check islandora_compound_object filters, include compound children if necessary.
if (variable_get('islandora_compound_object_hide_child_objects_solr', TRUE)) {
$fq = variable_get('islandora_compound_object_solr_fq', '-RELS_EXT_isConstituentOf_uri_mt:[* TO *]');
if (!empty($fq)) {
// delete islandora_compound_object_solr_fq from the list of filters
// Delete islandora_compound_object_solr_fq from the list of filters.
$filters = $qp->solrParams['fq'];
if (($key = array_search($fq, $filters)) !== FALSE) {
unset($filters[$key]);
@ -230,12 +230,6 @@ function islandora_get_orphaned_objects() {
}
}
}
dd("List of orphans");
dd($orphaned_objects);
dd("List of dead parents");
dd($dead_parents);
dd("List of checked parents");
dd($already_checked);
$results = $orphaned_objects;
}

Loading…
Cancel
Save