[ 
https://jira.duraspace.org/browse/DS-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19655#action_19655
 ] 

Andrea Schweer commented on DS-764:
-----------------------------------

I did some more testing, this time forcing some items to be considered 
non-disseminable. The results were now just as expected.

The repository I used for testing has 2652 records that I expect to be returned 
by getRecords.

To reproduce the problem and to test the patch, I added the lines
{code}
if (itemInfo.itemID % 33 == 0)
    throw new CannotDisseminateFormatException("artificially generated 
problem");
{code}
before the String recordXML = getRecordFactory().create(itemInfo,schemaURL, 
metadataPrefix); statement in DSpaceOAICatalog.java.

With the modification but without the patch, listIdentifiers returns 2652 
records and getRecords returns 97 (first batch, three items not disseminable, 
no resumption token generated).

With the modification and with the patch, listIdentifiers returns 2652 records 
and getRecords returns 2572 records. The log file shows a total of 80 records 
logged as "ignored", which exactly accounts for the difference.

> OAI-PMH ListRecords false no result answer and missing resumptionToken
> ----------------------------------------------------------------------
>
>                 Key: DS-764
>                 URL: https://jira.duraspace.org/browse/DS-764
>             Project: DSpace
>          Issue Type: Bug
>          Components: OAI-PMH
>    Affects Versions: 1.6.0, 1.6.1, 1.6.2
>            Reporter: Claudia Jürgen
>            Priority: Major
>         Attachments: disseminable-items.patch, DSpaceOAICatalog.java.patch
>
>
> The ListRecords request can result in a completely empty list, if there are 
> non-disseminable items. Furthermore the resumption Token is not created if 
> the next chunk contains indisseminable items.
> E. g. if the first 100 items  or (since 1.7  n items  as configured in 
> dspace.cfg with oai.response.max-records) are not disseminable, this results 
> in a completely empty result set and the default OAI error 
> "cannotDisseminateFormat", even if there are items to be disseminate via this 
> crosswalk.
> Furthermore if there are a couple of items disseminable, you get a list of 
> records, but no resumptionToken.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to