Changeset 27886 for documentation/trunk/tutorials
- Timestamp:
- 2013-07-17T07:05:54+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/xml-source/tutorial_en.xml
r27855 r27886 4939 4939 </Comment> 4940 4940 <NumberedItem> 4941 <Text id="hp-02">Start up your Greenstone server (<Path>Start → All Programs → Greenstone3.06 → 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 → All Programs → Greenstone3.06 → 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> 4942 4942 </NumberedItem> 4943 4943 <Heading> … … 5054 5054 <Format> 5055 5055 <xsl:template name="searchBox"><br /> 5056 <Tab n="1"/><xsl:for-each select="//page/pageResponse"><br /> 5057 <Tab n="1"/><div id="quickSearch"><br /> 5058 <Tab n="2"/><gslib:crossCollectionQuickSearchForm/><br /> 5059 <Tab n="1"/></div><br /> 5056 <Tab n="1"/><xsl:for-each select="//page/pageResponse/serviceList/service[@name='TextQuery']"><br /> 5057 <Tab n="2"/><form name="QuickSearch" method="get" action="{$library_name}"><br /> 5058 <Tab n="3"/><input type="hidden" name="a" value="q"/><br /> 5059 <Tab n="3"/><input type="hidden" name="rt" value="rd"/><br /> 5060 <Tab n="3"/><input type="hidden" name="s" value="{@name}"/><br /> 5061 <Tab n="3"/><input type="hidden" name="s1.collection" value="all"/><br /> 5062 <Tab n="3"/><input type="text" name="s1.query" size="20" id="search-text" value="" /><br /> 5063 <Tab n="3"/><input type="submit" id="search-submit"><br /> 5064 <Tab n="4"/><xsl:attribute name="value"><br /> 5065 <Tab n="5"/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/><br /> 5066 <Tab n="4"/></xsl:attribute><br /> 5067 <Tab n="3"/></input><br /> 5068 <Tab n="2"/></form><br /> 5060 5069 <Tab n="1"/></xsl:for-each><br /> 5061 5070 </xsl:template><br /> … … 5090 5099 <Text id="hp-23">Add the following template before the final <i></xsl:stylesheet></i>:</Text> 5091 5100 <Format> 5092 <Tab n="1"/><xsl:template name="loginButton"><br /> 5093 <Tab n="2"/><xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/><br /> 5094 <Tab n="3"/><xsl:choose><br /> 5095 <Tab n="4"/><xsl:when test="$username"><br /> 5096 <Tab n="5"/><li><a><br /> 5097 <Tab n="6"/><xsl:attribute name="href">library/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/><br /> 5098 <Tab n="5"/></a></li><br /> 5099 <Tab n="5"/><li><a href="library/admin/Register">Register a new user</a></li><br /> 5100 <Tab n="6"/><li><a href="library/admin/ListUsers">Administration</a></li><br /> 5101 <Tab n="5"/><li><a><xsl:attribute name="href">library?logout=</xsl:attribute>Logout</a></li><br /> 5102 <Tab n="4"/></xsl:when><br /> 5103 <Tab n="4"/><xsl:otherwise><br /> 5104 <Tab n="5"/><li><a href="?a=p&amp;sa=login&amp;redirectURL=library%3Fa=p%26sa=home">Login<br /> 5105 <Tab n="6"/><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute><br /><br /> 5106 5107 <Tab n="5"/></a></li><br /> 5108 <Tab n="4"/></xsl:otherwise><br /> 5109 </xsl:choose><br /> 5101 <xsl:template name="loginButton"><br /> 5102 <Tab n="1"/><xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/><br /> 5103 <Tab n="1"/><xsl:choose><br /> 5104 <Tab n="2"/><xsl:when test="$username"><br /> 5105 <Tab n="3"/><li><a><br /> 5106 <Tab n="4"/><xsl:attribute name="href">library/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/><br /> 5107 <Tab n="3"/></a></li><br /> 5108 <Tab n="3"/><li><a href="library/admin/Register">Register a new user</a></li><br /> 5109 <Tab n="4"/><li><a href="library/admin/ListUsers">Administration</a></li><br /> 5110 <Tab n="3"/><li><a><xsl:attribute name="href">library?logout=</xsl:attribute>Logout</a></li><br /> 5111 <Tab n="2"/></xsl:when><br /> 5112 <Tab n="2"/><xsl:otherwise><br /> 5113 <Tab n="3"/><li><a href="?a=p&amp;sa=login&amp;redirectURL=library%3Fa=p%26sa=home">Login<br /> 5114 <Tab n="4"/><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute><br /> 5115 <Tab n="3"/></a></li><br /> 5116 <Tab n="2"/></xsl:otherwise><br /> 5117 <Tab n="1"/></xsl:choose><br /> 5110 5118 </xsl:template><br /> 5111 5119 </Format> … … 5116 5124 <li><a href="?a=p&sa=login&redirectURL=library%3Fa=p%26sa=home">Login</a></li><br /> 5117 5125 <li><a href="library/admin/AccountSettings?s1.username=">Account Settings</a></li><br /> 5118 <li><a href="library/admin/ Register">Register a new user</a></li><br />5126 <li><a href="library/admin/AddUser">Register a new user</a></li><br /> 5119 5127 <li><a href="library/admin/ListUsers">Administration</a></li><br /> 5120 5128 <li><a href="library?logout=">Logout</a></li><br /> … … 5145 5153 </NumberedItem> 5146 5154 <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:8 080/greenstone3/library?a=s&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&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> 5148 5156 </NumberedItem> 5149 5157 </Content>
Note:
See TracChangeset
for help on using the changeset viewer.