Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3887

Unable to get item count in REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: 7.0
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      The /rest/filtered-items function of the DSpace 6 API does not have a crucial feature needed to build a paginated search. 

      At the moment, this API function accepts query parameters such as "offset" and "limit", which are critical to display the current page of results, however the return value of the API call lacks the total number of results

      To help clarify, picture the following. In a webapp, I would do a search on all metadata fields for "calculus", and the users will expect something similar to the following, "Viewing results 1-12 of 200 results". At the moment, it is not possible to compute the "200" in the previous example without running a very wasteful query to get the full result set

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            steven.marsden Steven Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: