def __getitem__(self, field):  #field is usually a BibTeX field but can be a citekey
		field = field.lower()
		if field == "key":
			bibfile_logger.info(
			"Seeking 'key' as an entry *field*. (Recall 'citekey' holds the entry id.)")
		try:
			result = dict.__getitem__(self, field)
		#:TODO: rethink this decision (but it is used for formatting)
		#:note: 20080331 changed KeyError to return '' instead of None
		except KeyError:
			crossref = self.get('crossref', '')
			if isinstance(crossref, self.__class__):
				result = crossref[field]
			else:
				result = ''
		#:note: 20080331 add handling of month macros
		if field == 'month' and result in monthmacros_en:
			result = MONTH_DICT[result]
		return result
dataset/ETHPy150Open matthew-brett/bibstuff/bibstuff/bibfile.py/BibEntry.__getitem__/original