hcts-hra / ziziphus

10 stars 2 forks source link

[dataDate]: wrong circa attribute in date #355

Open MatthiasArnold opened 8 years ago

MatthiasArnold commented 8 years ago

when the "uncertain" dropdown is used, the circa attribute is automatically set as well. however, it is not only set in the <date> element wrapped within earliestDate or latestDate, it is also - mistakenly - set in the upper <date> element that wraps earliest/latestDate.

setting the date 2015 to type="about" should result in this code:

    <dateSet dataDate="2015-11-13T10:43:48.23+01:00">
        <display/>
        <notes/>
        <date dataDate="2015-11-13T10:43:48.23+01:00" pref="false" type="creation">
            <earliestDate>
                <date dataDate="2015-11-13T11:00:10.19+01:00" circa="true" type="about">2015</date>
            </earliestDate>
            <latestDate>
                <date dataDate="2015-11-13T10:43:48.23+01:00" circa="false">2014</date>
            </latestDate>
        </date>
    </dateSet>

screenshot: 13-11-2015 12-15-01

zwobit commented 8 years ago

mmh not sure where the "circa" on the "date" originates from maybe tamboti?