Project

General

Profile

« Previous | Next » 

Revision 5920a5e8

Added by Katja Luther almost 5 years ago

ref #8229: update correct property path for search in name and taxon bulkeditor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/NameEditorInput.java
221 221

  
222 222
    private List<String> getPropertyPaths(){
223 223
    	 List<String> nameBasePropertyPaths = Arrays.asList(new String[] {
224
    	 "name.descriptions",
225
         "name.typeDesignations",
226
         "name.status",
227
         "name.nomenclaturalReference.inReference",
228
         "name.taxonBases.taxonNodes",
229
         "name.relationsFromThisName",
230
         "name.relationsToThisName",
231
         "name.homotypicalGroup.typifiedNames.taxonBases.synonyms.synonym.name.status",
232
         "name.homotypicalGroup.typifiedNames.relationsToThisName.fromName"});
224
    	 "descriptions.descriptionElements.multilanguageText",
225
    	 "descriptions.descriptionElements.*",
226
         "typeDesignations",
227
         "status",
228
         "combinationAuthorship",
229
         "exCombinationAuthorship",
230
         "inCombinationAuthorship",
231
         "basionymAuthorship",
232
         "exBasionymAuthorship",
233
         "inBasionymAuthorship",
234
         "nomenclaturalReference.inReference",
235
         "taxonBases.taxonNodes",
236
         "relationsFromThisName",
237
         "relationsToThisName",
238
         "homotypicalGroup.typifiedNames.taxonBases.synonyms.synonym.name.status",
239
         "homotypicalGroup.typifiedNames.relationsToThisName.fromName"});
233 240

  
234 241
    	 return nameBasePropertyPaths;
235 242
    }
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/TaxonEditorInput.java
101 101
//		IFindTaxaAndNamesConfigurator<TaxonBase> newConfig = new FindTaxaAndNamesConfiguratorImpl<>();
102 102
//		newConfig.setTitleSearchString(configurator.getTitleSearchStringSqlized());
103 103
//		newConfig.setMatchMode(MatchMode.ANYWHERE);
104

  
104
	    List<String> propertyPaths = getPropertyPaths();
105
	    configurator.setPropertyPaths(propertyPaths);
105 106
		List<TaxonBase> taxa =  CdmStore.getSearchManager().findTaxa(configurator);
106 107
		List<TaxonBase> taxaCopy = new ArrayList<TaxonBase>();
107 108
		for (TaxonBase taxon:taxa){
......
176 177
        super.saveModel(resetMerge);
177 178
    }
178 179

  
180
    private List<String> getPropertyPaths(){
181
        List<String> taxonBasePropertyPaths = Arrays.asList(new String[] {
182
        "descriptions.descriptionElements.*",
183
        "typeDesignations"});
184

  
185
        return taxonBasePropertyPaths;
186
   }
187

  
179 188
}

Also available in: Unified diff