Browse Source

reverted constant

pull/386/head
Alan Stanley 12 years ago
parent
commit
16abeaf6ee
  1. 10
      includes/manage_deleted_objects.inc

10
includes/manage_deleted_objects.inc

@ -147,8 +147,7 @@ function islandora_delete_form_select_objects(array $form, array &$form_state) {
'#value' => t('Restore selected objects'), '#value' => t('Restore selected objects'),
'#attributes' => array('source' => 'restore'), '#attributes' => array('source' => 'restore'),
); );
if (user_access(FEDORA_PURGE)) {
if (user_access(ISLANDORA_PURGE)) {
$form['purge'] = array( $form['purge'] = array(
'#type' => 'submit', '#type' => 'submit',
'#value' => t('Irrevocably purge selected objects'), '#value' => t('Irrevocably purge selected objects'),
@ -156,6 +155,7 @@ function islandora_delete_form_select_objects(array $form, array &$form_state) {
); );
} }
return $form; return $form;
} }
@ -225,13 +225,13 @@ function islandora_get_deleted_objects($content_models) {
} }
$tuque = new IslandoraTuque(); $tuque = new IslandoraTuque();
$repository = $tuque->repository; $repository = $tuque->repository;
$query = " $query = <<<STRING
select \$subject \$title \$object from <#ri> select \$subject \$title \$object from <#ri>
where ($qualifier) where ($qualifier)
and \$subject <info:fedora/fedora-system:def/model#state> <info:fedora/fedora-system:def/model#Deleted> and \$subject <info:fedora/fedora-system:def/model#state> <info:fedora/fedora-system:def/model#Deleted>
and \$subject<info:fedora/fedora-system:def/model#hasModel> \$object and \$subject<info:fedora/fedora-system:def/model#hasModel> \$object
and \$subject <dc:title> \$title"; and \$subject <dc:title> \$title
STRING;
$objects = $repository->ri->itqlQuery($query, 'unlimited'); $objects = $repository->ri->itqlQuery($query, 'unlimited');
$deleted_objects = array(); $deleted_objects = array();
foreach ($objects as $object) { foreach ($objects as $object) {

Loading…
Cancel
Save