@@ -, +, @@ - activate OAI-PMH with the inclusion of items as explained on bug 12252 - set the OAI-PMH:MaxCount to a low number, 50 for instance - go to the OAI-PMH page to get the records : [your koha catalogue]/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml - check that item data is included - get the resumptionToken at the end of the xml - got to the next page of records [your koha catalogue]/cgi-bin/koha/oai.pl?verb=ListRecords&resumptionToken=[your resumption token] - check that item data is now missing --- opac/oai.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/opac/oai.pl +++ a/opac/oai.pl @@ -577,6 +577,7 @@ sub new { $sth->execute( @bind_params ); my $count = 0; + my $format = $args{metadataPrefix} || $token->{metadata_prefix}; while ( my ($biblionumber, $timestamp) = $sth->fetchrow ) { $count++; if ( $count > $max ) { @@ -591,7 +592,7 @@ sub new { ); last; } - my $marcxml = $repository->get_biblio_marcxml($biblionumber, $args{metadataPrefix}); + my $marcxml = $repository->get_biblio_marcxml($biblionumber, $format); my $oai_sets = GetOAISetsBiblio($biblionumber); my @setSpecs; foreach (@$oai_sets) { --