Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3842

Allow custom sorting of Communities in Community List

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: More Details Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.7
    • Fix Version/s: None
    • Component/s: API, XMLUI
    • Labels:
      None
    • Environment:
      Centos 7. Java 1.8.0_131. Tomcat 8.5.15
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      **Sometimes, alphabetical sorting of Communities is a not adequate for certain Institutions. In particular, for organizations where hierarchy is of great importance.

      Therefore, I propose to be able to sort communities acording to a metadata value stored in DB.

      The attached code allows to order communities by a value stored in "dc.identifier.other".

      Changes to /dspace-api/src/main/java/org/dspace/content/Community.java

      https://gist.github.com/ppmdo/f2b96ec37812f0da45f43a5ac8d6e354

       

      Changes to /dspace-api/src/main/java/org/dspace/content/DSpaceObject.java

      https://gist.github.com/ppmdo/df6f152f6da6e6804de4afb27f5311a4

       

      Changes to XMLUI's Administrative Aspect:

      https://gist.github.com/ppmdo/7adf770e8a922f9da42e4a3cabcea6a1

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            pablop Pablo Prieto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: