Date range

34 views
Skip to first unread message

Erwin Filtz

unread,
Sep 25, 2019, 1:40:28 PM9/25/19
to SIMILE Widgets
Hi,

i am using the facetted browsing for my project. I have in my data for each item a "start date" and an "end date" and i would like to filter all based on these dates, ideally with two text boxes to enter the date.
How can i do this? I tried to find something in the documentation or wiki (site remains blank?)

Any help is appreciated, thank you.

Luis Miguel Morillas

unread,
Sep 25, 2019, 2:27:41 PM9/25/19
to simile-...@googlegroups.com
What have you tried? Do you have some code to show?



--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simile-widgets/8f3c6e74-3898-479d-b782-046c475acda4%40googlegroups.com.

Erwin Filtz

unread,
Sep 26, 2019, 9:19:37 AM9/26/19
to SIMILE Widgets
I tried the timeline-view which is working fine using

<div data-ex-role="view" data-ex-view-class="Timeline" data-ex-start=".start_date" data-ex-end=".end_date" data-ex-color-key=".label"></div>


with the following example JSON-LD


{
 
"items" : [ {
   
"@id" : "http://www.example.org/e1",
   
"end_date" : "2019-06-30",
   
"start_date" : "2019-01-01",
   
"label" : "Event 1",
   
"Participants" : ["Tim", "Tom", "Max"]
 
}, {
   
"@id" : "http://www.example.org/e2",
   
"end_date" : "2019-09-15",
   
"start_date" : "2019-03-15",
   
"label" : "Event 2",
   
"Participants" : ["Tim", "John", "Sue"]
 
}, {
   
"@id" : "http://www.example.org/e3",
   
"start_date" : "2019-09-16",
   
"label" : "Event 3",
   
"Participants" : ["Sheldon", "Penny", "Raj"]
 
}]
}

But this is not what i need. I would like to have two input fields where a date can be entered to filter the events based on the start and end dates.
Since the documentation/wiki is not available i like to know if there is something ready to use (like the sliders, but without the actual sliders..)



Am Mittwoch, 25. September 2019 20:27:41 UTC+2 schrieb Luis Miguel Morillas:
What have you tried? Do you have some code to show?



El mié, 25 de septiembre de 2019 19:40, Erwin Filtz <erwin...@gmail.com> escribió:
Hi,

i am using the facetted browsing for my project. I have in my data for each item a "start date" and an "end date" and i would like to filter all based on these dates, ideally with two text boxes to enter the date.
How can i do this? I tried to find something in the documentation or wiki (site remains blank?)

Any help is appreciated, thank you.

--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-...@googlegroups.com.

Luis Miguel Morillas

unread,
Sep 26, 2019, 3:21:13 PM9/26/19
to simile-...@googlegroups.com
Does the slider facet suits for you? [1]

I've never tried it. I could do some test next week.

[1] http://www.simile-widgets.org/exhibit3/examples/slider/index.html

Saludos,

-- luismiguel (@lmorillas)

El jue., 26 sept. 2019 a las 15:19, Erwin Filtz
(<erwin...@gmail.com>) escribió:
> To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/simile-widgets/354a4b86-d4fd-4032-b51f-6d2b9469967c%40googlegroups.com.

Erwin Filtz

unread,
Oct 1, 2019, 5:11:04 AM10/1/19
to SIMILE Widgets
Hi,

no, the slider does not seem to work properly on dates.

Best,
Erwin

Luis Miguel Morillas

unread,
Oct 1, 2019, 7:20:07 AM10/1/19
to simile-...@googlegroups.com
Do you have your complete example online to test it?


Saludos,

-- luismiguel (@lmorillas)

El mar., 1 oct. 2019 a las 11:11, Erwin Filtz
> To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/simile-widgets/ed5d5d1b-51b0-4a9e-8a8a-64a52e3e44e7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages