function aff_vue_libelle($param, $parser) { $tab = get_info_generique($param, $parser); if (!isset($tab['opac_view'])) { return ''; } elseif ($tab['opac_view'] == 'default_opac') { return ''; } return sql_value("SELECT opac_view_name FROM opac_views WHERE opac_view_id=" . $tab['opac_view'] * 1); }
function aff_facettes_multicritere($param, $parser) { $tab = get_info_generique($param, $parser); if (isset($tab['multi_human_query'])) { $tmp = strip_tags($tab['multi_human_query']); if (preg_match_all('`facette = \\((.+?)\\)`', $tmp, $out)) { unset($out[0]); return implode(", ", $out[1]); } else { return ""; } } else { return ""; } }