Browse Source

Travis

pull/807/head
Brandon Weigel 4 years ago
parent
commit
e2fdb9e3c2
  1. 7
      includes/orphaned_objects.inc

7
includes/orphaned_objects.inc

@ -169,7 +169,7 @@ function islandora_get_orphaned_objects() {
$qp->solrParams['fl'] = $params; $qp->solrParams['fl'] = $params;
$qp->solrLimit = 1000000000; $qp->solrLimit = 1000000000;
// Check islandora_compound_object filters, include compound children if necessary. // Check islandora_compound_object filters to include compound children.
if (variable_get('islandora_compound_object_hide_child_objects_solr', TRUE)) { 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 *]'); $fq = variable_get('islandora_compound_object_solr_fq', '-RELS_EXT_isConstituentOf_uri_mt:[* TO *]');
if (!empty($fq)) { if (!empty($fq)) {
@ -319,11 +319,10 @@ function islandora_delete_orphaned_objects_create_batch(array $pids) {
/** /**
* Solr query to check for deceased parents. * Solr query to check for deceased parents.
*
*/ */
function islandora_identify_missing_parents($parent) { function islandora_identify_missing_parents($parent) {
$parent_params = "PID"; $parent_params = "PID";
$parent_test = substr($parent, strpos($parent, '/') +1); $parent_test = substr($parent, strpos($parent, '/') + 1);
$parent_query = 'PID:"' . $parent_test . '"'; $parent_query = 'PID:"' . $parent_test . '"';
$qp = new islandoraSolrQueryProcessor(); $qp = new islandoraSolrQueryProcessor();
$qp->buildQuery($parent_query); $qp->buildQuery($parent_query);
@ -337,7 +336,7 @@ function islandora_identify_missing_parents($parent) {
watchdog_exception('Islandora', $e, 'Got an exception searching for parent objects .', array(), WATCHDOG_ERROR); watchdog_exception('Islandora', $e, 'Got an exception searching for parent objects .', array(), WATCHDOG_ERROR);
$parent_results = array(); $parent_results = array();
} }
return($parent_results); return ($parent_results);
} }

Loading…
Cancel
Save