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