Ignore:
Timestamp:
2012-12-05T15:05:18+13:00 (11 years ago)
Author:
sjm84
Message:

Fixing the location of the collectionConfig file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r26506 r26555  
    701701            Document configStylesheet_doc = this.converter.getDOM(new File(configStylesheet_file));
    702702
    703             if (_debug)
    704             {
    705                 GSXSLT.modifyConfigFormatForDebug(configStylesheet_doc, GSFile.collectionConfigFile(GSFile.collectDir(GSFile.siteHome(GlobalProperties.getGSDL3Home(), (String) this.config_params.get(GSConstants.SITE_NAME)) + File.separator + collection)));
    706             }
    707 
    708703            if (configStylesheet_doc != null)
    709704            {
    710705                Document format_doc = this.converter.newDOM();
    711706                format_doc.appendChild(format_doc.importNode(format_elem, true));
     707
     708                if (_debug)
     709                {
     710                    String siteHome = GSFile.siteHome(GlobalProperties.getGSDL3Home(), (String) this.config_params.get(GSConstants.SITE_NAME));
     711                    GSXSLT.insertDebugElements(format_doc, GSFile.collectionConfigFile(siteHome, collection));
     712                }
     713
    712714                Node result = this.transformer.transform(configStylesheet_doc, format_doc, config_params); // Needs addressing <-
    713715
     
    733735                if (_debug)
    734736                {
    735                     GSXSLT.mergeStylesheetsDebug(style_doc, new_format, true, true, "OTHER1", GSFile.collectionConfigFile(GSFile.collectDir(GSFile.siteHome(GlobalProperties.getGSDL3Home(), (String) this.config_params.get(GSConstants.SITE_NAME)) + File.separator + collection)));
     737                    String siteHome = GSFile.siteHome(GlobalProperties.getGSDL3Home(), (String) this.config_params.get(GSConstants.SITE_NAME));
     738                    GSXSLT.mergeStylesheetsDebug(style_doc, new_format, true, true, "OTHER1", GSFile.collectionConfigFile(siteHome, collection));
    736739                }
    737740                else
Note: See TracChangeset for help on using the changeset viewer.