Search code examples
sqldspace

How to retrieve collection name based on item?


I am doing dspace search project. Here I have created seperate item page. Now I have one problem. I am not able to retrieve collection name in in which item appears. Collection2item displays only collection id.Please help.


Solution

  • Savio, thank you for clarifying that you are in DSpace 5.

    The following code appears to document the migration of community.name from DSpace 4 to DSpace 5.

    https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/resources/org/dspace/storage/rdbms/sqlmigration/postgres/V5.0_2014.09.26__DS-1582_Metadata_For_All_Objects.sql#L133-L141

    DSpace 5 introduced "metadata for all objects" and collection.name appears to be stored as a metadatavalue of "title".