If a MARC record contains a URL, and that URL doesn't have http:// at the start of it, then the link isn't correctly generated. We should catch that and insert the http prefix.
Probably best to do this on display, or both display and cataloguing.
In MARC21, we can only assume http:// if the first indicator of the 856 is 4. The 856 can handle other protocols (remember that MARC predates the WWW by quite a few years). From Library of Congress 0 - Email 1 - FTP 2 - Remote login (Telnet) 3 - Dial-up 4 - HTTP 7 - Method specified in subfield $2
Ah, good point, I hadn't checked the spec. However, at the moment it seems (without checking) that Koha assumes the browser knows what the URL is, which can be wrong too.
Maybe a good first step would be to add http in case of first indicator = 4 and the URL doesn't start with that or https already and leave the content alone otherwise.
*** Bug 23337 has been marked as a duplicate of this bug. ***
I think that there could be a URL validator in the editor, but we shouldn't be auto-adding things to existing data I reckon.
I think bug 8609 might be a good successor to this one.
(In reply to David Cook from comment #7) > I think bug 8609 might be a good successor to this one. Only that it was closed ages ago. - Is this still something we should look into? I assume we would not change the data, but fix anytime we create a HTML link?
Still valid? Or fixed by bug 32794?