feature request #5833
closedtask #4338: [MASTER] Handle abbreviated title and protected cache correctly in TaxEditor
Implement single cache strategy for references
100%
Description
The new single default cache strategy for Reference.
As we do have only one Reference class left which implements multiple interfaces, we may also only need 1 single cache strategy. However, care must be taken as the formatting differs dependent on the type an the in-reference structure.
Generally the cache strategy allows 3 formattings:
for bibliographic references (stored in {@link Reference#getTitleCache() titleCache}).
for nomenclatural references (stored in {@link Reference#getAbbrevTitleCache() abbrevTitleCache}), but without micro reference (detail).
for nomenclatural references with micro reference, but not stored anywhere as the micro reference is part of the name, not of the reference
for short citation (e.g. Author 2009) as defined in {@link IReferenceBaseCacheStrategy#getCitation(Reference)}
the fullAbbrevTitleString which is the same as the titleCache but using the abbrevTitle instead of titleCache if possible, not stored in any cache
Also remove the rectifyCacheStrateggy method in Reference as it sets the old cache strategy.
duplicated by: #2862 (but more detailed)
Related issues
Updated by Andreas Müller over 6 years ago
- Status changed from New to In Progress
Updated by Andreas Müller over 6 years ago
implemented the following by cdmlib 9db62d494989
- Implemented new class NewDefaultReferenceCacheStrategy and helper
class TitleWithoutYearAndAuthorHelper
- Moved all functionality of old ReferenceCacheStrategies to new
class(es)
Moved all old strategies to package .old
Moved all tests into one test class
Removed all old tests
Renamed abbrevTitleCache to fullAbbrevTitleString in cache strategies
Added new method getNomenclaturalCache to cache strategy
Updated by Andreas Müller over 6 years ago
- Target version changed from Release 4.1 to Release 4.2
Updated by Andreas Müller over 6 years ago
- Target version changed from Release 4.2 to Release 4.3
Updated by Andreas Müller over 6 years ago
- Status changed from In Progress to Resolved
- Target version changed from Release 4.3 to Release 4.1
Updated by Andreas Müller over 6 years ago
- Status changed from Resolved to Closed
- Resolution set to fixed
- % Done set to 100
Seems to be fixed. However, we definetly still need to improve the cache strategy. But this is handled in separate tickets.
Updated by Andreas Müller over 5 years ago
- Description updated (diff)
- Private changed from Yes to No
Updated by Andreas Müller over 5 years ago
- Related to bug #6960: Improve reference cachestrategy added