Ignore:
Timestamp:
2012-09-12T20:00:21+12:00 (12 years ago)
Author:
ak19
Message:

Related to previous commit: needed to update Search display to display images again, since in the last commit only Browse had been updated. Previous commit message: 1. Fixed the democlient to work with the new GS3 again: lots of small things had got broken (such as image display, since the metadata being stored was different). 2. Updating the jar files and democlient distribution zip files with the latest working version of this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/SearchResultsDisplay.java

    r26180 r26181  
    323323            String docContent = docNode.getContent();
    324324            if(docContent != null) {
     325            try {
    325326                docContent = docContent.replaceAll(
    326327                    "ALIGN=\"JUSTIFY\"", "ALIGN=\"LEFT\"");
     328            HTMLDocument doc = (HTMLDocument)this.docContentEditPane.getDocument();
     329            doc.setBase(new URL(client.getBaseURL()));
     330            } catch(MalformedURLException mex) {
     331            mex.printStackTrace(); //nothing to be done, leave the base as it is
     332            }
    327333            }
    328334
     
    379385                        = (HTMLDocument)this.docContentEditPane.getDocument();
    380386                    try{
     387                    switch(client.getActiveDL()) {
     388                   
     389                    case GS3JavaClient.GREENSTONE:
     390                    doc.setBase(new URL(baseURL));
     391                    break;
     392                    case GS3JavaClient.FEDORA:                 
    381393                        URL url = new URL(baseURL+docNode.getRoot().nodeID+"/");
    382394                        //System.err.println("url: " + url.toString());
     
    384396                        //docContent = docContent.replaceAll("_httpdocimg_/", "");
    385397                        LOG.debug(docContent);
     398                    break;
     399                    default:
     400                    break;
     401                    }
    386402                    }catch(MalformedURLException mex) {
    387403                        ; //nothing to be done, leave the base as it is
Note: See TracChangeset for help on using the changeset viewer.