Skip to content

Commit

Permalink
Merge pull request #116 from ruebot/7.x-ISLANDORA-1042
Browse files Browse the repository at this point in the history
7.x islandora 1042
  • Loading branch information
willtp87 committed Sep 11, 2014
2 parents 96b8f31 + 34c2c2e commit f968185
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
5 changes: 0 additions & 5 deletions includes/ingest.form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
// Constants.
define('ISLANDORA_BASIC_COLLECTION_FAKE_PID', 'fake:pid');

// @codingStandardsIgnoreStart
// XXX: This should be removed at some point in the future.
define('FAKE_PID', ISLANDORA_BASIC_COLLECTION_FAKE_PID);
// @codingStandardsIgnoreEnd

/**
* Manage action that for ingestion of an object into the given collection.
*
Expand Down
43 changes: 0 additions & 43 deletions islandora_basic_collection.module
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ define('ISLANDORA_BASIC_COLLECTION_CREATE_CHILD_COLLECTION', 'create child colle
define('ISLANDORA_BASIC_COLLECTION_MANAGE_COLLECTION_POLICY', 'manage collection policy');
define('ISLANDORA_BASIC_COLLECTION_MIGRATE_COLLECTION_MEMBERS', 'migrate collection members');

// @codingStandardsIgnoreStart
// XXX: These should be removed at somepoint in the future.
define('CREATE_CHILD_COLLECTION', ISLANDORA_BASIC_COLLECTION_CREATE_CHILD_COLLECTION);
define('MANAGE_COLLECTION_POLICY', ISLANDORA_BASIC_COLLECTION_MANAGE_COLLECTION_POLICY);
define('MIGRATE_COLLECTION_MEMBERS', ISLANDORA_BASIC_COLLECTION_MIGRATE_COLLECTION_MEMBERS);
// @codingStandardsIgnoreEnd

/**
* Implements hook_menu().
*/
Expand Down Expand Up @@ -523,42 +516,6 @@ function islandora_basic_collection_get_member_objects(AbstractObject $object, $
return array($count, $results);
}

/**
* Get objects associated with this object.
*
* Currently, we are only concerned with the with isMemberOf and
* isMemberOfCollection relationships.
*
* @deprecated
* Deprecated in favour of islandora_basic_collection_get_member_objects(),
* which should actually be able to page through results.
*
* @param AbstractObject $object
* The collection object whose members will be fetched.
* @param int $page_number
* The page number in the query for members.
* @param int $page_size
* The number of results per page page from the query for members.
*
* @return array|string
* The array of query results as provided by
* RepositoryQuery::parseSparqlResults().
*/
function islandora_basic_collection_get_objects(AbstractObject $object, $page_number = 0, $page_size = -1) {
module_load_include('inc', 'islandora', 'includes/utilities');
$message = islandora_deprecated('7.x-1.2', 'Use islandora_basic_collection_get_member_objects() to page and avoid potential memory issues with large collections.');
trigger_error(filter_xss($message), E_USER_DEPRECATED);

$new_results = islandora_basic_collection_get_member_objects($object, $page_number, $page_size);
if ($new_results) {
return $new_results[1];
}
else {
drupal_set_message(t('Error getting related objects for %s', array('%s' => $object->id)), 'error');
return '';
}
}

/**
* Get all existing collections.
*
Expand Down

0 comments on commit f968185

Please sign in to comment.