Ignore:
Timestamp:
2023-11-30T00:14:31+13:00 (7 months ago)
Author:
davidb
Message:

Code extended to dynamically support two additional tables (per-events, and eventtype)

Location:
gs3-installations/computing50/trunk/sites/computing50/ConnectProxyServlet/src/main
Files:
2 edited

Legend:

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

    r38413 r38452  
    267267        String converted_input_line1 = convertGS3Urls(input_line);
    268268        String converted_input_line2 = converted_input_line1.replaceAll("<query id=\"classifiers\">","<query>");
    269         String converted_input_line3 = converted_input_line2.replaceAll("<c/>","<c></c>");
     269        String converted_input_line22 = converted_input_line2.replaceAll("<query id=\"tbl-eventtype\">","<query>");
     270        String converted_input_line3 = converted_input_line22.replaceAll("<c/>","<c></c>");
    270271        String converted_input_line_final = converted_input_line3.replaceAll("<c />","<c></c>");
    271272
     
    327328        }
    328329        else if (export_filename.equals("Tbl_MajorEvents.xml")) {
     330            doTableOutput(request,response,"Tbl_MajorEvents");
     331        }
     332        else if (export_filename.equals("Tbl_EventTypes.xml")) {
    329333            doTableOutput(request,response,"Tbl_MajorEvents");
    330334        }
  • gs3-installations/computing50/trunk/sites/computing50/ConnectProxyServlet/src/main/webapp/WEB-INF/web.xml.in

    r38413 r38452  
    7777                  <param-value>/collection/computing-50-tabletop/browse/CL8?sa=tabletop&amp;excerptid=classifiers</param-value>
    7878                </init-param>
     79
     80        <init-param>
     81          <param-name>Tbl_EventType</param-name>
     82                  <param-value>/collection/computing-50-tabletop/page/about/?sa=tabletop&amp;excerptid=tbl-eventtype</param-value>
     83                </init-param>
     84        <init-param>
     85          <param-name>Tbl_Per_Events</param-name>
     86                  <param-value>/collection/computing-50-tabletop/page/about/?sa=tabletop&amp;excerptid=tbl-perevents</param-value>
     87                </init-param>
     88       
     89<!--
     90    Tbl_Timeline.xml
     91    Tbl_MajorEvents.xml
     92
     93
     94    Tbl_Acknowledgements.xml
     95    Tbl_Sponsors.xml
     96-->
     97
    7998       
    8099    </servlet>
Note: See TracChangeset for help on using the changeset viewer.