<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Just a guess:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Try ‘date;res=year’ instead of ‘date;res:year’.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>We have a menu in one of our views like:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>menus => [<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> { fields => ["date;res=year"], reverse_order => 1, allow_null => 1, hideempty => 0, new_column_at => [1, 1], },<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>],<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>that seems to work – not sure if this is directly transferrable to the variations…<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB'> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] <b>On Behalf Of </b>Budden, Yvonne<br><b>Sent:</b> 05 February 2015 14:50<br><b>To:</b> 'eprints-tech@ecs.soton.ac.uk'<br><b>Subject:</b> [EP-tech] Sorting records in the browse views<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi All,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Potentially easy question for everyone! We have long had a function to browse the publication in our repository by Researcher (<a href="http://wrap.warwick.ac.uk/view/author_id/">http://wrap.warwick.ac.uk/view/author_id/</a>) 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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>id => "author_id",<o:p></o:p></p><p class=MsoNormal> allow_null => 0,<o:p></o:p></p><p class=MsoNormal> hideempty => 1,<o:p></o:p></p><p class=MsoNormal> menus => [<o:p></o:p></p><p class=MsoNormal> {<o:p></o:p></p><p class=MsoNormal> fields => [ "creators_browse_id" ],<o:p></o:p></p><p class=MsoNormal> new_column_at => [1, 1],<o:p></o:p></p><p class=MsoNormal> mode => "sections",<o:p></o:p></p><p class=MsoNormal> open_first_section => 1,<o:p></o:p></p><p class=MsoNormal> group_range_function => "EPrints::Update::Views::cluster_ranges_30",<o:p></o:p></p><p class=MsoNormal> grouping_function => "EPrints::Update::Views::group_by_a_to_z",<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> ],<o:p></o:p></p><p class=MsoNormal> order => "-date/title",<o:p></o:p></p><p class=MsoNormal> include => 1,<o:p></o:p></p><p class=MsoNormal> variations => [<o:p></o:p></p><p class=MsoNormal> “date;reverse”,<o:p></o:p></p><p class=MsoNormal> “type”,<o:p></o:p></p><p class=MsoNormal> “funder”,<o:p></o:p></p><p class=MsoNormal> “DEFAULT”,<o:p></o:p></p><p class=MsoNormal> ],<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have tried using “date;res:year,reverse” but this produces an error!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Many thanks for any help people can give!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best,<o:p></o:p></p><p class=MsoNormal>Yvonne<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'>Mrs Yvonne Budden,</span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'>Scholarly Communications Manager, University of Warwick</span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'>Chair: </span><span style='mso-fareast-language:EN-GB'><a href="http://ukcorr.org/" target="_blank"><span lang=EN-US style='color:blue'>UK Council of Research Repositories</span></a></span><span lang=EN-US style='mso-fareast-language:EN-GB'> (UKCoRR)</span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'> </span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'>Email: </span><span style='mso-fareast-language:EN-GB'><a href="mailto:y.c.budden@warwick.ac.uk" target="_blank"><span lang=EN-US style='color:blue'>y.c.budden@warwick.ac.uk</span></a></span><span lang=EN-US style='mso-fareast-language:EN-GB'> | Tel: +44 2476 1 51275 | University of Warwick Library, Gibbet Hill Road, Coventry. CV4 7AL<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><b><i><span style='color:black;mso-fareast-language:EN-GB'>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.</span></i></b><span style='color:#1F497D;mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black;mso-fareast-language:EN-GB'><a href="http://www.hefce.ac.uk/media/hefce/content/pubs/2014/201407/HEFCE2014_07.pdf"><span style='color:blue'>HEFCE Policy for open access in the post-2014 Research Excellence Framework</span></a></span><span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-GB'>Research Support: <a href="http://go.warwick.ac.uk/lib-researchers"><span style='color:blue'>http://go.warwick.ac.uk/lib-researchers</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-GB'>Open Access Support: <a href="http://go.warwick.ac.uk/lib-researchers/open-access"><span style='color:blue'>http://go.warwick.ac.uk/lib-researchers/open-access</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-GB'>Warwick Research Archive Portal (WRAP): <a href="http://wrap.warwick.ac.uk/"><span style='color:blue'>http://wrap.warwick.ac.uk</span></a> <o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>