Ignore:
Timestamp:
2018-02-21T19:29:50+13:00 (6 years ago)
Author:
ak19
Message:

I changed gli4gs3.xsl to rewrite the applet page produced by PageAction.java to replace it with the JNLP Web Start version of GLI. Dr Bainbridge got this to work by changing the Librarian Interface link on the main page to have a download attribute, which will force the linked item to be downloaded. The download attribute is set to the name to assign to the downloaded item, the jnlp file. Now removing the unnecessary static GLIappWebStart.jnlp from the gli folder (as it used some fixed strings for dynamic values) and removed the unnecessary style.xsl and icons.xsl from default\transform as they were used by the now bypassed applet and were moreover GS2 styling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl

    r32127 r32150  
    385385
    386386  <xsl:template name="libraryInterfaceLink">
    387     <!--<li>-->
    388       <a href="{$library_name}?a=p&amp;sa=gli4gs3">
     387    <div class="paramLabel">
     388      <!--
     389        Using HTML5 download attribute to anchor tag, providing download-as-filename value, so Gli App JNLP file downloads.
     390        Seems we don't need to set the MIME type for downloaded JNLP to launch, if program associations are correctly set up.
     391      -->
     392      <a href="{$library_name}?a=p&amp;sa=gli4gs3" download="GLIappWebStart.jnlp">
    389393        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/>
    390394      </a>
    391     <!--</li>-->
     395    </div>
     396    <div class="paramValue">
     397      <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.gliapp_webstart')"/>
     398    </div>
    392399  </xsl:template>
    393400 
Note: See TracChangeset for help on using the changeset viewer.