'accepts a node representing a catalogue result
record and builds a POD structure representing
the search result.'

def metadatarecord2dict(self, rec):

    if (rec is None):
        return None
    result = {}
    result['uuid'] = rec.identifier
    result['title'] = rec.identification.title
    result['abstract'] = rec.identification.abstract
    keywords = []
    for kw in rec.identification.keywords:
        keywords.extend(kw['keywords'])
    result['keywords'] = keywords
    result['attribution'] = {'title': '', 'href': ''}
    result['name'] = result['uuid']
    result['bbox'] = {'minx': rec.identification.bbox.minx, 'maxx': rec.identification.bbox.maxx, 'miny': rec.identification.bbox.miny, 'maxy': rec.identification.bbox.maxy}
    result['download_links'] = self.extract_links(rec)
    result['metadata_links'] = [('text/xml', 'ISO', self.url_for_uuid(rec.identifier, 'http://www.isotc211.org/2005/gmd'))]
    return result
