Project

General

Profile

feature request #8245

Improve representation of DescriptionElementBase.timeperiod

Added by Andreas Kohlbecker 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Highest
Category:
cdm-dataportal
Target version:
Start date:
06/18/2015
Due date:
% Done:

100%

Severity:
normal

Description

The formatting 2017-00-00 to 2018-00-00 is not nice. Having only a year or a year and a month but no day is a very common use case but the formatting does not look nice. Can we still try to remove these trailing zeros (only for the case that a year exists)?


Related issues

Related to Edit - feature request #8145: Implement TimePeriod DTO with localized formatting New 02/26/2019
Copied from Edit - feature request #3616: Show DescriptionElementBase.timeperiod in Dataportals Closed 06/18/2015

Associated revisions

Revision ef6a4ce9 (diff)
Added by Andreas Kohlbecker 6 months ago

ref #8245 stripping trailing zeros in description element time priods, with test

History

#1 Updated by Andreas Kohlbecker 8 months ago

#2 Updated by Andreas Müller 8 months ago

  • Description updated (diff)

#3 Updated by Andreas Müller 8 months ago

#4 Updated by Andreas Müller 7 months ago

  • Target version changed from Release 5.7 to Release 5.8

#5 Updated by Andreas Kohlbecker 6 months ago

  • Status changed from New to Resolved
  • Assignee changed from Andreas Kohlbecker to Andreas Müller

#6 Updated by Andreas Kohlbecker 6 months ago

  • % Done changed from 0 to 50

#7 Updated by Andreas Müller 5 months ago

Andreas Kohlbecker wrote:

done, for testing you can use for example http://edit.test/d7/reference_int/cdm_dataportal/taxon/c246856f-c03e-4cb7-ac92-d9b2864084cd/

Do you also have an example on the test server. The above seems to be local.

#9 Updated by Andreas Müller 5 months ago

  • Status changed from Resolved to Closed
  • Assignee changed from Andreas Müller to Andreas Kohlbecker

The formatting of year only or year and month only looks ok now so we can close the ticket. Other open issues will be handled in #8145.

#10 Updated by Andreas Müller 5 months ago

  • % Done changed from 50 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)