Hello Fillemon,

The changes you are making to the code are not related to the class/methods
that DSpace uses to sort Communities/Collections. The sort field is
unfortunately hardcoded in another location.  So, that's why these changes
don't change the sort order as you expected.

I saw you asked this same question on dspace-tech, so I answered it over
there in this thread:
https://groups.google.com/d/msg/dspace-tech/hVS1LEY-b1c/Ke0pU2dcBQAJ

- Tim


On Sun, Nov 18, 2018 at 4:46 PM Fillemon Silvanus <
[email protected]> wrote:

> Good day, I'm looking for assistance.
>
> I'm experimenting with my DSpace interface by trying to edit the java
> files located in [dspace.src/dspace-api/src/main/java/org/dspace].
> Particularly the "NameAscendingComparator.java" file located in
> [dspace.src/dspace-api/src/main/java/org/dspace/content/comparator/NameAscendingComparator.java]
> and the "DDpaceObjectServiceImpl.java" file located in
> [dspace.src/dspace-api/src/main/java/org/dspace/content/DSpaceObjectServiceImpl.java].
>
> I'm trying to edit the sorting and ordering of the communities and
> sub-communities in the web page "localhost:8080/jspui/community-list". The
> snippet of code in the image below is from
> [dspace.src/dspace-api/src/main/java/org/dspace/content/DSpaceObjectServiceImpl.java].
> Below I edited the code in line 62, I changed the getMetadataFirstValue
> method parameter value to "descrption" from "title".
>
> [image: edit_dspaceObjectServiceImpl_file.png]
>
>
>
>
>
>
>
>
>
>
> The snippet of code in the image below is from
> [dspace.src/dspace-api/src/main/java/org/dspace/content/DSpaceObjectServiceImpl.java].
> Below you can see that I took the "introductory_text" value in line 588 by
> replacing the "name" value in line 596.
>
> [image: db_field_name.png]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> By this logic, I thought it was going to sort the communities and
> sub-communities by the Introductory Text(HTML) value instead of Name value.
> My problem is that the edits I made are not being reflected after maven
> packaging and ant updating. There seems to be no errors showing as well.
>
> So it's either not working or I'm not at the right place.
>
> My system specs:
>
>    - OS: Ubuntu distro 18.04
>    - DSpace version: 6.3 source
>    - 8Gb RAM
>
>
> I hope I was not too confusing and I appreciate any help. Thanks in
> advance.
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-community.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to