def format_citation_details(self, entry, citation_template=None):
		"""Return string."""
		if citation_template is None:
			citation_template = self.citation_template
		try:
			type_template = citation_template[entry.entry_type]  #:note: recall entry_type was stored as lowercase
		except __HOLE__:  #no template exists for this entry_type -> use default
			type_template = citation_template['default_type']
			shared_logger.warning("Unknown entry type: "+entry.entry_type+". Using default format.")
		#:note: entry will return None instead of KeyError
		result = type_template % entry
		return result
dataset/ETHPy150Open dschwilk/bibstuff/bibstuff/bibstyles/shared.py/EntryFormatter.format_citation_details