Changeset 6730


Ignore:
Timestamp:
11/02/15 15:55:58 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:

ProfilePostProc? got a normalization map for cross-mapping

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  
    1616 * Takes the value of the componentprofileid and uses the componentregistry REST service to transform this to the name of the componentprofile.
    1717 */
    18 public class CMDIComponentProfileNamePostProcessor implements PostProcessor {
     18public class CMDIComponentProfileNamePostProcessor extends PostProcessorsWithVocabularyMap {
    1919    private static final String XPATH = "/CMD_ComponentSpec/Header/Name/text()";
    2020    private String BASE_URL = null;
     
    8585        BASE_URL = MetadataImporter.config.getComponentRegistryRESTURL();
    8686    }
     87
     88        @Override
     89        public String getNormalizationMapURL() {
     90                return MetadataImporter.config.getProfileNameMapUrl();
     91        }
    8792}
  • vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/CMDIParserVTDXML.java

    r6729 r6730  
    300300            insertFacetValues(config.getName(), values, cmdiData, languageCode, allowMultipleValues, config.isCaseInsensitive(), true);
    301301           
    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);
    303304           
    304305            //add also non curated resource type
Note: See TracChangeset for help on using the changeset viewer.