def add_xsl_link(resourcebase):
 urlpath = reverse('prefix_xsl_line', args=[resourcebase.id])
 url = '{}{}'.format(settings.SITEURL, urlpath)
 (link, created) = Link.objects.get_or_create(resource=resourcebase, url=url, defaults=dict(name=ISO_XSL_NAME, extension='xml', mime='text/xml', link_type='metadata'))
 return created

def add_xsl_link ( resourcebase ) : urlpath = reverse ( 'prefix_xsl_line' , args = [ resourcebase . id ] ) url = '{}{}' . format ( settings . SITEURL , urlpath ) ( link , created ) = Link . objects . get_or_create ( resource = resourcebase , url = url , defaults = dict ( name = ISO_XSL_NAME , extension = 'xml' , mime = 'text/xml' , link_type = 'metadata' ) ) return created
add a link to the enriched iso metadata .