Re: [dspace-tech] REST get bitstreams gives only 20
Thanks, Terry! I am sure that’s it, but as I am on a break til the new year, I can‘t try it out til then. ;-) I will post a proper response then. Thanks again, Paul Terry Brady schrieb am Fr. 21. Dez. 2018 um 18:05: > Paul, > > Try setting limit=100 to bring back a large list. Or, you can set > offset=20 to paginate through the results. > > > https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java#L286 > > I think that there may be code that caps the maximum size that limit can > be set to. > > The limit and offset parameters should exist on most enpoints that return > a list. > > Terry > > On Fri, Dec 21, 2018 at 6:42 AM Paul Warner wrote: > >> Hi, >> >> I am using this command: >> >> >>- GET /items/{item id}/bitstreams - Return item bitstreams. >> >> to get the bitstream information for an item. I have some items with >> more than 20 bitstreams, but I seem to get only the first 20 with the REST >> API. I get the file information for the item with this command, then I go >> through the list and find the BUNDLE: TEXT files that are at the end, and >> capture the text. But if these files are not in the list, because it cuts >> off at 20, then my program fails for those items. How do I get the whole >> list via REST? >> >> Thanks in advance for any tips. >> >> Best regards, >> Paul Warner >> >> -- >> All messages to this mailing list should adhere to the DuraSpace Code of >> Conduct: https://duraspace.org/about/policies/code-of-conduct/ >> --- >> You received this message because you are subscribed to the Google Groups >> "DSpace Technical Support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dspace-tech+unsubscr...@googlegroups.com. > > >> To post to this group, send email to dspace-tech@googlegroups.com. >> Visit this group at https://groups.google.com/group/dspace-tech. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Terry Brady > Applications Programmer Analyst > Georgetown University Library Information Technology > https://github.com/terrywbrady/info > 425-298-5498 (Seattle, WA) > > -- > All messages to this mailing list should adhere to the DuraSpace Code of > Conduct: https://duraspace.org/about/policies/code-of-conduct/ > --- > You received this message because you are subscribed to a topic in the > Google Groups "DSpace Technical Support" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dspace-tech/qYtTDZG4z1I/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > dspace-tech+unsubscr...@googlegroups.com. > To post to this group, send email to dspace-tech@googlegroups.com. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
[dspace-tech] Record causes "query did not return a unique result: 2"
Hello: We have an old record (from 2007) that is causing an error when we try to view it normally: query did not return a unique result: 2 I can view it by going into the Admin UI and finding it by its internal id. I checked the database. The internal id and the handle are unique. I exported it, and then tried to delete it, but the delete causes an error: SQL Error: 0, SQLState: 08003 (a lot of times). I withdrew it, but it still acts as if it isn't withdrawn and gives the "query did not return..." error. This record is causing our OAI indexing to fail. Does anyone have any ideas of how I can either fix this record or get rid of it? Thanks! PS: using DSpace 6.3 XMLUI -- *** George Kozak Digital Library Specialist Cornell University Library - IT 218 Olin Library Cornell University Ithaca, NY 14853 607-255-8924 g...@cornell.edu -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
Re: [dspace-tech] REST get bitstreams gives only 20
Paul, Try setting limit=100 to bring back a large list. Or, you can set offset=20 to paginate through the results. https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java#L286 I think that there may be code that caps the maximum size that limit can be set to. The limit and offset parameters should exist on most enpoints that return a list. Terry On Fri, Dec 21, 2018 at 6:42 AM Paul Warner wrote: > Hi, > > I am using this command: > > >- GET /items/{item id}/bitstreams - Return item bitstreams. > > to get the bitstream information for an item. I have some items with more > than 20 bitstreams, but I seem to get only the first 20 with the REST API. > I get the file information for the item with this command, then I go > through the list and find the BUNDLE: TEXT files that are at the end, and > capture the text. But if these files are not in the list, because it cuts > off at 20, then my program fails for those items. How do I get the whole > list via REST? > > Thanks in advance for any tips. > > Best regards, > Paul Warner > > -- > All messages to this mailing list should adhere to the DuraSpace Code of > Conduct: https://duraspace.org/about/policies/code-of-conduct/ > --- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dspace-tech+unsubscr...@googlegroups.com. > To post to this group, send email to dspace-tech@googlegroups.com. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- Terry Brady Applications Programmer Analyst Georgetown University Library Information Technology https://github.com/terrywbrady/info 425-298-5498 (Seattle, WA) -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
[dspace-tech] REST get bitstreams gives only 20
Hi, I am using this command: - GET /items/{item id}/bitstreams - Return item bitstreams. to get the bitstream information for an item. I have some items with more than 20 bitstreams, but I seem to get only the first 20 with the REST API. I get the file information for the item with this command, then I go through the list and find the BUNDLE: TEXT files that are at the end, and capture the text. But if these files are not in the list, because it cuts off at 20, then my program fails for those items. How do I get the whole list via REST? Thanks in advance for any tips. Best regards, Paul Warner -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.