diff --git a/includes/manage_deleted_objects.inc b/includes/manage_deleted_objects.inc index fa3647e3..095d2b43 100644 --- a/includes/manage_deleted_objects.inc +++ b/includes/manage_deleted_objects.inc @@ -279,11 +279,11 @@ function islandora_get_contentmodels_with_deleted_members() { $tuque = new IslandoraTuque(); $repository = $tuque->repository; - $query = "PREFIX fm: - SELECT DISTINCT ?object ?label FROM <#ri> - WHERE { + $query = "PREFIX fm: + SELECT DISTINCT ?object ?label FROM <#ri> + WHERE { {?subject fm:state fm:Deleted; - fm:hasModel ?object; + fm:hasModel ?object; } OPTIONAL{ ?object fm:label ?label