default_template = "
{% if authperso.info.view %} {{ authperso.info.view }} {% else %} {{ authperso.name }} : {{ authperso.info.isbd }} {% endif%}
"; } public function render($datas){ //on rajoute nos éléments... //le titre $render_datas = array(); $render_datas['title'] = $this->msg["frbr_entity_authperso_view_title"]; $authperso_authority = new authperso_authority($datas[0]); $render_datas['authperso'] = $authperso_authority->format_datas(); //on rappelle le tout... return parent::render($render_datas); } public function get_format_data_structure(){ $format = array(); $format[] = array( 'var' => "title", 'desc' => $this->msg['frbr_entity_authperso_view_title'] ); $authperso = array( 'var' => "authperso", 'desc' => $this->msg['frbr_entity_authperso_view_label'], 'children' => $this->prefix_var_tree(authperso_authority::get_format_data_structure(),"authperso") ); $format[] = $authperso; $format = array_merge($format,parent::get_format_data_structure()); return $format; } }