Last modified: 2014-05-13 10:45:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64900, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62900 - Look into appropriate javascript widgets that can handle < 1970 dates.
Look into appropriate javascript widgets that can handle < 1970 dates.
Status: UNCONFIRMED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 62257
  Show dependency treegraph
 
Reported: 2014-03-21 00:03 UTC by muninn.project
Modified: 2014-05-13 10:45 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Dateslider html, js and css files from google code repository (lic under Gnu GPL) (61.65 KB, text/html)
2014-03-21 01:30 UTC, JaimeLyn
Details

Description muninn.project 2014-03-21 00:03:29 UTC
As part of bug #62257 we need to have some means of having the user enter dates of interests into ID / rails. Most widgets out there don't handle <1970 years - are there any out there we can re-use or do we need to write our own.
Comment 1 JaimeLyn 2014-03-21 01:30:46 UTC
Created attachment 14869 [details]
Dateslider html, js and css files from google code repository (lic under Gnu GPL)
Comment 2 JaimeLyn 2014-03-21 01:32:42 UTC
This looks promising. I'm still testing it out so I may say it stinks tomorrow am. On first glance, it looks like it uses the difference between dates and not the JavaScript data object/ since dawn of Unix time to determine dates and range.

Found at: http://code.google.com/p/dateslider/downloads/detail?name=Dateslider_v1.3.zip&can=2&q=
Comment 3 JaimeLyn 2014-03-21 06:26:56 UTC
Sleep is overrated. I couldn't resist messing with it a bit more. The date range in the background of the slider bar are hard-coded. Perhaps we could change it to a dynamic scale that works better with the zoom?

I've been poking around quite a bit and this is the most potentially flexible tool I've found so far. (With the exception of a time slider in the ArcGIS JavaScript API, but in my understanding that is not available under an open source license.)

Here's what I have so far (I haven't touched Example2.html, except to add it to my repo.)

https://github.com/JaimeLynSchatz/stc/tree/master/Dateslider
Comment 4 muninn.project 2014-03-22 13:21:15 UTC
Looking at https://github.com/JaimeLynSchatz/stc/blob/master/Dateslider/js/dateslider.js there still seems to be some parsing using the Date object from the year / month / day integers. Javascript date has some issues [2] some of which have been fixed by jobatime [1].

An interesting question is how far we want to go with detail while keeping things sane. I'm tempted to have the slide work in two ways: basic modern date with a calendar (>1900) and year only to handle everything that is earlier. 

This would avoid having to deal with the corner cases created by the tweaking of the gregorian calendar over the years.
 
[1] http://www.joda.org/joda-time/
[2] http://www.scholarslab.org/research-and-development/parsing-bc-dates-with-javascript/
Comment 5 JaimeLyn 2014-05-08 18:15:32 UTC
I've been playing with something new and am not sure where to post it for feedback.

http://jaimelynschatz.github.io/timeslider-mvp.html

(I know the 18th hasn't actually come around yet, but the problem wouldn't quiet down in my head and I wanted to see if I was on the right track.)

It still needs:
1. To be translated to vanilla JS (I think I've seen Jquery as a default library in Rails, but not sure if it's being used for OHSM.) 
2. The hooks with the dates database.

If this isn't the best place for this, please let me know where things like this should go :).
Comment 6 Conor McManus 2014-05-13 10:45:22 UTC
Here's a prototype of an interface I've been working on, just another idea to throw out there: http://themusictree.net/ohm/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links