(bug #4195) fix OAI repository

this fix the OAI repository, to don't return resumptionToken if there is no more record.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Nahuel ANGELINETTI 2010-02-16 14:34:58 +01:00 committed by Galen Charlton
parent 84b3c05c0d
commit e905106642
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ use C4::Context;
BEGIN {
eval { require PerlIO::gzip };
$GZIP = $@ ? 0 : 1;
$GZIP = ($@) ? 0 : 1;
}
unless ( C4::Context->preference('OAI-PMH') ) {
@ -303,7 +303,7 @@ sub new {
metadataPrefix => $token->{metadata_prefix},
from => $token->{from},
until => $token->{until},
offset => $pos ) );
offset => $pos ) ) if ($pos > $token->{offset});
return $self;
}
@ -350,7 +350,7 @@ sub new {
metadataPrefix => $token->{metadata_prefix},
from => $token->{from},
until => $token->{until},
offset => $pos ) );
offset => $pos ) ) if ($pos > $token->{offset});
return $self;
}