EPrints Technical Mailing List Archive

Message: #08585


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] grouping by date in browse views


Hi Ranju,


This is non-intuitive, I think you need:

 

"date;truncate=4,reverse"


The truncate=4 will break off the year (e.g. 2021-04-23 becomes 2021) and the reverse as you might guess reverses the order.  Here is an example of a view using this configuration:


http://eprints.nottingham.ac.uk/view/type/conference=5Fitem.date.html


Regards


David Newman


On 23/04/2021 11:20, Ranju Upadhyay via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Hi list,

we have been asked to add group by "date" as an additional option on all the views we have. I can do that by adding "date" in the variations section (like below) for each view.

variations => [
                        "creators_name;first_letter",
                        "type",
                        "date",
                        "DEFAULT" ],

This is fine, only thing is the date is in ascending order i.e. oldest one first. We would like it to be the other way i.e. newest one first.

Would anyone know what do I need to do ? I tried using "date;-year"  , thinking this might set the date in reverse order but that does not seem to work.

Any help will be appreciated!

Best regards,
Ranju

Ranju Upadhyay Rai

Library Programmer

University Library

 

Ollscoil Mhá Nuad, Maigh Nuad, Co. Chill Dara, Éire, W23 VP22

Maynooth University, Maynooth, Co. Kildare, Ireland, W23 VP22


T: +353 1 708 3378  M: +353 87 98 43811

Ranju.Upadhyay@mu.ie W: www.maynoothuniversity.ie/library


All personal data received by the Library will be held safely and securely in compliance with the EU General Data Protection Regulation (GDPR) and the Data Protection Act (Ireland) 2018. The Library may retain personal data for operational, statistical and archival purposes. For further information please consult the University's Data Protection Policy: www.maynoothuniversity.ie/data-protection or contact the MU Data Protection Officer, at dataprotection@mu.ie.

 

An t-eolas pearsanta ar fad a fhaigheann an Leabharlann bíonn sé slán agus sabháilte faoina coimirce ar mhaithe le Rialachán Ginearálta maidir le Cosaint Sonraí an Aontais Eorpaigh agus leis an Acht um Chosaint Sonraí (Éire) 2018 a chomhlíonadh. D’fhéadfadh an Leabharlann eolas pearsanta a choimead ar chúiseanna oibríochta, staitistiúil agus cartlainne. Le haghaidh tuilleadh eolais, téigh i gcomhairle le Polasaí  na hOllscoile um Chosaint Sonraí: www.maynoothuniversity.ie/data-protection nó téigh i dteagmháil le hOifigeach Cosanta Sonraí na hOllscoile ag dataprotection@mu.ie.



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Virus-free. www.avg.com