def parse_citation(elem, directory, citation_manager):
 citation_type = elem.attrib.get('type', None)
 citation_class = CITATION_CLASSES.get(citation_type, None)
 if (not citation_class):
  log.warning(('Unknown or unspecified citation type: %s' % citation_type))
  return None
 return citation_class(elem, directory, citation_manager)

def parse_citation ( elem , directory , citation_manager ) : citation_type = elem . attrib . get ( 'type' , None ) citation_class = CITATION_CLASSES . get ( citation_type , None ) if ( not citation_class ) : log . warning ( ( 'Unknown or unspecified citation type: %s' % citation_type ) ) return None return citation_class ( elem , directory , citation_manager )
parse an abstract citation entry from the specified xml element .