Commit ca924da7 authored by Staiger, Christine's avatar Staiger, Christine
Browse files

elabConnector: hyperlink formatting in ELN when webdav server configured in irods environment json;

otherwise text formatting of irods connection details.
parent 0d697f35
......@@ -154,7 +154,10 @@ class elabConnector():
raise
def addMetadata(self, url, meta=None, title='Title'):
info = '<a href="' + url + '">Experiment data in iRODS</a>'
if 'http' in url and '://' in url:
info = '<a href="' + url + '">Experiment data in iRODS</a>'
else:
info = url
if not meta == None:
info = info + '<br><table style="width: 500px;" cellspacing="1" cellpadding="1" border="1"><tbody>'
for key, value in meta.items():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment