#NEWLINE# def _build_source_metadata( self , source_element ) : #NEWLINE# #INDENT# " Method that extracts the relevant metadata from each 'source'\n            (text) of the input file.\n\n        Parameter\n        ---------\n        :param source_element: xml.etree.ElementTree.Element\n            A 'source' element of the file.\n        " #NEWLINE# url_element = source_element . find ( 'url' ) #NEWLINE# odin_url_element = source_element . find ( 'odin' ) #NEWLINE# citation_element = source_element . find ( 'citation' ) #NEWLINE# metadata = dict ( ) #NEWLINE# if ( url_element is not None ) : #NEWLINE# #INDENT# metadata [ 'source_link' ] = url_element . text #NEWLINE# #UNINDENT# if ( odin_url_element is not None ) : #NEWLINE# #INDENT# metadata [ 'source_archive_link' ] = odin_url_element . text #NEWLINE# #UNINDENT# if ( citation_element is not None ) : #NEWLINE# #INDENT# metadata [ 'source_description' ] = citation_element . text #NEWLINE# #UNINDENT# return citation_element