Issue 12327
Improve Identifier link formation for given type
12327
Reporter: kbraak
Type: Improvement
Summary: Improve Identifier link formation for given type
Priority: Major
Status: Open
Created: 2012-11-15 17:18:19.963
Updated: 2014-01-06 15:18:54.087
Description: Following the review http://dev.gbif.org/code/cru/CR-GBIFCOM-9 it was decided that we need to create better Identifier links, formed for the given type.
Relates to IdentifierUtils.getIdentifierLink()
For example "ftp.gbif.org" should become "ftp://ftp.gbif.org" and similar plain urls without a scheme should become http ones.
We also need to:
1. check how handlers should look like.
2. Check if a URI must have the scheme included, and if not, we can't add it.
3. check what format the given DOI actually has. We might get already fully formatted links like this one: http://dx.doi.org/10.1016/S1097-2765(03)00225-9 or a DOI using some other http resolver already. In the long term we probably need a separate DOI class. For example, see this DOI validator class: http://code.ohloh.net/file?fid=c3vJbl2zxoS1CmJKqHicGpGJpJQ&cid=ocdnnSX1FN0&s=%22DoiValidator%22&mp=1&ml=1&me=1&md=1&browser=Default#L11
Please remember to add corresponding unit tests for your work - see IdentifierUtilsTest.]]>