frontend
frontend copied to clipboard
render urls in scientific/custom metadata
Issue Name
render urls (http addresses) in metadata as html links
Summary
there are various places in scientific metadata, instrument custom metadata, sample description where is would be beneficial to reference remote resources in a more direct manner. A metadatum containing an url like https://my.sample.database
should preferably be rendered as a link.
Steps to Reproduce
add http address or arbitrary html code to metadata
Current Behaviour
any http address or html code in strings will show as strings
Preferred Behaviour
http addresses are "urlified", e.g. https://my.sample.database
showing up as my.sample.database
Extra Details
modifying metadata-view.component.html
<ng-template #stringValue>
<!-- {{ metadata.value }} -->
<div [innerHTML]="metadata.value"></div>
</ng-template>
would provide a very simple way to give an ingestor all the freedom - probably too simple and too much freedom -, but doing so I can easily create instrument sample pages perfectly matching my expectations: