Changeset 27885 for documentation/trunk

Show
Ignore:
Timestamp:
17.07.2013 07:03:19 (6 years ago)
Author:
jlwhisler
Message:

Made minor changes to fix issues Anu encountered when running through home page tutorial -- fixed user registration link; added escape characters; changed the search box template because the search button stretched outside the column boundaries.

Location:
documentation/trunk/tutorial_sample_files/custom
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorial_sample_files/custom/gs3-homepage.txt

    r27854 r27885  
    2020 
    2121<xsl:template name="searchBox"> 
    22 <xsl:for-each select="//page/pageResponse"> 
    23 <div id="quickSearch"> 
    24 <gslib:crossCollectionQuickSearchForm/> 
    25 </div> 
    26 </xsl:for-each> 
     22<xsl:for-each select="//page/pageResponse/serviceList/service[@name='TextQuery']"> 
     23<form name="QuickSearch" method="get" action="{$library_name}"> 
     24<input type="hidden" name="a" value="q"/> 
     25<input type="hidden" name="rt" value="rd"/> 
     26<input type="hidden" name="s" value="{@name}"/> 
     27<input type="hidden" name="s1.collection" value="all"/> 
     28<input type="text" name="s1.query" size="20" id="search-text" value="" /> 
     29<input type="submit" id="search-submit"> 
     30<xsl:attribute name="value"> 
     31<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/> 
     32</xsl:attribute> 
     33</input> 
     34</form>      
     35</xsl:for-each>  
    2736</xsl:template> 
     37     
    2838 
    2939Step 12: 
     
    4151<xsl:attribute name="href">library/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/> 
    4252</a></li> 
    43 <li><a href="library/admin/Register">Register a new user</a></li> 
     53<li><a href="library/admin/AddUser">Register a new user</a></li> 
    4454<li><a href="library/admin/ListUsers">Administration</a></li> 
    4555<li><a><xsl:attribute name="href">library?logout=</xsl:attribute>Logout</a></li> 
  • documentation/trunk/tutorial_sample_files/custom/home-tutorial-final.xsl

    r27854 r27885  
    120120</xsl:template>  
    121121 
    122     <xsl:template name="searchBox"> 
    123         <xsl:for-each select="//page/pageResponse"> 
    124         <div id="quickSearch"> 
    125             <gslib:crossCollectionQuickSearchForm/> 
    126         </div> 
    127         </xsl:for-each>  
    128     </xsl:template> 
     122<xsl:template name="searchBox"> 
     123<xsl:for-each select="//page/pageResponse/serviceList/service[@name='TextQuery']"> 
     124<form name="QuickSearch" method="get" action="{$library_name}"> 
     125<input type="hidden" name="a" value="q"/> 
     126<input type="hidden" name="rt" value="rd"/> 
     127<input type="hidden" name="s" value="{@name}"/> 
     128<input type="hidden" name="s1.collection" value="all"/> 
     129<input type="text" name="s1.query" size="20" id="search-text" value="" /> 
     130<input type="submit" id="search-submit"> 
     131<xsl:attribute name="value"> 
     132<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/> 
     133</xsl:attribute> 
     134</input> 
     135</form>      
     136</xsl:for-each>  
     137</xsl:template> 
    129138     
    130139    <xsl:template name="loginButton"> 
  • documentation/trunk/tutorial_sample_files/custom/home-tutorial.xsl

    r27854 r27885  
    6161                            <h2>Library Links</h2> 
    6262                            <ul> 
    63                                 <li><a href="?a=p&sa=login&redirectURL=library%3Fa=p%26sa=home">Login</a></li> 
     63                                <li><a href="?a=p&amp;sa=login&amp;redirectURL=library%3Fa=p%26sa=home">Login</a></li> 
    6464                                <li><a href="library/admin/AccountSettings?s1.username=">Account Settings</a></li> 
    65                                 <li><a href="library/admin/Register">Register a new user</a></li> 
     65                                <li><a href="library/admin/AddUser">Register a new user</a></li> 
    6666                                <li><a href="library/admin/ListUsers">Administration</a></li> 
    6767                                <li><a href="library?logout=">Logout</a></li>