original_docstring: Load basic info for the currently selected taxon
docstring: Load basic info for the currently selected taxon
docstring_tokens: Load basic info for the currently selected taxon
code: async def load_basic_info_section(self):
          """Load basic info for the currently selected taxon"""
          # Name, rank
          logger.info('Taxon: Loading basic info section')
          item = ThreeLineAvatarIconListItem(
              text=self.selected_taxon.name,
              secondary_text=self.selected_taxon.rank.title(),
              tertiary_text=self.selected_taxon.preferred_common_name,
          )
  
          # Icon (if available)
          icon_path = get_icon_path(self.selected_taxon.iconic_taxon_id)
          if icon_path:
              item.add_widget(ImageLeftWidget(source=icon_path))
          self.basic_info.add_widget(item)
  
          # Star Button
          star_icon = StarButton(
              self.selected_taxon.id,
              is_selected=get_app().is_starred(self.selected_taxon.id),
          )
          star_icon.bind(on_release=self.on_star)
          item.add_widget(star_icon)
  
          # Other attrs
          for k in ['id', 'is_active', 'observations_count', 'complete_species_count']:
              label = k.title().replace('_', ' ')
              value = getattr(self.selected_taxon, k)
              item = OneLineListItem(text=f'{label}: {value}')
              self.basic_info.add_widget(item)
code_tokens: async def load_basic_info_section ( self ) : logger . info ( 'Taxon: Loading basic info section' ) item = ThreeLineAvatarIconListItem ( text = self . selected_taxon . name , secondary_text = self . selected_taxon . rank . title ( ) , tertiary_text = self . selected_taxon . preferred_common_name , ) icon_path = get_icon_path ( self . selected_taxon . iconic_taxon_id ) if icon_path : item . add_widget ( ImageLeftWidget ( source = icon_path ) ) self . basic_info . add_widget ( item ) star_icon = StarButton ( self . selected_taxon . id , is_selected = get_app ( ) . is_starred ( self . selected_taxon . id ) , ) star_icon . bind ( on_release = self . on_star ) item . add_widget ( star_icon ) for k in [ 'id' , 'is_active' , 'observations_count' , 'complete_species_count' ] : label = k . title ( ) . replace ( '_' , ' ' ) value = getattr ( self . selected_taxon , k ) item = OneLineListItem ( text = f'{label}: {value}' ) self . basic_info . add_widget ( item )
short_docstring: Load basic info for the currently selected taxon
short_docstring_tokens: Load basic info for the currently selected taxon
comment: """Load basic info for the currently selected taxon"""$SEP$# Name, rank$SEP$# Icon (if available)$SEP$# Star Button$SEP$# Other attrs