/** * Assign necessary Smarty variables and return a template name to * load in order to display a summary of the item suitable for use in * search results. * * @access public * * @param string $view The current view. * @param boolean $useUnscopedHoldingsSummary Whether or not the result should show an unscoped holdings summary. * * @return string Name of Smarty template file to display. */ public function getSearchResult($view = 'list', $useUnscopedHoldingsSummary = false) { global $interface; global $user; if (!isset($this->eContentRecord)) { $this->eContentRecord = new EContentRecord(); $this->eContentRecord->id = $this->getUniqueID(); $this->eContentRecord->find(true); } $interface->assign('source', $this->eContentRecord->source); $interface->assign('eContentRecord', $this->eContentRecord); $interface->assign('useUnscopedHoldingsSummary', $useUnscopedHoldingsSummary); parent::getSearchResult(); $linkUrl = '/EcontentRecord/' . $this->getUniqueID() . '/Home?searchId=' . $interface->get_template_vars('searchId') . '&recordIndex=' . $interface->get_template_vars('recordIndex') . '&page=' . $interface->get_template_vars('page'); if ($useUnscopedHoldingsSummary) { $linkUrl .= '&searchSource=marmot'; } else { $linkUrl .= '&searchSource=' . $interface->get_template_vars('searchSource'); } $interface->assign('summUrl', $linkUrl); //Get Rating require_once ROOT_DIR . '/sys/eContent/EContentRating.php'; $econtentRating = new EContentRating(); $econtentRating->recordId = $this->getUniqueID(); //$logger->log("Loading ratings for econtent record {$this->getUniqueID()}", PEAR_LOG_DEBUG); $interface->assign('summRating', $econtentRating->getRatingData($user, false)); $interface->assign('summAjaxStatus', true); //Override fields as needed return 'RecordDrivers/Econtent/result.tpl'; }
/** * Assign necessary Smarty variables and return a template name for the current * view to load in order to display a summary of the item suitable for use in * search results. * * @param string $view The current view. * @param boolean $useUnscopedHoldingsSummary Whether or not the result should show an unscoped holdings summary. * * @return string Name of Smarty template file to display. * @access public */ public function getSearchResult($view = 'list', $useUnscopedHoldingsSummary = false) { global $interface; // MARC results work just like index results, except that we want to // enable the AJAX status display since we assume that MARC records // come from the ILS: $template = parent::getSearchResult($view, $useUnscopedHoldingsSummary); $interface->assign('summAjaxStatus', true); return $template; }
/** * Assign necessary Smarty variables and return a template name for the current * view to load in order to display a summary of the item suitable for use in * search results. * * @param string $view The current view. * * @return string Name of Smarty template file to display. * @access public */ public function getSearchResult($view = 'list') { global $interface; $template = parent::getSearchResult($view); $interface->assign('summOrigination', $this->getOrigination()); $interface->assign('summOriginationId', $this->getOriginationID()); $interface->assign('summPhysicalLocation', $this->getPhysicalLocation()); $interface->assign('isPartOfArchiveSeries', $this->isPartOfArchiveSeries()); return 'RecordDrivers/Ead/result-' . $view . '.tpl'; }
/** * Assign necessary Smarty variables and return a template name for the current * view to load in order to display a summary of the item suitable for use in * search results. * * @param string $view The current view. * * @return string Name of Smarty template file to display. * @access public */ public function getSearchResult($view = 'list') { global $interface; // get other links from MARC field 787 $interface->assign('coreOtherLinks', $this->getOtherLinks()); // MARC results work just like index results, except that we want to // enable the AJAX status display since we assume that MARC records // come from the ILS: $template = parent::getSearchResult($view); $interface->assign('summAjaxStatus', true); return $template; }
/** * Assign necessary Smarty variables and return a template name for the current * view to load in order to display a summary of the item suitable for use in * search results. * * @param string $view The current view. * * @return string Name of Smarty template file to display. * @access public */ public function getSearchResult($view = 'list') { global $configArray; global $interface; parent::getSearchResult($view); $interface->assign('summImages', $this->getAllImages()); if (in_array('Image', $this->getFormats()) && $this->getSubtitle() == '') { if ($this->getHighlightedTitle()) { $interface->assign('summHighlightedTitle', $this->getHighlightedTitle()); } $interface->assign('summTitle', $this->getTitle()); } $interface->assign('summSubtitle', $this->getSubtitle()); $mainFormat = $this->getFormats(); if (is_array($mainFormat)) { $mainFormat = $mainFormat[0]; } else { $mainFormat = ''; } $resultDates = $this->getResultDates(); if ($resultDates) { $interface->assign('summDate', $resultDates); } if (isset($this->fields['event_creation_displaydate_str'])) { if ($mainFormat == 'Image') { $interface->assign('summImageDate', $this->fields['event_creation_displaydate_str']); } else { $interface->assign('summCreationDate', $this->fields['event_creation_displaydate_str']); } } if (isset($this->fields['event_use_displaydate_str'])) { $interface->assign('summUseDate', $this->fields['event_use_displaydate_str']); } if (isset($this->fields['event_use_displayplace_str'])) { $interface->assign('summUsePlace', $this->fields['event_use_displayplace_str']); } return 'RecordDrivers/Lido/result-' . $view . '.tpl'; }