예제 #1
0
 /**
  * Handle an advanced search
  *
  * @return mixed
  */
 public function advancedAction()
 {
     // Standard setup from base class:
     $view = parent::advancedAction();
     // Set up facet information:
     $view->facetList = $this->processAdvancedFacets($this->getAdvancedFacets()->getFacetList(), $view->saved);
     $prefferedFacets = array();
     $config = $this->getServiceLocator()->get('VuFind\\Config')->get('facets');
     foreach ($config->PreferredFacets as $field => $values) {
         $vals = array();
         $i = 0;
         foreach ($values as $val) {
             $i++;
             $vals[$val] = $i;
         }
         $prefferedFacets[$field] = $vals;
     }
     $view->preferredFacets = $prefferedFacets;
     $specialFacets = $this->parseSpecialFacetsSetting($view->options->getSpecialAdvancedFacets());
     if (isset($specialFacets['illustrated'])) {
         $view->illustratedLimit = $this->getIllustrationSettings($view->saved);
     }
     if (isset($specialFacets['checkboxes'])) {
         $view->checkboxFacets = $this->processAdvancedCheckboxes($specialFacets['checkboxes'], $view->saved);
     }
     $view->ranges = $this->getAllRangeSettings($specialFacets, $view->saved);
     $view->hierarchicalFacets = $this->getHierarchicalFacets();
     return $view;
 }
예제 #2
0
 /**
  * Handle an advanced search
  *
  * @return mixed
  */
 public function advancedAction()
 {
     // Standard setup from base class:
     $view = parent::advancedAction();
     // Set up facet information:
     $view->facetList = $this->processAdvancedFacets($this->getAdvancedFacets()->getFacetList(), $view->saved);
     return $view;
 }
예제 #3
0
 /**
  * Handle an advanced search
  *
  * @return mixed
  */
 public function advancedAction()
 {
     // Standard setup from base class:
     $view = parent::advancedAction();
     // Set up facet information:
     $view->limiterList = $this->processAdvancedFacets($this->getAdvancedFacets(), $view->saved);
     $view->expanderList = $this->processAdvancedExpanders($view->saved);
     $view->searchModes = $this->processAdvancedSearchModes($view->saved);
     $view->dateRangeLimit = $this->processPublicationDateRange($view->saved);
     return $view;
 }
예제 #4
0
 /**
  * Handle an advanced search
  *
  * @return mixed
  */
 public function advancedAction()
 {
     // Standard setup from base class:
     $view = parent::advancedAction();
     // Set up facet information:
     $view->facetList = $this->processAdvancedFacets($this->getAdvancedFacets()->getFacetList(), $view->saved);
     $specialFacets = $view->options->getSpecialAdvancedFacets();
     if (stristr($specialFacets, 'illustrated')) {
         $view->illustratedLimit = $this->getIllustrationSettings($view->saved);
     }
     if (stristr($specialFacets, 'daterange')) {
         $view->dateRangeLimit = $this->getDateRangeSettings($view->saved);
     }
     return $view;
 }
예제 #5
0
 /**
  * Handle an advanced search
  *
  * @return mixed
  */
 public function advancedAction()
 {
     // Standard setup from base class:
     $view = parent::advancedAction();
     // Set up facet information:
     $view->facetList = $this->processAdvancedFacets($this->getAdvancedFacets()->getFacetList(), $view->saved);
     $specialFacets = $this->parseSpecialFacetsSetting($view->options->getSpecialAdvancedFacets());
     if (isset($specialFacets['illustrated'])) {
         $view->illustratedLimit = $this->getIllustrationSettings($view->saved);
     }
     if (isset($specialFacets['checkboxes'])) {
         $view->checkboxFacets = $this->processAdvancedCheckboxes($specialFacets['checkboxes'], $view->saved);
     }
     $view->ranges = $this->getAllRangeSettings($specialFacets, $view->saved);
     $view->hierarchicalFacets = $this->getHierarchicalFacets();
     return $view;
 }
예제 #6
0
 /**
  * Handle an advanced search
  *
  * @return mixed
  */
 public function advancedAction()
 {
     if (!$this->isAvailable()) {
         throw new \Exception('MetaLib is not enabled');
     }
     $view = parent::advancedAction();
     $view = $this->initSets($view, $this->getRequest()->getQuery());
     return $view;
 }