dSpace 7 angular - how to change sortField of communities/collections from dc.title to another one

308 views
Skip to first unread message

cerva...@gmail.com

unread,
Mar 4, 2024, 5:13:39 AM3/4/24
to DSpace Community

We have been developing dSpace based repositories for 12 years, but now we have a problem, we can’t solve.

This angular is brand new for us, thus we have to rewrite all our former changes we did formerly in dSpace both frontend and backend.

So, our Community/Collection structure and list should cover the institutional logic, not the strict alphabetical order.

It was easy to change until 6.x, where we changed the default sort field in CommunityServiceImpl.java and CollectionServiceImpl.java from dc.title, to dc.description.abstract and we hid the short description field in list, but wrote codes into it, according to our sort intentions.

But now, I can’t find a solution, neither changes in backend, nor in frontend files won’t help.

I have tried everthing, I have changed all dc.title field I found in ts and config files to dc.descrtiption.abstract, but nothing, I did the changes in java files written above.

Of course I rebuilt backend, frontend and restarted angular even I reindexed solr.

Dont’ you have an idea, how to change?

Ben Parkes

unread,
Mar 19, 2024, 7:07:06 AM3/19/24
to cerva...@gmail.com, DSpace Community

Hello,

 

I had a similar issue sorting search results and browse by lists by date accessioned and not date created. This was done by creating a custom <bean> in discovery.xml to use as a search field and filter:

https://wiki.lyrasis.org/display/DSDOC7x/Discovery

 

Best,

Ben

 

____________________________

Ben Parkes

Lead SCURL Developer | Digital Library Software Developer

Digital Library, Library & University Collections, University of Edinburgh 

Argyle House, Lady Lawson Street, Edinburgh EH3 9DR

Pronouns: He, him, his

 

 

From: dspace-c...@googlegroups.com <dspace-c...@googlegroups.com> on behalf of cerva...@gmail.com <cerva...@gmail.com>
Date: Monday, 4 March 2024 at 10:19
To: DSpace Community <dspace-c...@googlegroups.com>
Subject: [dspace-community] dSpace 7 angular - how to change sortField of communities/collections from dc.title to another one

This email was sent to you by someone outside the University.

You should only click on links or attachments if you are certain that the email is genuine and the content is safe.

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/f566a91f-8459-49a7-960b-6e9ecec60375n%40googlegroups.com.

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.

cerva...@gmail.com

unread,
Mar 22, 2024, 3:32:21 AM3/22/24
to DSpace Community
Hi
OK, I know how to add sort field to browse or search, but I want to change the default sort order of communities and colletions on the homepage for example

Reply all
Reply to author
Forward
0 new messages