[EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI

Mark Gregson mark.gregson at qut.edu.au
Fri Jul 19 00:28:29 BST 2013


Actually I think the equivalent {n,m} syntax would be /^(doi:)?10\.\d{4,}\// which matches 4 or more digits (and I just learnt, not simply 0-9 as it can match numbers from other writing systems http://perldoc.perl.org/perlre.html).  

Unfortunately this still won't match all potential DOIs however as the DOI specs, allow prefixes to be almost any string starting with '10.'.

"DOI names may incorporate any printable characters from the Universal Character Set (UCS-2), of ISO/IEC 10646, which is the character set defined by Unicode v2.0."

A more correct test would be /^(doi:)?10(\.[^.]+)+\// but for the purposes of rendering the link it might be simpler and sufficient to do /^(doi:)?10\.[^/]+\// ...

Cheers
Mark


Mark Gregson | Applications and Development Team Leader
Library eServices | Queensland University of Technology
Level 3 | R Block | Kelvin Grove Campus | GPO Box 2434 | Brisbane 4001
Phone: +61 7 3138 3782 | Web: http://eprints.qut.edu.au/
ABN: 83 791 724 622
CRICOS No: 00213J


-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Ian Stuart
Sent: Thursday, 18 July 2013 5:35 PM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI

On 18/07/13 08:26, Ian Stuart wrote:
> On 17/07/13 21:31, Adams, Thomas wrote:
>
>>           if( $value !~ /^(doi:)?10\.\d\d\d\d+\// )
> Make this /^(doi:)?10\.\d{3,4}\//
D'Oh!!! \d{4,5}


-- 

Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org Bibliographics and Multimedia Service Delivery team, EDINA, The University of Edinburgh.

http://edina.ac.uk/

This email was sent via the University of Edinburgh.

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/



More information about the Eprints-tech mailing list