def dc2dict(exml):
 vals = {}
 regions = []
 keywords = []
 mdata = CswRecord(exml)
 identifier = mdata.identifier
 vals['language'] = mdata.language
 vals['spatial_representation_type'] = mdata.type
 keywords = mdata.subjects
 regions = [mdata.spatial]
 vals['temporal_extent_start'] = mdata.temporal
 vals['temporal_extent_end'] = mdata.temporal
 vals['constraints_other'] = mdata.license
 vals['date'] = sniff_date(mdata.modified)
 vals['title'] = mdata.title
 vals['abstract'] = mdata.abstract
 return [identifier, vals, regions, keywords]

def dc2dict ( exml ) : vals = { } regions = [ ] keywords = [ ] mdata = CswRecord ( exml ) identifier = mdata . identifier vals [ 'language' ] = mdata . language vals [ 'spatial_representation_type' ] = mdata . type keywords = mdata . subjects regions = [ mdata . spatial ] vals [ 'temporal_extent_start' ] = mdata . temporal vals [ 'temporal_extent_end' ] = mdata . temporal vals [ 'constraints_other' ] = mdata . license vals [ 'date' ] = sniff_date ( mdata . modified ) vals [ 'title' ] = mdata . title vals [ 'abstract' ] = mdata . abstract return [ identifier , vals , regions , keywords ]
generate dict of properties from csw:record .