EPrints Technical Mailing List Archive

Message: #08886


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] trunked DOI on citation


CAUTION: This e-mail originated outside the University of Southampton.

On Wed, 9 Mar 2022 at 05:41, Beaudoin, Mario via Eprints-tech
<eprints-tech@ecs.soton.ac.uk> wrote:
>
> Hello
>
> I have a curious bug On DOI field id_number when i enter this specific doi:
>
> https://doi.org/10.3397/1/37672
>
> when I show the metadata it trunk the doi after 10.3397/1
>
> In the databases the DOI show correctly
>
> Is-it is possible to modify perl_lib/EPrints/DOI.pm line 181
>
> if( $doi =~ m!^(10)\.([^/]+)/(\p{Graph}(?:\p{Graph}*)?)! )
>
> Without any other consequences elsewhere?
>
> thank
>

You could, but it would aid maintainability a lot if you simplified it to:

if( $doi =~ m!^(10)\.([^/]+)/(\p{Graph}+)! )

Cheers

P.S. there is a reason for the current regexp; the specification says
this of the DOI Suffix String:

]
] ... with the exception that the Suffix cannot start with */ where *
] is any single character. This is reserved for future use.
]
<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.niso.org%2Fapps%2Fgroup_public%2Fdownload.php%2F14689%2Fz39-84-2005_r2010.pdf&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8f1165ff19ca4285898408da02705a01%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637824979425076051%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=C9SccxIwTOUbnkDxbP8AsDKiVhe3ydqmLAznwe3VIys%3D&amp;reserved=0>
Section 4.3

I guess we aren't doing that. I will look at updating the DOI library.

--
  Matthew Kerwin
  https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmatthew.kerwin.net.au%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8f1165ff19ca4285898408da02705a01%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637824979425076051%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=dgs%2BVJF2sXX8o1GXDgUcNmJ6CT7TDHQL%2FhL7Da4EcAQ%3D&amp;reserved=0