Browse Source

(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>
3.2.x
Nahuel ANGELINETTI 15 years ago
committed by Galen Charlton
parent
commit
e905106642
  1. 6
      opac/oai.pl

6
opac/oai.pl

@ -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…
Cancel
Save