task #2859
open
TaxonNameBase.getReferenceYear does not return inRef year
Added by Andreas Müller about 12 years ago.
Updated over 2 years ago.
Description
If nomRef doesn't have a date attached but inReference does we may think about returning the inReference year. However, we need to check first if this brakes any logic.
If we do implement it we may also use the new code within TaxonComparator.getIntegerDate() - see #2858
- Description updated (diff)
- Priority changed from Priority12 to Priority14
- Target version changed from cdmlib - Old Next Major Release to Release 5.45
Generally this exact method does not seem to be used at all (I checked in cdmlib, vaadin and imports by call hiearchy and in TaxEditor by search for "getReferenceYear", so it could be deleted.
But at the same time the called method Reference.getYear() is called multiple times in cdmlib (and maybe others) and it has the same problem of not being recursive. At least for book sections (or other sections) it seems to make sense to make it recursive.
However, each call needs to be checked.
E.g. OriginalSourceFormatter.getShortCitationsDate() already does such a recursion. Maybe this can be merged then.
- Private changed from Yes to No
Also available in: Atom
PDF