Changeset 24397

Show
Ignore:
Timestamp:
12.08.2011 16:38:27 (8 years ago)
Author:
davidb
Message:

Minor adjustment to use in forming URL as a more stable way to control links. Without this change, when running Greenstone3 through a Proxy/ReverseProxy through www.nzdl.org it was loosing the name of the servlet on the text-search links in the breadcrumb area, and the form submit would revert back to trying to use puka.cs.waikato.ac.nz as the domain name instead of www.nzdl.org

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/header.xsl

    r24149 r24397  
    175175            <xsl:variable name="subaction" select="/page/pageRequest/@subaction"/> 
    176176            <td id="quicksearcharea"> 
    177                 <form> 
     177                <form action="{$library_name}"> 
    178178                    <input type="hidden" name="a" value="q"/> 
    179179                    <input type="hidden" name="sa" value="{$subaction}"/> 
     
    217217                                    <a> 
    218218                                        <xsl:attribute name="href"> 
    219                                             ?a=q&amp;rt=d&amp;c=<xsl:value-of select="$collNameChecked"/>&amp;s=<xsl:value-of select="@name"/> 
     219                                            <xsl:value-of select="$library_name"/>?a=q&amp;rt=d&amp;c=<xsl:value-of select="$collNameChecked"/>&amp;s=<xsl:value-of select="@name"/> 
    220220                                        </xsl:attribute> 
    221221                                        <xsl:value-of select="displayItem[@name='name']"/>