EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09557
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] View by year
- To: <eprints-tech@ecs.soton.ac.uk>, Guntis Zelvis <guntis.zelvis@gmail.com>
- Subject: Re: [EP-tech] View by year
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Sun, 21 Jan 2024 20:45:49 +0000
Hi Guntis,EPrints 3.4.2 default installation has a date and date_type field. I believe that if you set eprints that have a submitted date by setting date_type as submitted and then just setting the date of submission in the date field that should allow you to group eprints by year in the browse view, independent of the type of date being stored.
However, if you have created specific published_date and submitted_date fields then that would be more difficult. If that is the case, I would advise adding some code to flavours/pub_lib/cfg.d/eprints_field_automatic.pl (after copying to your archive's cfg/cfg.d/ directory), which can check the published_date and submitted_date fields and then update date and date_type field with the appropriate date and date_type. You could also take a look at using the Dates, Dates Dates plugin [1], which may help you store multiple dates and but still use the highest priority date (e.g. published if set, submitted otherwise) in the year browse view.
Regards David Newman [1] https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F449%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0417e51d77d24b2b286e08dc1ac1f559%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638414667573299413%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Xcq2SDc8XbaA7CSxe9kL3p3fsdOrLNuyUtOctQVIFPQ%3D&reserved=0 On 21/01/2024 4:13 pm, Guntis Zelvis wrote:
CAUTION: This e-mail originated outside the University of Southampton. CAUTION: This e-mail originated outside the University of Southampton. Hello, Is it possible to change view 'year' to group eprints by 'submitted' date if 'published' date is null? Or create new view which groups eprints by 'submitted' date? We are using EPrints 3.4.2. Regards, Guntis *** Options: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0417e51d77d24b2b286e08dc1ac1f559%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638414667573299413%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9DhGepJl%2BJ2U%2F1oIwHKIB%2Fk4HiygnqE15MOHX73jVwo%3D&reserved=0 *** Archive: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0417e51d77d24b2b286e08dc1ac1f559%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638414667573299413%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=i%2BYUjPJItNdBGAVFoTKAEg9V0dnyuF%2BJ4Bgcw6%2BIZIw%3D&reserved=0 *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0417e51d77d24b2b286e08dc1ac1f559%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638414667573299413%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7InfoRAA7dbXt6xPsriT9y2GdIhAo9gex%2Buqjafpaws%3D&reserved=0
- References:
- [EP-tech] View by year
- From: Guntis Zelvis <guntis.zelvis@gmail.com>
- [EP-tech] View by year
- Prev by Date: [EP-tech] View by year
- Next by Date: [EP-tech] email sending
- Previous by thread: [EP-tech] View by year
- Next by thread: [EP-tech] email sending
- Index(es):