Changeset 32127

Show
Ignore:
Timestamp:
12.02.2018 15:06:35 (2 weeks ago)
Author:
ak19
Message:

Fixing up the GS3 GLI applet. To get it to work, follow the instructions at  http://wiki.greenstone.org/doku.php?id=old:remote_greenstone&s[]=applet 2. But need to put the SignedGatherer?.java in web\applet for GS3. 3. In the default interface, edit home.xsl and uncomment <gslib:libraryInterfaceLink/>. 4. Set up Java Control Panel to allow from the host:port of the (remote) GS server on which the GS3 to connect to is hosted. This will then allow accessing applets from that host:port. 5. Configure Internet Explorer (works on Win 8) as explained in GS3's Tudors tutorial for the Phind phrase browser. 6. In Internet Explorer, visit the GS home page, click on the Librarian Interface link and now you will be asked to allow and run the SignedGatherer?.jar GLI applet.

Location:
main/trunk/greenstone3
Files:
3 added
3 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/PageAction.java

    r31872 r32127  
    411411        Element applet_elem = doc.createElement("Applet"); 
    412412        page_response.appendChild(applet_elem); 
    413         applet_elem.setAttribute("ARCHIVE", "SignedGatherer.jar"); 
     413        applet_elem.setAttribute("ARCHIVE", "SignedGatherer.jar"); // SignedGatherer.jar should be placed in web/applet.  
    414414        applet_elem.setAttribute("CODE", "org.greenstone.gatherer.GathererApplet"); 
    415         applet_elem.setAttribute("CODEBASE", "applet"); 
     415        applet_elem.setAttribute("CODEBASE", "applet"); // SignedGatherer.jar is in web/applet. But CODEBASE is the *URL* path to the (jar) file containing the main class, and is relative to documentroot "web". 
    416416        applet_elem.setAttribute("HEIGHT", "50"); 
    417417        applet_elem.setAttribute("WIDTH", "380"); 
     418         
    418419        Element gwcgi_param_elem = doc.createElement("PARAM"); 
    419420        gwcgi_param_elem.setAttribute("name", "gwcgi"); 
     
    426427        gsdl3_param_elem.setAttribute("value", "true"); 
    427428        applet_elem.appendChild(gsdl3_param_elem); 
    428  
     429         
     430        Node default_text = doc.createTextNode("GLI applet"); 
     431        applet_elem.appendChild(default_text); 
     432         
    429433        return page_response; 
    430434    } 
  • main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl

    r32045 r32127  
    385385 
    386386  <xsl:template name="libraryInterfaceLink"> 
    387     <li> 
     387    <!--<li>--> 
    388388      <a href="{$library_name}?a=p&amp;sa=gli4gs3"> 
    389389        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/> 
    390390      </a> 
    391     </li> 
     391    <!--</li>--> 
    392392  </xsl:template> 
    393393   
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl

    r31600 r32127  
    5959         
    6060        <xsl:for-each select="serviceList/service[@type='authen']"> 
     61            <!--<gslib:libraryInterfaceLink/><br/>--> 
    6162            <gslib:authenticationLink/><br/><br/> 
    6263            <gslib:registerLink/><br/>