Changeset 6694


Ignore:
Timestamp:
2004-02-02T15:48:40+13:00 (20 years ago)
Author:
nzdl
Message:

removed library from the urls - now they just start with ? which seems to work fine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/MapRetrieve.java

    r6592 r6694  
    182182
    183183    String uid = request.getAttribute(GSXML.USER_ID_ATT);
     184    if (uid.equals("")) {
     185        System.out.println("in metadata retrieve, uid = ''\n"+converter.getPrettyString(request));
     186    }
    184187    result.setAttribute(GSXML.FROM_ATT, DOCUMENT_METADATA_RETRIEVE_SERVICE);
    185188    result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_PROCESS);
     
    308311            }
    309312           
    310             link = "<a href=\"library?a=d&c="+this.cluster_name+"&d="+node_id+coOrdinates+"&dt=map\">";
     313            link = "<a href=\"?a=d&c="+this.cluster_name+"&d="+node_id+coOrdinates+"&dt=map\">";
    311314            thumb = "<img src=\""+this.http_image_dir + thumb + "thumb.jpg\" border=0>";
    312315            value = "<table><tr><td>"+link+"<p>"+place_data+"<br>"+value+"</a></td><td>"+link+thumb+"</a></td></tr></table>";
     
    457460            }
    458461            // add the place name to the html
    459             doc_content = doc_content+"<a href=\"\" onClick=openIt('library?a=q&sa=&rt=r&s=MapQuery&c="+this.cluster_name+"&startPage=1&s1.index=none&s1.maxDocs=10&s1.query="+returnNames[nameIndex]+"')>"+tempName+"</a><br>";
     462            doc_content = doc_content+"<a href=\"\" onClick=openIt('?a=q&sa=&rt=r&s=MapQuery&c="+this.cluster_name+"&startPage=1&s1.index=none&s1.maxDocs=10&s1.query="+returnNames[nameIndex]+"')>"+tempName+"</a><br>";
    460463            }
    461464           
     
    686689        //write the html for the document
    687690
    688         String doc_content_head = "library?a=d&c="+this.cluster_name+"&dt=map&d=";
     691        String doc_content_head = "?a=d&c="+this.cluster_name+"&dt=map&d=";
    689692        doc_content = "<td valign=\"top\"><script>document.write('"+img_left+"legend_"+uid+".jpg"+"?'+new Date().getTime())</script>\"></td>";
    690693        doc_content = doc_content+"<td><script>document.write('"+img_left+"temp_"+uid+"_2.jpg?'+new Date().getTime())</script>\" onclick=\"imgClickHandler(event, this, '"+img_num+"')\"></td>";
     
    809812    leg_num = leg_num+1;
    810813
    811     String doc_link = "library?a=d&c="+this.cluster_name+"&dt=map&d="+doc_id+"`"+ratio+"`"+leg_num+"`";
     814    String doc_link = "?a=d&c="+this.cluster_name+"&dt=map&d="+doc_id+"`"+ratio+"`"+leg_num+"`";
    812815
    813816    StringBuffer dropDownBox = new StringBuffer();
Note: See TracChangeset for help on using the changeset viewer.