Project

General

Profile

« Previous | Next » 

Revision 6dc32b87

Added by Andreas Müller over 9 years ago

rename Reference.authorTeam -> authorship #4432

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/openurl/MobotOpenUrlResponseSchemaAdapter.java
157 157
		OpenUrlReference reference = null;
158 158
		
159 159
		ResponseStatus status = null;
160
		Team authorTeam = null;
160
		Team authorship = null;
161 161
		String message = null;
162 162
		
163 163
		String elementName = null;
......
175 175
			} else if (status != null && qName.equals(OPENURL_RESPONSE_CITATION)) {
176 176
				reference = new OpenUrlReference();
177 177
			} else if (reference != null && qName.equals(AUTHORS)) {
178
				authorTeam = Team.NewInstance();
178
				authorship = Team.NewInstance();
179 179
			} else if (reference != null && qName.equals(SUBJECTS)) {
180 180
				//TODO implement, but no equivalent in the cdm model			
181 181
			} else {
......
192 192
				referenceList.add(reference);
193 193
				reference = null;
194 194
			} else if (reference != null && qName.equals(AUTHORS)) {
195
				reference.setAuthorship(authorTeam);
196
				authorTeam = null;
195
				reference.setAuthorship(authorship);
196
				authorship = null;
197 197
			} else if (reference != null && qName.equals(SUBJECTS)) {
198 198
				//TODO implement, but no equivalent in the cdm model		
199 199
			}else {
......
311 311
				}
312 312
				
313 313
				// --- Reference.authorship --- //
314
				if(authorTeam != null && reference != null){
314
				if(authorship != null && reference != null){
315 315
					if(elementNameToStore.equals("String")){
316
						authorTeam.addTeamMember(Person.NewTitledInstance(trimmedText));
316
						authorship.addTeamMember(Person.NewTitledInstance(trimmedText));
317 317
					}
318 318
				}
319 319
				

Also available in: Unified diff