getVar('result'); // browse results (subclass of SearchResult)
$va_facets = $this->getVar('facets'); // array of available browse facets
$va_criteria = $this->getVar('criteria'); // array of browse criteria
$vs_browse_key = $this->getVar('key'); // cache key for current browse
$va_access_values = $this->getVar('access_values'); // list of access values for this user
$vn_hits_per_block = (int)$this->getVar('hits_per_block'); // number of hits to display per block
$vn_start = (int)$this->getVar('start'); // offset to seek to before outputting results
$vn_is_advanced = (int)$this->getVar('is_advanced');
$va_views = $this->getVar('views');
$vs_current_view = $this->getVar('view');
$va_view_icons = $this->getVar('viewIcons');
$vs_current_sort = $this->getVar('sort');
$vs_sort_dir = $this->getVar('sort_direction');
$vs_table = $this->getVar('table');
$t_instance = $this->getVar('t_instance');
$vb_is_search = ($this->request->getController() == 'Search');
$va_options = $this->getVar('options');
$vs_extended_info_template = caGetOption('extendedInformationTemplate', $va_options, null);
$vb_ajax = (bool)$this->request->isAjax();
$va_browse_info = $this->getVar("browseInfo");
$vs_sort_control_type = caGetOption('sortControlType', $va_browse_info, 'dropdown');
$o_config = $this->getVar("config");
$vs_result_col_class = $o_config->get('result_col_class');
$vs_refine_col_class = $o_config->get('refine_col_class');
$va_export_formats = $this->getVar('export_formats');
$va_add_to_set_link_info = caGetAddToSetInfo($this->request);
if (!$vb_ajax) { // !ajax
?>
getVar('sortBy')) && sizeof($va_sorts)) {
print "
- "._t("Sort by:")."
\n";
$i = 0;
foreach($va_sorts as $vs_sort => $vs_sort_flds) {
$i++;
if ($vs_current_sort === $vs_sort) {
print "- {$vs_sort}
\n";
} else {
print "- ".caNavLink($this->request, $vs_sort, '', '*', '*', '*', array('view' => $vs_current_view, 'key' => $vs_browse_key, 'sort' => $vs_sort, '_advanced' => $vn_is_advanced ? 1 : 0))."
\n";
}
if($i < sizeof($va_sorts)){
print "-
";
}
}
print "- ".caNavLink($this->request, '', '', '*', '*', '*', array('view' => $vs_current_view, 'key' => $vs_browse_key, 'direction' => (($vs_sort_dir == 'asc') ? _t("desc") : _t("asc")), '_advanced' => $vn_is_advanced ? 1 : 0))."
";
print "
\n";
}
}
?>
numHits(), ($va_browse_info["labelSingular"]) ? $va_browse_info["labelSingular"] : $t_instance->getProperty('NAME_SINGULAR'), ($qr_res->numHits() == 1) ? _t("Result") : _t("Results"));
?>
";
}
?>
0) {
$i = 0;
foreach($va_criteria as $va_criterion) {
print "".$va_criterion['facet'].':';
if ($va_criterion['facet_name'] != '_search') {
print caNavLink($this->request, '', 'browseRemoveFacet', '*', '*', '*', array('removeCriterion' => $va_criterion['facet_name'], 'removeID' => $va_criterion['id'], 'view' => $vs_current_view, 'key' => $vs_browse_key));
}else{
print ' '.$va_criterion['value'];
}
$i++;
if($i < sizeof($va_criteria)){
print " ";
}
$va_current_facet = $va_facets[$va_criterion['facet_name']];
if((sizeof($va_criteria) == 1) && !$vb_is_search && $va_current_facet["show_description_when_first_facet"] && ($va_current_facet["type"] == "authority")){
$t_authority_table = new $va_current_facet["table"];
$t_authority_table->load($va_criterion['id']);
$vs_facet_description = $t_authority_table->get($va_current_facet["show_description_when_first_facet"]);
}
}
}
?>
".$vs_facet_description."
";
}
?>
">
render("Browse/browse_refine_subview_html.php");
?>
render('Browse/browse_panel_subview_html.php');
} //!ajax
?>