How to change items sorting from title to date in collection-home.jsp page

515 views
Skip to first unread message

monu arora

unread,
Aug 24, 2018, 6:28:03 AM8/24/18
to DSpace Community
Hi,

Is there any way to change sorting option from title to date of the items displaying in the collection home page.

Please do the needful.

Tim Donohue

unread,
Aug 24, 2018, 9:58:37 AM8/24/18
to monu arora, DSpace Community
Hello,

The Collection homepage of DSpace already sorts by date by default.  Items displayed on the Collection homepage are the "Recent Submissions", which are the list of Items sorted by date submitted.

You can see this behavior on our demo site at: http://demo.dspace.org/xmlui/handle/10673/2

If I've misunderstood your question, please respond on this mailing list and let us know.

Tim

--
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 dspace-communi...@googlegroups.com.
To post to this group, send email to dspace-c...@googlegroups.com.
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

monu arora

unread,
Aug 24, 2018, 10:14:42 AM8/24/18
to DSpace Community
Thanks dear to respond, but i am using JSPUI not XMlUI and in JSPUI (dspace5.5) collections items are sorted by title(by default) in collection home page and i want to change that default title sort to date sort.title to date

Tim Donohue

unread,
Aug 24, 2018, 10:38:55 AM8/24/18
to monu arora, DSpace Community
Hello,

Sorry, I overlooked that you are using JSPUI.  However, I believe the sorting in the XMLUI and JSPUI is the same.

Here's that same sample Collection in our demo site's JSPUI. It also is sorted by submission date (by default):  http://demo.dspace.org/jspui/handle/10673/2

Is it possible you customized your site locally in some way?  I don't believe the DSpace JSPUI Collection homepage has ever sorted by title (by default).  But, hopefully, someone on this mailing list will correct me if I'm wrong.

- Tim

On Fri, Aug 24, 2018 at 9:14 AM monu arora <monuar...@gmail.com> wrote:
Thanks dear to respond, but i am using JSPUI not XMlUI and in JSPUI (dspace5.5) collections items are sorted by title(by default) in collection home page and i want to change that default title sort to date sort.title to date

--
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 dspace-communi...@googlegroups.com.
To post to this group, send email to dspace-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

monu arora

unread,
Aug 24, 2018, 11:58:39 AM8/24/18
to DSpace Community
Thanks dear,
But is it possible to change sorting from submission date to other date means i have another date field and i want sort from that date field.Is there Any option in dspace.cfg or somewhere else where i can change sorting option from one to another.

Tim Donohue

unread,
Aug 24, 2018, 12:01:47 PM8/24/18
to monu arora, DSpace Community
Hello,

Unfortunately, the sorting of Items on the Collection Homepage is not easily configurable at this time.  You would need to modify the code behind the JSPUI directly.  We don't have a guide for doing that yet, but perhaps someone else on this list will be able to provide sample code (if you feel comfortable editing/modifying the code behind the JSPUI).

- Tim

On Fri, Aug 24, 2018 at 10:58 AM monu arora <monuar...@gmail.com> wrote:
Thanks dear,
But is it possible to change sorting from submission date to other date means i have another date field and i want sort from that date field.Is there Any option in dspace.cfg or somewhere else where i can change sorting option from one to another.

--
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 dspace-communi...@googlegroups.com.
To post to this group, send email to dspace-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Ishaan Kumar

unread,
Mar 12, 2020, 10:05:20 AM3/12/20
to DSpace Community
Hey Tim, hope you are good.

I need your kind help. Can you provide me a sample code for home.jsp page where i can show recent submissions or changes in config.cfg file.

Thanks
Regards
Ishaan


On Friday, August 24, 2018 at 8:08:55 PM UTC+5:30, Tim Donohue wrote:
Hello,

Sorry, I overlooked that you are using JSPUI.  However, I believe the sorting in the XMLUI and JSPUI is the same.

Here's that same sample Collection in our demo site's JSPUI. It also is sorted by submission date (by default):  http://demo.dspace.org/jspui/handle/10673/2

Is it possible you customized your site locally in some way?  I don't believe the DSpace JSPUI Collection homepage has ever sorted by title (by default).  But, hopefully, someone on this mailing list will correct me if I'm wrong.

- Tim

On Fri, Aug 24, 2018 at 9:14 AM monu arora <monuar...@gmail.com> wrote:
Thanks dear to respond, but i am using JSPUI not XMlUI and in JSPUI (dspace5.5) collections items are sorted by title(by default) in collection home page and i want to change that default title sort to date sort.title to date

--
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 dspace-c...@googlegroups.com.

To post to this group, send email to dspace-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Tim Donohue

unread,
Mar 12, 2020, 10:12:03 AM3/12/20
to Ishaan Kumar, DSpace Community
Hi Ishaan,

All DSpace code is open source and available in GitHub.  So, if you are looking for the home.jsp code related to recent submissions, it is easily viewable in the GitHub codebase.  For example, in DSpace 6.x, here's the section of code that begins the recent submissions section of the home.jsp: https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-jspui/src/main/webapp/home.jsp#L82

If you have more specific questions about the Recent Submissions or are running into problems, please feel free to ask on the Tech Support mailing list.  See the Support options listed at https://wiki.lyrasis.org/display/DSPACE/Support

Tim

From: dspace-c...@googlegroups.com <dspace-c...@googlegroups.com> on behalf of Ishaan Kumar <ishaan...@gmail.com>
Sent: Thursday, March 12, 2020 1:35 AM
To: DSpace Community <dspace-c...@googlegroups.com>
Subject: Re: [dspace-community] How to change items sorting from title to date in collection-home.jsp page
 
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/460e3c3e-3152-4947-ae0a-9aa83292d6c4%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages