datetime icon indicating copy to clipboard operation
datetime copied to clipboard

Datasource grouped by datetime outputs all timelines per entry

Open mprofitlich opened this issue 6 years ago • 0 comments

I am grouping a datasource by datetime. It will output entries in this fashion: year/month/entry. Entries with multiple dates appear correctly multiple times in the according months at the right positions.

Instead of just showing the current timeline each entry lists all timelines. It is not possible to tell which <date timeline…> belongs to the current entry.

For displaying the right timeline the entry should either just output the current timeline or mark the current timeline with an attribute current. The following example shows the proposed amended data source output (current="yes").

 <year value="2019">
    <month value="03">
        <entry id="255">
            <title>Weekly Yoga lesson</title>
            <date-and-time>
                <date timeline="1" type="range" current="no">
                    <start iso="2019-03-19T18:30:00+01:00" timestamp="1553016600" time="18:30" weekday="2" offset="+0100">2019-03-19</start>
                    <end iso="2019-03-19T19:30:00+01:00" timestamp="1553020200" time="19:30" weekday="2" offset="+0100">2019-03-19</end>
                </date>
                <date timeline="2" type="range" current="yes">
                    <start iso="2019-03-26T18:30:00+01:00" timestamp="1553621400" time="18:30" weekday="2" offset="+0100">2019-03-26</start>
                    <end iso="2019-03-26T19:30:00+01:00" timestamp="1553625000" time="19:30" weekday="2" offset="+0100">2019-03-26</end>
                </date>
                <date timeline="3" type="range" current="no">
                    <start iso="2019-04-02T18:30:00+02:00" timestamp="1554222600" time="18:30" weekday="2" offset="+0200">2019-04-02</start>
                    <end iso="2019-04-02T19:30:00+02:00" timestamp="1554226200" time="19:30" weekday="2" offset="+0200">2019-04-02</end>
                </date>
            </date-and-time>
        </entry>
    </month>
</year>

mprofitlich avatar Mar 12 '19 18:03 mprofitlich