def __setitem__(self, key, val):
		key = key.lower()
		dict.__setitem__(self, key, val)
		if key == "key":
			bibfile_logger.info(
			"Setting 'key' as an entry *field*. (Recall 'citekey' holds the entry id.)")
		if key not in self._fields and key not in ["citekey","entry_type"] and val:
			self._fields.append(key)
dataset/ETHPy150Open matthew-brett/bibstuff/bibstuff/bibfile.py/BibEntry.__setitem__/original