Bugzilla – Attachment 42974 Details for
Bug 14927
OAI-PMH listRecords result should include item data when using a resumption token
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14927 Returns item info when resumptionToken is used
Bug-14927-Returns-item-info-when-resumptionToken-i.patch (text/plain), 1.69 KB, created by
Gaetan Boisson
on 2015-09-30 13:43:12 UTC
(
hide
)
Description:
Bug 14927 Returns item info when resumptionToken is used
Filename:
MIME Type:
Creator:
Gaetan Boisson
Created:
2015-09-30 13:43:12 UTC
Size:
1.69 KB
patch
obsolete
>From a7beec957443012f1f8d797b6eac4ba630a9c4bb Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Wed, 30 Sep 2015 12:16:52 +0200 >Subject: [PATCH] Bug 14927 Returns item info when resumptionToken is used > >To test: > >- 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 > >Apply the patch, and repeat previous steps: item data is back. > >Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com> >--- > opac/oai.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/opac/oai.pl b/opac/oai.pl >index 9bf11b5..7eb0f6b 100755 >--- a/opac/oai.pl >+++ b/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) { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14927
:
42969
|
42974
|
43009