Last change
on this file since 27854 was 27854, checked in by jlwhisler, 11 years ago |
New files for the new tutorial on GS3 home page customization
|
File size:
1.6 KB
|
Line | |
---|
1 | Step 8:
|
---|
2 |
|
---|
3 | <xsl:template name="collectionsList">
|
---|
4 | <xsl:for-each select="./page/pageResponse/collectionList/collection">
|
---|
5 | <xsl:variable name="collectionName" select="@name"/>
|
---|
6 | <li>
|
---|
7 | <a href="library/collection/{$collectionName}/page/about">
|
---|
8 | <xsl:value-of select="displayItem[@name='name']"/>
|
---|
9 | </a>
|
---|
10 | </li>
|
---|
11 | </xsl:for-each>
|
---|
12 | </xsl:template>
|
---|
13 |
|
---|
14 |
|
---|
15 | Step 9:
|
---|
16 |
|
---|
17 | <xsl:call-template name="collectionsList"/>
|
---|
18 |
|
---|
19 | Step 11:
|
---|
20 |
|
---|
21 | <xsl:template name="searchBox">
|
---|
22 | <xsl:for-each select="//page/pageResponse">
|
---|
23 | <div id="quickSearch">
|
---|
24 | <gslib:crossCollectionQuickSearchForm/>
|
---|
25 | </div>
|
---|
26 | </xsl:for-each>
|
---|
27 | </xsl:template>
|
---|
28 |
|
---|
29 | Step 12:
|
---|
30 |
|
---|
31 | <xsl:call-template name="searchBox"/>
|
---|
32 |
|
---|
33 |
|
---|
34 | Step 15:
|
---|
35 |
|
---|
36 | <xsl:template name="loginButton">
|
---|
37 | <xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/>
|
---|
38 | <xsl:choose>
|
---|
39 | <xsl:when test="$username">
|
---|
40 | <li><a>
|
---|
41 | <xsl:attribute name="href">library/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/>
|
---|
42 | </a></li>
|
---|
43 | <li><a href="library/admin/Register">Register a new user</a></li>
|
---|
44 | <li><a href="library/admin/ListUsers">Administration</a></li>
|
---|
45 | <li><a><xsl:attribute name="href">library?logout=</xsl:attribute>Logout</a></li>
|
---|
46 | </xsl:when>
|
---|
47 | <xsl:otherwise>
|
---|
48 | <li><a href="?a=p&sa=login&redirectURL=library%3Fa=p%26sa=home">Login
|
---|
49 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute>
|
---|
50 |
|
---|
51 | </a></li>
|
---|
52 | </xsl:otherwise>
|
---|
53 | </xsl:choose>
|
---|
54 | </xsl:template>
|
---|
55 |
|
---|
56 | Step 16:
|
---|
57 |
|
---|
58 | <xsl:call-template name="loginButton"/>
|
---|
59 |
|
---|
60 | Step 18:
|
---|
61 |
|
---|
62 | <xsl:call-template name="siteName"/> |
---|
Note:
See
TracBrowser
for help on using the repository browser.