(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:
parent
84b3c05c0d
commit
e905106642
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue