Ignore:
Timestamp:
04/04/13 14:09:29 (11 years ago)
Author:
keeloo
Message:

Corrected typos in config package. Added list initialisation to VloConfig?. Also fixed ticket 297, Access to packaged National projects mapping file. Finally, made provisions displaying the landing page in the web application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/importer/CMDIParserVTDXML.java

    r2768 r2774  
    2121    private final Map<String, PostProcessor> postProcessors;
    2222    private final static Logger LOG = LoggerFactory.getLogger(CMDIParserVTDXML.class);
    23 
    2423
    2524    public CMDIParserVTDXML(Map<String, PostProcessor> postProcessors) {
     
    9998        return result;
    10099    }
    101 
     100   
     101    /*
     102     * kj: describe
     103     */
    102104    private void processResources(CMDIData result, VTDNav nav) throws VTDException {
     105       
    103106        AutoPilot resourceProxy = new AutoPilot(nav);
    104107        resourceProxy.selectXPath("/c:CMD/c:Resources/c:ResourceProxyList/c:ResourceProxy");
     108       
    105109        AutoPilot resourceRef = new AutoPilot(nav);
    106110        resourceRef.selectXPath("c:ResourceRef");
     
    109113        AutoPilot resourceMimeType = new AutoPilot(nav);
    110114        resourceMimeType.selectXPath("c:ResourceType/@mimetype");
     115       
    111116        while (resourceProxy.evalXPath() != -1) {
    112117            String ref = resourceRef.evalXPathToString();
    113118            String type = resourceType.evalXPathToString();
    114119            String mimeType = resourceMimeType.evalXPathToString();
    115             if (ref != "" && type != "") {
     120           
     121         // if (!ref.equals("") && !type.equals("")){
     122            if (!ref.equals("")){
     123                // mime type is allowed to be an empty string, kj: check if this is allowed in general
    116124                result.addResource(ref, type, mimeType);
    117125            }
Note: See TracChangeset for help on using the changeset viewer.