Changeset 6730
- Timestamp:
- 11/02/15 15:55:58 (9 years ago)
- Location:
- vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/CMDIComponentProfileNamePostProcessor.java
r5345 r6730 16 16 * Takes the value of the componentprofileid and uses the componentregistry REST service to transform this to the name of the componentprofile. 17 17 */ 18 public class CMDIComponentProfileNamePostProcessor implements PostProcessor{18 public class CMDIComponentProfileNamePostProcessor extends PostProcessorsWithVocabularyMap { 19 19 private static final String XPATH = "/CMD_ComponentSpec/Header/Name/text()"; 20 20 private String BASE_URL = null; … … 85 85 BASE_URL = MetadataImporter.config.getComponentRegistryRESTURL(); 86 86 } 87 88 @Override 89 public String getNormalizationMapURL() { 90 return MetadataImporter.config.getProfileNameMapUrl(); 91 } 87 92 } -
vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/CMDIParserVTDXML.java
r6729 r6730 300 300 insertFacetValues(config.getName(), values, cmdiData, languageCode, allowMultipleValues, config.isCaseInsensitive(), true); 301 301 302 crossMap(config, value, cmdiData, languageCode); 302 //in case of profile name forward normalized value (not profileId) 303 crossMap(config, config.getName().equals(FacetConstants.FIELD_CLARIN_PROFILE)? values.get(0) : value, cmdiData, languageCode); 303 304 304 305 //add also non curated resource type
Note: See TracChangeset
for help on using the changeset viewer.