DDMAL / musiclibs

:guitar: Searching IIIF Manifests
Other
6 stars 2 forks source link

Auto-link URLs in manifests #97

Closed ahankinson closed 8 years ago

ahankinson commented 8 years ago

If a manifest has a URL in the metadata field, we should render it as a link in the description.

agpar commented 8 years ago

I'm not sure I understand the problem. Are you saying that any URL from a manifests metadata should be automatically converted to hyperlink on the detail page?

ahankinson commented 8 years ago

Yeah -- the gallica stuff, for example, has a bunch of links embedded in it.

jeromepl commented 8 years ago

Here is a nice regex for that: ^(https?:\/\/)([\da-z.-]+).([a-z.]{2,6})([\/\w .-])\/?$ I am assuming here that we only want to create a link when the http/https is specified.

ahankinson commented 8 years ago

I don't know... archie:// links would be kinda cool too...

(I'm kidding.)

agpar commented 8 years ago

McGillPride