Dear Ricardo,

I don't understand the logic around that code block in
CollectionsResource.java, but I'm on DSpace 6.3 as well and I can use
expand on a collection to get the parent community, for example:

https://dspacetest.cgiar.org/rest/collections/8ea4b611-1f59-4d4e-b78d-a9921a72cfe7?expand=parentCommunity

Were you doing something differently? You can check the git log for that
file to see its history.

Cheers,

On Tue, May 18, 2021 at 11:25 PM [email protected] <[email protected]>
wrote:

> Hi,
>
> For some time now, I've been trying to get the parent Community for when
> reading the collections through the Rest API.
>
> Today I finally went to the source code and found, in
> CollectionsResource.java the line
>
> Collection collection = new
> org.dspace.rest.common.Collection(dspaceCollection, servletContext, *null*,
> context, limit, offset);
>
> I wish to know why the parameter  expand is set to null. I changed to expand
> (a string passed to the function getCollections) and it seems to work as
> expected.
>
> As I  think no code is made without a reason, I feel insecure to let it
> modified without further notice or advice.
>
> Any help is welcome.
>
> Thanks,
>
> Ricardo
>
> --
> All messages to this mailing list should adhere to the 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/35842b5e-f6a9-4d40-944b-32035503f47fn%40googlegroups.com
> <https://groups.google.com/d/msgid/dspace-tech/35842b5e-f6a9-4d40-944b-32035503f47fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Alan Orth
[email protected]
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch

-- 
All messages to this mailing list should adhere to the 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAKKdN4WiRjw6r6ZBcUoruM%2BT1NpxA1BY319%3Dgd1SVNvFRc5CZA%40mail.gmail.com.

Reply via email to