'assemble download links for pycsw'

def download_links(self):

    links = []
    for url in self.link_set.all():
        if (url.link_type == 'metadata'):
            continue
        if (url.link_type == 'html'):
            links.append((self.title, 'Web    address    (URL)', 'WWW:LINK-1.0-http--link', url.url))
        elif (url.link_type in ('OGC:WMS', 'OGC:WFS', 'OGC:WCS')):
            links.append((self.title, url.name, url.link_type, url.url))
        else:
            description = ('%s    (%s    Format)' % (self.title, url.name))
            links.append((self.title, description, 'WWW:DOWNLOAD-1.0-http--download', url.url))
    return links
