Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Go to file
Dan Stillman d0d3f80a61 Much improved date handling in searches and autocomplete
Fixes #338, Dates in search window should be converted to UTC before searching
Addresses #220, Add a more friendly way to enter dates in search window and accessDate field

- Unless passed a full datetime, the search system automatically parses the string with strToDate(), so one can search for an accessDate, etc., using a freeform phrase. It will use the SQL parts where available and also search for remaining words individually, so "November 6, 2006" will find '2006-10-06 Nov. 6 2006' and "Summer 2006" will find '2006-00-00 Summer 2006". It will also properly handle SQL parts, so "August 2006" in the is/isNot operator will use "LIKE '2006-08-__'" (underscore being the single-character wildcard) and isBefore will use '2006-08-00'

- Stored UTC dates are converted to localtime in the search system when searching on just a date part, since otherwise searching for a local date with a UTC timestamp after midnight would be unsuccessful

- Date field autocomplete is now disabled in the search dialog, but on the off-chance that it's used somewhere, the autocomplete will now return just the user part of a multipart date field

- Access date autocomplete only returns date, not datetime

- Fix for Date Added and Date Modified showing as UTC

- Date.isSQLDateTime()


Known issues:

- accessDate field in metadata pane still requires SQL format

- Proper parsing of search dates with no years (e.g. searching for "August 25") depends on #389, "Date.strToDate() should return available parts even if no year"
2006-11-06 12:05:57 +00:00
chrome Much improved date handling in searches and autocomplete 2006-11-06 12:05:57 +00:00
components Much improved date handling in searches and autocomplete 2006-11-06 12:05:57 +00:00
defaults/preferences Default to the field mode of the previous creator when adding a new row, and if first row, use the last-used mode program-wide 2006-10-21 09:25:12 +00:00
chrome.manifest Added Chinese (simplified) and German localizations from BabelZilla translators. Updated chrome.manifest to reflect new localizations. These localizations are not 100% complete or correct, but I expect that we will get corrections quickly as users spot mistakes. Currently there is a UI issue where the Chinese characters spill off of the tabs in the item details pane. 2006-10-27 17:28:45 +00:00
install.rdf Version numbers back to .SVN for auto-update 2006-10-28 15:11:01 +00:00
license.txt Closes #63, Add ECL license info to source code 2006-10-04 17:16:56 +00:00
scrapers.sql - fixed XML issues with PubMed scraper (although probably not the issue that everyone seems to be experiencing) 2006-11-02 00:33:50 +00:00
system.sql Improve date field handling 2006-11-03 09:23:24 +00:00
update.rdf Version numbers back to .SVN for auto-update 2006-10-28 15:11:01 +00:00
userdata.sql Closes #388, Use relative paths for imported attachments 2006-11-05 09:13:01 +00:00