EPrints Technical Mailing List Archive
Message: #03895
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Sorting records in the browse views
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Sorting records in the browse views
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Thu, 5 Feb 2015 15:12:47 +0000
Just a guess: Try ‘date;res=year’ instead of ‘date;res:year’. We have a menu in one of our views like: menus => [ { fields => ["date;res=year"], reverse_order => 1, allow_null => 1, hideempty => 0, new_column_at => [1, 1], }, ], that seems to work – not sure if this is directly transferrable to the variations… Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Budden, Yvonne Hi All, Potentially easy question for everyone! We have long had a function to browse the publication in our repository by Researcher (http://wrap.warwick.ac.uk/view/author_id/) and these views have worked very well as tools for staff members and repository staff as a quick view of how up to date a person’s list might be. However some of these lists are now getting extremely unwieldy due to the sheer number of publications we have, so I’m looking to introduce a few variations into the browse lists. Now I’ve easily managed the options to add sorting by Research Funder and Item Type but the one people really want is to sort by Year. I have managed sort by date but that uses the full date rather than just the year. Can anyone let me know the best way to do this – the example below is as far as I have got but will sort by the full date rather than year: id => "author_id", allow_null => 0, hideempty => 1, menus => [ { fields => [ "creators_browse_id" ], new_column_at => [1, 1], mode => "sections", open_first_section => 1, group_range_function => "EPrints::Update::Views::cluster_ranges_30", grouping_function => "EPrints::Update::Views::group_by_a_to_z", } ], order => "-date/title", include => 1, variations => [ “date;reverse”, “type”, “funder”, “DEFAULT”, ], I have tried using “date;res:year,reverse” but this produces an error! Many thanks for any help people can give! Best, Yvonne Mrs Yvonne Budden, Scholarly Communications Manager, University of Warwick Chair: UK Council of Research Repositories (UKCoRR) Email: y.c.budden@warwick.ac.uk | Tel: +44 2476 1 51275 | University of Warwick Library, Gibbet Hill Road, Coventry. CV4 7AL To be eligible for submission to the post-2014 REF, authors’ final peer-reviewed manuscripts of journals and conference papers must have been deposited in an institutional or subject repository within three months of acceptance for publication. HEFCE Policy for open access in the post-2014 Research Excellence Framework Research Support: http://go.warwick.ac.uk/lib-researchers Open Access Support: http://go.warwick.ac.uk/lib-researchers/open-access Warwick Research Archive Portal (WRAP): http://wrap.warwick.ac.uk |
- References:
- [EP-tech] Sorting records in the browse views
- From: "Budden, Yvonne" <Y.C.Budden@warwick.ac.uk>
- [EP-tech] Sorting records in the browse views
- Prev by Date: [EP-tech] Re: Installing plugin from github?
- Next by Date: [EP-tech] Re: Sorting records in the browse views
- Previous by thread: [EP-tech] Sorting records in the browse views
- Next by thread: [EP-tech] Re: Sorting records in the browse views
- Index(es):