Project

General

Profile

« Previous | Next » 

Revision 4208745a

Added by Ben Clark over 15 years ago

Lots of changes, but primarily:
Enabled the marshalling / unmarshalling of LSIDAuthority
Renamed the User table to UserAccount to avoid problems on SQLServer
Major refactoring of CacheStrategyGenerators so that the generic framework extends across all IIdentifiableEntities, allowing (but not requiring) the use of @Configurable and aop to inject custom cache strategy generators at runtime

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/reference/JournalDefaultCacheStrategy.java
88 88
		}
89 89
		return result;
90 90
	}
91
	
92
	public String getCitation(T referenceBase) {
93
		StringBuilder stringBuilder = new StringBuilder();
94
		
95
		TeamOrPersonBase<?> team = referenceBase.getAuthorTeam();
96
		if (team != null &&  ! (team.getTitleCache() == null) && ! team.getTitleCache().trim().equals("")){
97
			//String author = CdmUtils.Nz(team == null? "" : team.getTitleCache());
98
			stringBuilder.append(team.getTitleCache() + afterAuthor);
99
		}
100
		
101
		String year = CdmUtils.Nz(referenceBase.getYear());
102
		if (!"".equals(year)){
103
			stringBuilder.append(beforeYear + year);
104
		}
105
		
106
		return stringBuilder.toString();
107
	}
91 108
}

Also available in: Unified diff