EPrints Technical Mailing List Archive
Message: #08964
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Browse by year
- To: Francis Jayakanth via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Browse by year
- From: Christopher Gutteridge <totl@soton.ac.uk>
- Date: Tue, 31 May 2022 09:01:27 +0100
Your screenshot didn't come through OK for me.
I think you're looking for a year with a space in. That doesn't make sense as each part of dates are stored as smallint so can only store integers or NULL.
(side note; EPrints has a slightly odd choice of storing dates as
3 integers. and datetime as 3. This is to allow it to do fast
searches while still allowing you to omit elements eg. you can
list only year or only year and month. If I had it over, I'd
probably store it as an ISO format date in a string, so "2000" or
"2000-02" or "2000-02-01" or "2000-02-01T12:23" or
"2000-02-01T12:23:23" etc.
CAUTION: This e-mail originated outside the University of Southampton. Hi, Values for the date_year column in roughly fifty records in our repository may not be inserted correctly. As a result, the 'browse by year' view for such entries is incorrectly created and not clickable. The following link will take you to a screenshot of the browse view by year: https://indianinstituteofscience-my.sharepoint.com/:i:/g/personal/francis iisc ac in/EQhONAS12hxMseEf7e8lHMUBU0D8IuwQhdbkLrekIGJj1g?e=e1yxHP As evident from the screenshot, the last item in the third column is not clickable. What SQL statement should I use to obtain these records? I've tried the SQL commands below, but they all return empty sets: select eprintid, title, official_url from eprint where date_year like ' %'; select eprintid, title, official_url from eprint where date_year like ' % ' select eprintid, title, official_url from eprint where date_year like ' % ' Thanks for your attention. Best regards, Francis *** 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/
Christopher Gutteridge <totl@soton.ac.uk>
You should read our team blog at
http://blog.soton.ac.uk/webteam/
Sadly my trade union is currently in dispute over pay, pensions and casualisation. You can read more at https://www.ucu.org.uk/article/11896/Why-were-taking-action
The Southampton branch is currently working on "Action Short Of a Strike" (ASOS). This means only doing work we are contracted to do, so no working on any additional voluntary tasks. It's frustating, but so are below inflation pay rises.
As a result, so far I've had to turn down or stop working on:
- Coordinating the iSolutions Communities of Practice program
- Coordinating the System Documentation Community of Pracice
- Helping with a workshop on data visualisation
- Providing a Minecraft activity for the Archaeology family day
- Helping another team recruit someone for a post
- Not helped a colleague debug something in a service I'm an expert on but is no longer my responsibility
I look forward to getting back into these kinds of activity as soon as the industrial action permits.
Please do not cover for people taking ASOS. If it causes problems, it is helpful to make management aware. The most unhelpful thing is for people to mitigate the impacts of industrial action or hide it from management. The best thing to help is to join the union and the action and/or donate to the strike fund.
- Follow-Ups:
- Re: [EP-tech] Browse by year
- From: Christopher Gutteridge <totl@soton.ac.uk>
- Re: [EP-tech] Browse by year
- References:
- [EP-tech] Browse by year
- From: Francis Jayakanth <fjayakanth@gmail.com>
- Re: [EP-tech] Browse by year
- From: Christopher Gutteridge <totl@soton.ac.uk>
- [EP-tech] Browse by year
- Prev by Date: [EP-tech] Browse by year
- Next by Date: Re: [EP-tech] Browse by year
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):