EPrints Technical Mailing List Archive
Message: #02107
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI
- From: Mark Gregson <mark.gregson@qut.edu.au>
- Date: Fri, 19 Jul 2013 09:28:29 +1000
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@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Ian Stuart Sent: Thursday, 18 July 2013 5:35 PM To: eprints-tech@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/
- References:
- [EP-tech] Large CrossRef DOI prefixes are not rendered as a linkable DOI
- From: "Adams, Thomas" <tadams@cshl.edu>
- [EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Large CrossRef DOI prefixes are not rendered as a linkable DOI
- Prev by Date: [EP-tech] openaire plugin
- Next by Date: [EP-tech] Re: Memory usage in 3.2, Sword 1.3 and epdata packages
- Previous by thread: [EP-tech] Re: Large CrossRef DOI prefixes are not rendered as a linkable DOI
- Next by thread: [EP-tech] Присоединяйтесь к моей сети контактов в LinkedIn!
- Index(es):