Changeset 27886


Ignore:
Timestamp:
2013-07-17T07:05:54+12:00 (11 years ago)
Author:
jlwhisler
Message:

Fixed errors in GS3 homepage tutorial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials/xml-source/tutorial_en.xml

    r27855 r27886  
    49394939</Comment>
    49404940<NumberedItem>
    4941 <Text id="hp-02">Start up your Greenstone server (<Path>Start &rarr; All Programs &rarr; Greenstone3.06 &rarr; Greenstone3 Server</Path>) and click the <b>Enter Library</b> button). This will take you to your library home page, which we will be replacing with our custom home page.</Text>
     4941<Text id="hp-02">Start up your Greenstone server (<Path>Start &rarr; All Programs &rarr; Greenstone3.06 &rarr; Greenstone3 Server</Path>) and click the <b>Enter Library</b> button. This will take you to your library home page, which we will be replacing with our custom home page.</Text>
    49424942</NumberedItem>
    49434943<Heading>
     
    50545054<Format>
    50555055    &lt;xsl:template name="searchBox"&gt;<br />
    5056         <Tab n="1"/>&lt;xsl:for-each select="//page/pageResponse"&gt;<br />
    5057         <Tab n="1"/>&lt;div id="quickSearch"&gt;<br />
    5058             <Tab n="2"/>&lt;gslib:crossCollectionQuickSearchForm/&gt;<br />
    5059         <Tab n="1"/>&lt;/div&gt;<br />
     5056        <Tab n="1"/>&lt;xsl:for-each select="//page/pageResponse/serviceList/service[@name='TextQuery']"&gt;<br />
     5057            <Tab n="2"/>&lt;form name="QuickSearch" method="get" action="{$library_name}"&gt;<br />
     5058                <Tab n="3"/>&lt;input type="hidden" name="a" value="q"/&gt;<br />
     5059                <Tab n="3"/>&lt;input type="hidden" name="rt" value="rd"/&gt;<br />
     5060                <Tab n="3"/>&lt;input type="hidden" name="s" value="{@name}"/&gt;<br />
     5061                <Tab n="3"/>&lt;input type="hidden" name="s1.collection" value="all"/&gt;<br />
     5062                <Tab n="3"/>&lt;input type="text" name="s1.query" size="20" id="search-text" value="" /&gt;<br />
     5063                <Tab n="3"/>&lt;input type="submit" id="search-submit"&gt;<br />
     5064                    <Tab n="4"/>&lt;xsl:attribute name="value"&gt;<br />
     5065                        <Tab n="5"/>&lt;xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/&gt;<br />
     5066                    <Tab n="4"/>&lt;/xsl:attribute&gt;<br />
     5067                <Tab n="3"/>&lt;/input&gt;<br />
     5068            <Tab n="2"/>&lt;/form&gt;<br />     
    50605069        <Tab n="1"/>&lt;/xsl:for-each&gt;<br />
    50615070    &lt;/xsl:template&gt;<br />
     
    50905099<Text id="hp-23">Add the following template before the final <i>&lt;/xsl:stylesheet&gt;</i>:</Text>
    50915100<Format>
    5092     <Tab n="1"/>&lt;xsl:template name="loginButton"&gt;<br />
    5093             <Tab n="2"/>&lt;xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/&gt;<br />
    5094                 <Tab n="3"/>&lt;xsl:choose&gt;<br />
    5095                     <Tab n="4"/>&lt;xsl:when test="$username"&gt;<br />
    5096                         <Tab n="5"/>&lt;li&gt;&lt;a&gt;<br />
    5097                             <Tab n="6"/>&lt;xsl:attribute name="href"&gt;library/admin/AccountSettings?s1.username=&lt;xsl:value-of select="$username"/&gt;&lt;/xsl:attribute&gt;&lt;xsl:value-of select="$username"/&gt;<br />
    5098                         <Tab n="5"/>&lt;/a&gt;&lt;/li&gt;<br />
    5099                         <Tab n="5"/>&lt;li&gt;&lt;a href="library/admin/Register"&gt;Register a new user&lt;/a&gt;&lt;/li&gt;<br />
    5100                                 <Tab n="6"/>&lt;li&gt;&lt;a href="library/admin/ListUsers"&gt;Administration&lt;/a&gt;&lt;/li&gt;<br />
    5101                         <Tab n="5"/>&lt;li&gt;&lt;a&gt;&lt;xsl:attribute name="href"&gt;library?logout=&lt;/xsl:attribute&gt;Logout&lt;/a&gt;&lt;/li&gt;<br />
    5102                     <Tab n="4"/>&lt;/xsl:when&gt;<br />
    5103                     <Tab n="4"/>&lt;xsl:otherwise&gt;<br />
    5104                         <Tab n="5"/>&lt;li&gt;&lt;a href="?a=p&amp;amp;sa=login&amp;amp;redirectURL=library%3Fa=p%26sa=home"&gt;Login<br />
    5105                             <Tab n="6"/>&lt;xsl:attribute name="title"&gt;&lt;xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/&gt;&lt;/xsl:attribute&gt;<br /><br />
    5106 
    5107                         <Tab n="5"/>&lt;/a&gt;&lt;/li&gt;<br />
    5108                     <Tab n="4"/>&lt;/xsl:otherwise&gt;<br />
    5109 &lt;/xsl:choose&gt;<br />                   
     5101&lt;xsl:template name="loginButton"&gt;<br />
     5102    <Tab n="1"/>&lt;xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/&gt;<br />
     5103    <Tab n="1"/>&lt;xsl:choose&gt;<br />
     5104        <Tab n="2"/>&lt;xsl:when test="$username"&gt;<br />
     5105            <Tab n="3"/>&lt;li&gt;&lt;a&gt;<br />
     5106                <Tab n="4"/>&lt;xsl:attribute name="href"&gt;library/admin/AccountSettings?s1.username=&lt;xsl:value-of select="$username"/&gt;&lt;/xsl:attribute&gt;&lt;xsl:value-of select="$username"/&gt;<br />
     5107            <Tab n="3"/>&lt;/a&gt;&lt;/li&gt;<br />
     5108            <Tab n="3"/>&lt;li&gt;&lt;a href="library/admin/Register"&gt;Register a new user&lt;/a&gt;&lt;/li&gt;<br />
     5109                    <Tab n="4"/>&lt;li&gt;&lt;a href="library/admin/ListUsers"&gt;Administration&lt;/a&gt;&lt;/li&gt;<br />
     5110            <Tab n="3"/>&lt;li&gt;&lt;a&gt;&lt;xsl:attribute name="href"&gt;library?logout=&lt;/xsl:attribute&gt;Logout&lt;/a&gt;&lt;/li&gt;<br />
     5111        <Tab n="2"/>&lt;/xsl:when&gt;<br />
     5112        <Tab n="2"/>&lt;xsl:otherwise&gt;<br />
     5113            <Tab n="3"/>&lt;li&gt;&lt;a href="?a=p&amp;amp;sa=login&amp;amp;redirectURL=library%3Fa=p%26sa=home"&gt;Login<br />
     5114                <Tab n="4"/>&lt;xsl:attribute name="title"&gt;&lt;xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/&gt;&lt;/xsl:attribute&gt;<br />
     5115            <Tab n="3"/>&lt;/a&gt;&lt;/li&gt;<br />
     5116        <Tab n="2"/>&lt;/xsl:otherwise&gt;<br />
     5117    <Tab n="1"/>&lt;/xsl:choose&gt;<br />                   
    51105118&lt;/xsl:template&gt;<br />
    51115119</Format>
     
    51165124&lt;li&gt;&lt;a href="?a=p&amp;sa=login&amp;redirectURL=library%3Fa=p%26sa=home"&gt;Login&lt;/a&gt;&lt;/li&gt;<br />
    51175125&lt;li&gt;&lt;a href="library/admin/AccountSettings?s1.username="&gt;Account Settings&lt;/a&gt;&lt;/li&gt;<br />
    5118 &lt;li&gt;&lt;a href="library/admin/Register"&gt;Register a new user&lt;/a&gt;&lt;/li&gt;<br />
     5126&lt;li&gt;&lt;a href="library/admin/AddUser"&gt;Register a new user&lt;/a&gt;&lt;/li&gt;<br />
    51195127&lt;li&gt;&lt;a href="library/admin/ListUsers"&gt;Administration&lt;/a&gt;&lt;/li&gt;<br />
    51205128&lt;li&gt;&lt;a href="library?logout="&gt;Logout&lt;/a&gt;&lt;/li&gt;<br />
     
    51455153</NumberedItem>
    51465154<NumberedItem>
    5147 <Text id="hp-33">For changes to <i>siteConfig.xml</i> to take affect, the site must be reconfigured. To do this, you can either restart the server, or, in a browser window, navigate to <b>http://localhost:8080/greenstone3/library?a=s&amp;sa=c</b> (replace <i>8080</i> if you are running the Greenstone3 server on another port, like <i>8088</i> or <i>8383</i>). Navigate back to your home page (by clicking the link in the upper left corner). The page title and header should now be your new library name. Enter one of your collections and see that your library name (in the top left corner) has changed here, as well.</Text>
     5155<Text id="hp-33">For changes to <i>siteConfig.xml</i> to take affect, the site must be reconfigured. To do this, you can either restart the server, or, in a browser window, navigate to <b>http://localhost:8383/greenstone3/library?a=s&amp;sa=c</b> (replace <i>8383</i> if you are running the Greenstone3 server on another port, like <i>8080</i> or <i>8088</i>). Navigate back to your home page (by clicking the link in the upper left corner). The page title and header should now be your new library name. Enter one of your collections and see that your library name (in the top left corner) has changed here, as well.</Text>
    51485156</NumberedItem>
    51495157</Content>
Note: See TracChangeset for help on using the changeset viewer.