/** * Returns a summary of the holdings information for a single id. Used to display * within the search results and at the top of a full record display to ensure * the holding information makes sense to all users. * * @param string $id the id of the bid to load holdings for * @param boolean $forSearch whether or not the summary will be shown in search results * @return array an associative array with a summary of the holdings. */ public function getStatusSummary($id, $forSearch = false) { global $memCache; $key = 'status_summary_' . $id . '_' . $forSearch; $cachedValue = $memCache->get($key); if ($cachedValue == false || isset($_REQUEST['reload'])) { global $configArray; $cachedValue = $this->driver->getStatusSummary($id, $forSearch); $memCache->add($key, $cachedValue, 0, $configArray['Caching']['item_data']); } return $cachedValue; }