Skip Menu |

This queue is for tickets about the Logfile-EPrints CPAN distribution.

Report information
The Basics
Id: 43157
Status: new
Priority: 0/
Queue: Logfile-EPrints

People
Owner: Nobody in particular
Requestors: pauldmartin [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: DSpace handles with a decimal in them not supported
Logfile-Eprints 1.19 Perl v5.8.8 Linux 2.6.18-92.1.13.el5xen SMP In Logfile::EPrints::Mapping::DSpace on lines 52-62, the regular expressions meant to match the DSpace repository handle only match handles that are composed of all integers. Dspace allows periods (.) in their handle name so the regular expressions should match these types of handles as well.
Subject: DSpace.pm.diff
--- DSpace.pm 2007-10-31 09:13:21.000000000 -0400 +++ DSpace1.pm 2009-02-09 15:53:46.000000000 -0500 @@ -49,13 +49,13 @@ warn "Hmm, error parsing hit - no page request found in: ".$hit->raw."\n"; } # Abstract or community page - elsif( $page =~ /\/handle\/(\d+)\/(\d+)$/ ) + elsif( $page =~ /\/handle\/(\d|.)+\/(\d+)$/ ) { $hit->{identifier} = $self->_identifier( $1, $2 ); $self->{handler}->abstract( $hit ); } # Bitstream /dspace/bitstream/2160/229/1/Holocene+environments+faynan.pdf - elsif( $page =~ /\/bitstream\/(\d+)\/(\d+)\/(\d+)\// ) + elsif( $page =~ /\/bitstream\/(\d|.)+\/(\d+)\/(\d+)\// ) { $hit->{identifier} = $self->_identifier( $1, $2 ); $self->{handler}->fulltext( $hit );