Browse Source

reverted constant

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

12
includes/manage_deleted_objects.inc

@ -147,15 +147,15 @@ 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'),
'#attributes' => array('source' => 'purge'), '#attributes' => array('source' => 'purge'),
); );
} }
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