From 2371ea7869f07ab929d2fe7b60dfa1b3680726f9 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Tue, 19 Jun 2012 09:39:57 -0300 Subject: [PATCH] Use function to get query. --- CollectionClass.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CollectionClass.inc b/CollectionClass.inc index e1ec846e..0e518b6d 100644 --- a/CollectionClass.inc +++ b/CollectionClass.inc @@ -533,16 +533,12 @@ class CollectionClass { function showFieldSets($page_number) { module_load_include('inc', 'fedora_repository', 'api/fedora_item'); module_load_include('inc', 'fedora_repository', 'CollectionPolicy'); - //module_load_include('inc', 'fedora_repository', 'BatchIngest'); //Legacy code? global $base_url; global $user; $tabset = array(); - $query = NULL; + $query = self::getCollectionQuery($this->pid); $item = new Fedora_Item($this->pid); - if ($item->exists() && array_key_exists('QUERY', $item->datastreams)) { - $query = $item->get_datastream_dissemination('QUERY'); - } $results = $this->getRelatedItems($this->pid, $query); $collection_items = $this->renderCollection($results, $this->pid, NULL, NULL, $page_number);