omeka-s-modules / DspaceConnector

Connect to / import from a Dspace repo into Omeka S
GNU General Public License v3.0
1 stars 3 forks source link

Paginate through results somehow #7

Closed patrickmj closed 7 years ago

patrickmj commented 9 years ago

DSpace's expand=items when looking at a collection appears to have a limit on how many it will expand. Thus, for example, a collection with 129 items will only expand the data for 100 of them for import.

Will need to figure out DSpace API's system for getting all the items in a collections.

patrickmj commented 9 years ago

DSpace documentation updates on this:

https://wiki.duraspace.org/display/DSDOC5x/REST+API?focusedCommentId=69014608#comment-69014608

http://demo.dspace.org/javadocs/5/apidocs/org/dspace/rest/ItemsResource.html#getItems%28java.lang.String,%20java.lang.Integer,%20java.lang.Integer,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20javax.ws.rs.core.HttpHeaders,%20javax.servlet.http.HttpServletRequest%29

Will need to test whether this works with the current expand approach, or need to switch to just the array of items in a collection.

patrickmj commented 9 years ago

New comment today in the dspace thread referenced above, with links to possible fixes in DSpace

https://jira.duraspace.org/browse/DS-2655

https://github.com/DSpace/DSpace/pull/992