Changeset 31348 for other-projects

Show
Ignore:
Timestamp:
24.01.2017 14:01:55 (22 months ago)
Author:
davidb
Message:

Restructure of how convert-to works

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/vol-checker/src/org/hathitrust/extractedfeatures/VolumeCheck.java

    r31347 r31348  
    242242        String cgi_convert_col = request.getParameter("convert-col"); 
    243243         
     244        System.err.println("**** cgi_convert_col = '" + cgi_convert_col + "'"); 
     245         
    244246        if (cgi_ids != null) { 
    245247            response.setContentType("application/json"); 
     
    315317        else if (cgi_convert_col != null) { 
    316318            // c=464226859&a=download&format=text 
    317             String cgi_c = request.getParameter("c"); 
     319            //String cgi_c = request.getParameter("c"); 
    318320            String cgi_a = request.getParameter("a"); 
    319321            String cgi_format = request.getParameter("format"); 
    320322             
    321             if ((cgi_c == null) || (cgi_a == null) || (cgi_format == null)) { 
    322                 response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Malformed arguments.  Need 'c', 'a', and 'format'"); 
     323            if ((cgi_a == null) || (cgi_format == null)) { 
     324                response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Malformed arguments.  Need 'a', and 'format'"); 
    323325            } 
    324326            else { 
    325                 doCollectionToWorkset(response,cgi_c,cgi_a,cgi_format); 
     327                doCollectionToWorkset(response,cgi_convert_col,cgi_a,cgi_format); 
    326328            } 
    327329