Changeset 38110 for gs3-installations


Ignore:
Timestamp:
2023-09-13T16:19:24+12:00 (9 months ago)
Author:
davidb
Message:

Changes made during testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/computing50/trunk/sites/computing50/ConnectProxyServlet/src/main/java/org/greenstone/tabletop/ConnectProxyServlet.java

    r38026 r38110  
    182182    throws MalformedURLException, IOException
    183183    {
    184     URL dl_url = new URL("http://localhost:8383/greenstone3/library/collection/staff-photos/browse/CL1?sa=tabletop&excerptid=classifiers");
     184    URL dl_url = new URL("http://localhost:8383/greenstone3/library/collection/computing-50-tabletop/browse/CL1?sa=tabletop&excerptid=classifiers");
    185185
    186186   
     
    257257        if (export_filename.equals("Tbl_People.xml")) {
    258258            doTblPeople(request,response);
    259 
    260             /*
    261             export_filename = "Waikato_" + export_filename;
    262 
     259        }
     260        else {
     261
     262            String waikato_export_filename = "Waikato_" + export_filename;
     263            File waikato_src_file = new File(__dirname + "/" + waikato_export_filename);
     264
     265            File srcFile = null;
     266            if (waikato_src_file.exists()) {
     267            logger.info("Detected Waikato version of: " + export_filename);
     268            srcFile = waikato_src_file;
     269            }
     270            else {
     271            srcFile = new File(__dirname + "/" + export_filename);
     272            }
     273           
    263274            response.setHeader("Content-type", "text/xml");
    264275            response.setCharacterEncoding("UTF-8");
    265276           
    266             File srcFile = new File(__dirname + "/" + export_filename);
    267             FileUtils.copyFile(srcFile, response.getOutputStream());
    268             */
    269         }
    270         else {
    271                    
    272             response.setHeader("Content-type", "text/xml");
    273             //response.setCharacterEncoding("UTF-8");
    274            
    275             File srcFile = new File(__dirname + "/" + export_filename);
    276277            FileUtils.copyFile(srcFile, response.getOutputStream());
    277278        }
Note: See TracChangeset for help on using the changeset viewer.