frontend icon indicating copy to clipboard operation
frontend copied to clipboard

render urls in scientific/custom metadata

Open schluenz opened this issue 2 years ago • 0 comments

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: image

schluenz avatar May 04 '22 10:05 schluenz