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

/rest/collections/xxx?expand=parentCommunityList only returns 1 parent community

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      The service api seems to only populate the immediate parent community into a collection object when expand=parentCommunityList is provided.

      REQUEST
      rest/collections/714b9bd8-1e92-4bf4-9aac-93134a3e6540?expand=parentCommunityList

      OUTPUT

      <collection>
      <expand>parentCommunity</expand>
      <expand>items</expand>
      <expand>license</expand>
      <expand>logo</expand>
      <expand>all</expand>
      <handle>123456789/6</handle>
      <name>coll2</name>
      <type>collection</type>
      <UUID>714b9bd8-1e92-4bf4-9aac-93134a3e6540</UUID>
      <copyrightText/>
      <introductoryText/>
      <numberItems>1</numberItems>
      <parentCommunityList>
      <expand>parentCommunity</expand>
      <expand>collections</expand>
      <expand>subCommunities</expand>
      <expand>logo</expand>
      <expand>all</expand>
      <handle>123456789/5</handle>
      <name>subcomm</name>
      <type>community</type>
      <UUID>641e5bff-a884-44f8-952e-183c50710327</UUID>
      <copyrightText/>
      <countItems>1</countItems>
      <introductoryText/>
      <shortDescription/>
      <sidebarText/>
      </parentCommunityList>
      <shortDescription/>
      <sidebarText/>
      </collection>

      NOTE: the parent community does have a parent

      /rest/communities/641e5bff-a884-44f8-952e-183c50710327?expand=parentCommunity

      <community>
      <expand>collections</expand>
      <expand>subCommunities</expand>
      <expand>logo</expand>
      <expand>all</expand>
      <handle>123456789/5</handle>
      <name>subcomm</name>
      <type>community</type>
      <UUID>641e5bff-a884-44f8-952e-183c50710327</UUID>
      <copyrightText/>
      <countItems>1</countItems>
      <introductoryText/>
      <parentCommunity>
      <expand>parentCommunity</expand>
      <expand>collections</expand>
      <expand>subCommunities</expand>
      <expand>logo</expand>
      <expand>all</expand>
      <handle>123456789/2</handle>
      <name>top community</name>
      <type>community</type>
      <UUID>84605574-9fbd-4a35-9fc6-dac3f20f2d7e</UUID>
      <copyrightText/>
      <countItems>2</countItems>
      <introductoryText/>
      <shortDescription/>
      <sidebarText/>
      </parentCommunity>
      <shortDescription/>
      <sidebarText/>
      </community>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              terrywbrady Terrence W Brady
              Reporter:
              terrywbrady Terrence W Brady
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: