Browse Source

updated constant name

pull/386/head
Alan Stanley 12 years ago
parent
commit
54adf10af2
  1. 8
      includes/manage_deleted_objects.inc

8
includes/manage_deleted_objects.inc

@ -148,7 +148,7 @@ function islandora_delete_form_select_objects(array $form, array &$form_state) {
'#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'),
@ -225,13 +225,13 @@ function islandora_get_deleted_objects($content_models) {
} }
$tuque = new IslandoraTuque(); $tuque = new IslandoraTuque();
$repository = $tuque->repository; $repository = $tuque->repository;
$query = <<<STRING $query = "
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