Zoo-For-Zotero icon indicating copy to clipboard operation
Zoo-For-Zotero copied to clipboard

sort by date breaks for some date formats

Open mhinsch opened this issue 3 years ago • 3 comments

If the date field contains the month and the year, e.g. 12/2014, it seems the 12 is interpreted as the (beginning of?) the year.

mhinsch avatar Jan 25 '21 21:01 mhinsch

Yes it's very difficult to sort dates in zotero because the dates are so inconsistent, I will add some logic to try to pull out the year from the date.

Is MM/YYYY used in your library?

mickstar avatar Jan 27 '21 13:01 mickstar

Yes it is, but not intentionally. For some publication types zotero seems to think that sub-year information is relevant. Personally I've never encountered a situation where I need that information so I try to remove anything but the year whenever I notice, but maybe there are people who actually do need it.

mhinsch avatar Jan 27 '21 13:01 mhinsch

Sure, I will add some regex to pull out 4 digit numbers and make that the most important number for sorting

On Thu, 28 Jan 2021, 00:58 Martin Hinsch, [email protected] wrote:

Yes it is, but not intentionally. For some publication types zotero seems to think that sub-year information is relevant. Personally I've never encountered a situation where I need that information so I try to remove anything but the year whenever I notice, but maybe there are people who actually do need it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mickstar/Zoo-For-Zotero/issues/125#issuecomment-768302599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAV2V6GMQH4I2EB7BM5V2TS4ALW5ANCNFSM4WSLNQ3Q .

mickstar avatar Jan 27 '21 14:01 mickstar