I am investigating the following ticket: https://jira.duraspace.org/browse/DS-2766
Here are my questions. 1. In the collections endpoint, of the REST api, what is the intended behavior of expand=parentCommunityList? 2. In DSpace, can a collection exist in multiple communities? Question 1. expand=parentCommunityList In DSpace5x, the expand=parentCommunityList option returns the full hierarchy of owing communities for a collection (all the way to the top level community). In DSpace 6x, this option returns the subcommunity that is an immediate parent of the collection. Assuming that this behavior is incorrect in DSpace 6, the following configuration will need to be updated to follow the community2community hierarchy: https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/Collection.java#L81-L86 Question 2: Can a collection exist in multiple communities? The following method in DSpace 5x could imply that a collection can exist in multiple communities: https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/src/main/java/org/dspace/content/Collection.java#L1402 But, the REST API implies that there is a single "parentCommunity". https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-rest/src/main/java/org/dspace/rest/common/Collection.java#L136 and a separate parentCommunityList https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-rest/src/main/java/org/dspace/rest/common/Collection.java#L156 What is the intended set of relationships to be supported? If a collection can exist in multiple communities, how should the REST api respond to "expand=parentCommunityList" option? If a collection can exist in multiple communities, how can this relationship be created in our UIs? Terry -- Terry Brady Applications Programmer Analyst Georgetown University Library Information Technology https://www.library.georgetown.edu/lit/code 425-298-5498 (Seattle, WA) -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
