Index: /documentation/trunk/tutorials/xml-source/tutorial_en.xml
===================================================================
--- /documentation/trunk/tutorials/xml-source/tutorial_en.xml	(revision 27854)
+++ /documentation/trunk/tutorials/xml-source/tutorial_en.xml	(revision 27855)
@@ -2783,4 +2783,214 @@
 </Content>
 </Tutorial></MajorVersion>
+<MajorVersion number="3">
+<Tutorial id="using_themes">
+<Title>
+<Text id="themes-1">Customization: Themes</Text>
+</Title>
+<SampleFiles folder="custom"/>
+<Version initial="3.05" current="3.05"/>
+<Content>
+<Comment>
+<Text id="themes-2">This exercise looks at changing the appearance of your entire Greenstone Library using Themes created with jQuery ThemeRoller. First, we will look at how to use premade themes. Then, we will make a custom theme using ThemeRoller.</Text>
+</Comment>
+<Heading>
+<Text id="themes-0">Using Greenstone Visual Themes</Text>
+</Heading>
+<NumberedItem>
+<Text id="themes-3">Enter your Greenstone Library. ( Go to <Path>Start &rarr; All Programs &rarr; Greenstone-3.05 &rarr; Greenstone3 Server</Path> and click <AutoText text="Enter Library"/>.)</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-4">In order to make changes to the library's theme, you must be logged in as an administrator. Click <AutoText key="gs3::interface_default::login_b"/> in the top right-hand corner. The default login is:</Text>
+<Format>
+<AutoText key="gs3::interface_default::authen.username"/>: admin<br/>
+<AutoText key="gs3::interface_default::authen.password"/>: admin
+</Format>
+<Text id="themes-5">Click <AutoText key="gs3::interface_default::login_b"/>. It is advisable to change the default password, if you haven't already. To do this, click the <AutoText text="admin"/> button in the top right-hand corner, and select <AutoText key="gs3::interface_default::authen.account_settings"/>. Click <AutoText key="gs3::interface_default::authen.change_password"/>. Enter the <AutoText key="gs3::interface_default::authen.old_password"/> (admin); then enter a new password in the <AutoText key="gs3::interface_default::authen.new_password"/> and  <AutoText key="gs3::interface_default::authen.retype_password"/> text boxes. Click <AutoText key="gs3::interface_default::authen.submit"/>. The password will be changed, and you will be taken to the <AutoText key="gs3::interface_default::authen.authentication"/>, where you can view a list of the current users.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-6">Go to <AutoText key="gs3::interface_default::pref_b"/>. Now that we are signed in as an administrator, we can see the <AutoText key="gs3::interface_default::pref.theme"/> option, where we can quickly change the theme of our collections. These themes were created using JQuery UIâs ThemeRoller (<Link>http://jqueryui.com/themeroller/</Link>).  The first four options (Greenstone Default and Greenstone Custom 1, 2 and 3) are included as part of the Greenstone 3 installation. The remaining themes are retrieved from the web via the jQuery UI API.</Text>
+<Text id="themes-7">Select <AutoText text="Theme: Greenstone Custom 2"/> from the drop-down menu, and click <AutoText key="gs3::interface_default::pref.set_prefs"/>. Now, all of the collections in your Greenstone library should have the Greenstone Custom 2 theme.</Text>
+<Text id="themes-8">Return to the library homepage (click <AutoText text="My Greenstone Library" type="italics"/> in the upper left-hand corner) and explore several of your collections. They should all display the new theme.</Text>
+</NumberedItem>
+<Heading>
+<Text id="themes-10">Creating a custom theme using ThemeRoller (advanced)</Text>
+</Heading>
+<NumberedItem>
+<Text id="themes-11">Go to the jQuery UI ThemeRoller webpage (<Link>http://jqueryui.com/themeroller/</Link>). The <AutoText text="Roll Your Own"/> menu of the <AutoText text="ThemeRoller"/> bar on the left can be used to design a custom theme. As changes are made in this menu, the corresponding items on the right reflect these changes. The most important sections for Greenstone customization are:</Text>
+<Format>
+<table>
+<tr style="font-weight:bold"><td>Section</td><td>HTML class</td><td>Greenstone 3 usage</td></tr>
+<tr><td>Header/Toolbar</td><td>ui-widget-header</td><td>This sets the appearance of the large, main banner and the footer</td></tr>
+<tr><td>Content</td><td>ui-widget-content</td><td>Sets the appearance for the main area of the page, where the content (e.g. a list of documents) is displayed</td></tr>
+<tr><td>Clickable: default state</td><td>ui-state-default</td><td>Sets the appearance for the small bar along the top, most buttons (Login, Help, Preferences, Test Search, Form Search, Advanced Search), and all unselected browse tabs</td></tr>
+<tr><td>Clickable: hover state</td><td>ui-state-hover</td><td>This sets the appearance for the Login, Help, and Preferences buttons and browse tabs when the mouse hovers over them</td></tr>
+<tr><td>Clickable: active state</td><td>ui-state-active</td><td>This sets the appearance of the selected browse tab</td></tr>
+</table>
+</Format>
+<Comment>
+<Text id="themes-12">ThemeRoller will not affect some aspects of you Greenstone library's appearance, e.g. the actual design layout, the background color, the font, the search button.</Text>
+</Comment>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-13">Change the Theme to the following values:</Text>
+<Format>
+<table style="text-align:center;border-collapse:collapse" border="1">
+<tr><td rowspan="6" width="180">Header/Toolbar</td><td width="120">Background color</td><td width="80">#a23336</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>50%</td></tr>
+<tr><td>Border</td><td>#000000</td></tr>
+<tr><td>Text</td><td>#000000</td></tr>
+<tr><td>Icon</td><td>#000000</td></tr>
+<tr><td rowspan="6">Content</td><td>Background color</td><td>#000000</td></tr>
+<tr><td rowspan="2">Texture</td><td>inset-soft</td></tr>
+<tr><td>25%</td></tr>
+<tr><td>Border</td><td>#000000</td></tr>
+<tr><td>Text</td><td>#c2bcbc</td></tr>
+<tr><td>Icon</td><td>#c2bcbc</td></tr>
+<tr><td rowspan="6">Clickable: default state</td><td>Background color</td><td>#7e7676</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>55%</td></tr>
+<tr><td>Border</td><td>#000000</td></tr>
+<tr><td>Text</td><td>#ffffff</td></tr>
+<tr><td>Icon</td><td>#ffffff</td></tr>
+<tr><td rowspan="6">Clickable: hover state</td><td>Background Color</td><td>#303030</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>75%</td></tr>
+<tr><td>Border</td><td>#000000</td></tr>
+<tr><td>Text</td><td>#ffffff</td></tr>
+<tr><td>Icon</td><td>#ffffff</td></tr>
+<tr><td rowspan="6">Clickable: active state</td><td>Background Color</td><td>#000000</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>65%</td></tr>
+<tr><td>Border</td><td>#000000</td></tr>
+<tr><td>Text</td><td>#ffffff</td></tr>
+<tr><td>Icon</td><td>#ffffff</td></tr>
+</table>
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-14">Click the <AutoText text="Download theme"/> button. Ensure the Stable version if jQuery is selected. Under <AutoText text="Components"/> uncheck <AutoText text="Toggle All" type="italics"/>, which will uncheck all of the boxes. Under <AutoText text="UI Core"/> check <AutoText text="Core" type="italics"/>, and under <AutoText text="Widgets"/> check <AutoText text="Datepicker" type="italics"/>. At the bottom of the page, under <AutoText text="Theme"/>, <AutoText text="Custom Theme" type="italics"/> should be selected. For <AutoText text="Theme Folder Name:"/>, enter <AutoText text="TutorialTheme" type="italics"/>. Leave <AutoText text="CSS Scope"/> blank. Click <AutoText text="Download"/>. In the pop-up window, select <AutoText text="Save File"/> and click <AutoText text="OK"/> to download the zip file.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-15">Go to the folder where the zip file was downloaded, and unzip the folder (on Windows, right-click, select <AutoText text="Extract All..."/> and click <AutoText text="Extract"/>).</Text>
+<Text id="themes-16">The extracted folder should be named <AutoText text="jquery-ui-1.10.2.custom" type="italics"/>, or something similar, and should contain three folders (css, development-bundle, js) and an html file (index.html). In the <AutoText text="css"/> folder, there is a folder called <AutoText text="TutorialTheme"/>. Copy this entire folder into <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr;  style &rarr; themes</Path>.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-17">Go to <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr;  default &rarr;  transform &rarr;  pages</Path> and open <AutoText text="pref.xsl"/> in a text editor. Find the following section and add in the highlighted text, which can be copied from <AutoText text="gs3-theme.tweak.txt" type="italics"/>). Take note of the initial comma. </Text>
+<Format>
+&lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;<br/>
+	<Tab n="1"/>$(document).ready(function(){<br/>
+		<Tab n="2"/>$(&quot;#switcher&quot;).themeswitcher({<br/>
+			<Tab n="3"/>imgpath: &quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/images/&quot;,<br/>
+			<Tab n="3"/>additionalThemes: [<br/>
+				<Tab n="4"/>icon:&quot;theme_90_greenstone.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/main/jquery-ui-1.8.16.custom.css&quot;},<br/>
+				<Tab n="4"/>{title:&quot;Greenstone Custom 1&quot;, name:&quot;custom-theme1&quot;, icon:&quot;theme_90_start_menu.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/alt_theme_1/jquery-ui-1.8.16.custom.css&quot;},<br/>
+				<Tab n="4"/>{title:&quot;Greenstone Custom 2&quot;, name:&quot;custom-theme2&quot;, icon:&quot;theme_90_mint_choco.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/alt_theme_2/jquery-ui-1.8.16.custom.css&quot;},<br/>
+				<Tab n="4"/>{title:&quot;Greenstone Custom 3&quot;, name:&quot;custom-theme3&quot;, icon:&quot;theme_90_trontastic.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;<br/>/style/themes/alt_theme_3/jquery-ui-1.8.16.custom.css&quot;}<highlight>,     <br/>
+				<Tab n="4"/>{title:&quot;Tutorial Theme&quot;, name:&quot;TutorialTheme&quot;, icon:&quot;TutorialTheme.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/TutorialTheme/jquery-ui-1.10.2.custom.css&quot;}</highlight><br/>
+			<Tab n="3"/>]<br/>
+		<Tab n="2"/>});<br/>
+	<Tab n="1"/>});<br/>
+&lt;/xsl:text&gt;<br/>
+</Format>
+<Text id="themes-17a">Save and close <AutoText text="pref.xsl"/>.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-18">Return to the Library homepage. If not still logged in, login again. Go to the <AutoText key="gs3::interface_default::pref_b"/> page and click on the drop-down menu for <AutoText key="gs3::interface_default::pref.theme"/>. (If the <AutoText key="gs3::interface_default::pref.theme"/> option has disappeared, ensure that you copied the highlighted section in its entirety into the correct place in <AutoText text="pref.xsl"/>, especially that you did not miss the initial comma.) The fifth item in the list should now be "Tutorial Theme". (It will not have a calendar icon like the other themes, because the image referenced in the above statement - TutorialTheme.png - does not exist. To create an icon to match the theme, see below.) Select Tutorial Theme, and click <AutoText key="gs3::interface_default::pref.set_prefs"/>. All of your Greenstone collections will be in this new, custom theme.</Text>
+</NumberedItem>
+<Comment>
+<Text id="themes-20">The <AutoText key="gs3::interface_default::pref.theme"/> drop-down menu in <AutoText key="gs3::interface_default::pref_b"/> includes an image for each theme, along with the theme title. If no image is available, only the title is displayed. If you would like to include an image for your custom theme similar to those visible for the other theme options, follow the instructions below. </Text>
+</Comment>
+<NumberedItem>
+<Text id="themes-21">Return to the folder extracted from the zip file downloaded from jQuery (<AutoText text="jquery-ui-1.10.2.custom"/> or something similar). Open <AutoText text="index.html" type="italics"/> in a web browser. Scroll down so that the Datepicker calendar is completely visible on your screen, and take a screen shot. (On Windows, this is done by pressing the print screen - <AutoText text="PrtScn"/> - button.) </Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-22">Open a picture editor (like Paint) and Paste. Select and crop the image around the calendar under Datepicker. Resize the image to 90px by 80 px. (In Paint, click Resize. Under Resize, choose Pixels. Unselect Maintain aspect ratio. Still under Resize - <em>not</em> the Skew section - change Horizontal to 90 and Vertical to 80 and click &lt;OK&gt;.) Save the image in <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr; style &rarr; images </Path> as TutorialTheme.png.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="themes-23">Return to the <AutoText key="gs3::interface_default::pref_b"/> page, and the Tutorial Theme in the <AutoText key="gs3::interface_default::pref.theme"/> drop-down menu will now have a corresonding calendar icon.</Text>
+</NumberedItem>
+</Content></Tutorial>
+<Tutorial id="collection_themes">
+<Title>
+<Text id="customize-00">Collection-Specific Themes</Text>
+</Title>
+<SampleFiles folder="custom"/>
+<Prerequisite id="using_themes"/>
+<Version initial="3.05" current="3.05"/>
+<Content>
+<Comment>
+<Text id="customize-01">The <AutoText key="gs3::interface_default::pref.theme"/> menu on the <AutoText key="gs3::interface_default::pref_b"/> page sets the theme for the entire Greenstone library. This tutorial explains how to use themes on a collection level, by changing the theme of the <AutoText text="backdrop"/> collection.</Text>
+</Comment>
+<Heading>
+<Text id="customize-02">Creating a custom theme</Text>
+</Heading>
+<NumberedItem>
+<Text id="customize-03">Go to the jQuery UI ThemeRoller webpage (<Link>http://jqueryui.com/themeroller/</Link>). Change the Theme to the following values:</Text>
+<Format>
+<table style="text-align:center;border-collapse:collapse" border="1">
+<tr><td rowspan="6" width="180">Header/Toolbar</td><td width="120">Background color</td><td width="80">#141a38</td></tr>
+<tr><td rowspan="2">Texture</td><td>highlight_soft</td></tr>
+<tr><td>45%</td></tr>
+<tr><td>Border</td><td>#ffffff</td></tr>
+<tr><td>Text</td><td>#ffffff</td></tr>
+<tr><td>Icon</td><td>#ffffff</td></tr>
+<tr><td rowspan="6">Content</td><td>Background color</td><td>#ffffff</td></tr>
+<tr><td rowspan="2">Texture</td><td>flat</td></tr>
+<tr><td>75%</td></tr>
+<tr><td>Border</td><td>#ffffff</td></tr>
+<tr><td>Text</td><td>#222222</td></tr>
+<tr><td>Icon</td><td>#222222</td></tr>
+<tr><td rowspan="6">Clickable: default state</td><td>Background color</td><td>#e9c416</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>55%</td></tr>
+<tr><td>Border</td><td>#ffffff</td></tr>
+<tr><td>Text</td><td>#555555</td></tr>
+<tr><td>Icon</td><td>#888888</td></tr>
+<tr><td rowspan="6">Clickable: hover state</td><td>Background Color</td><td>#e9d47b</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>75%</td></tr>
+<tr><td>Border</td><td>#ffffff</td></tr>
+<tr><td>Text</td><td>#212121</td></tr>
+<tr><td>Icon</td><td>#454545</td></tr>
+<tr><td rowspan="6">Clickable: active state</td><td>Background Color</td><td>#ffffff</td></tr>
+<tr><td rowspan="2">Texture</td><td>glass</td></tr>
+<tr><td>65%</td></tr>
+<tr><td>Border</td><td>#ffffff</td></tr>
+<tr><td>Text</td><td>#212121</td></tr>
+<tr><td>Icon</td><td>#454545</td></tr>
+</table>
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="customize-04">Click the <AutoText text="Download theme"/> button. Ensure the Stable version of jQuery is selected. Under <AutoText text="Components"/> uncheck <AutoText text="Toggle All" type="italics"/>, which will uncheck all of the boxes. Under <AutoText text="UI Core"/> check <AutoText text="Core" type="italics"/>, and under <AutoText text="Widgets"/> check <AutoText text="Datepicker" type="italics"/>. At the bottom of the page, under <AutoText text="Theme"/>, <AutoText text="Custom Theme" type="italics"/> should be selected. For <AutoText text="Theme Folder Name:"/>, enter <AutoText text="CollectionTheme" type="italics"/>. Leave <AutoText text="CSS Scope"/> blank. Click <AutoText text="Download"/>. In the pop-up window, select <AutoText text="Save File"/> and click <AutoText text="OK"/> to download the zip file.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="customize-05">Go to the folder where the zip file was downloaded, and unzip the folder (on Windows, right-click, select <AutoText text="Extract All..."/> and click <AutoText text="Extract"/>).</Text>
+<Text id="customie-06">The extracted folder should be named <AutoText text="jquery-ui-1.10.2.custom" type="italics"/>, or something similar, and should contain three folders (css, development-bundle, js) and an html file (index.html). In the <AutoText text="css"/> folder, there is a folder called <AutoText text="CollectionTheme"/>. Copy this entire folder into <Path>Greenstone3 &rarr; web &rarr; sites &rarr; localsite &rarr; collect &rarr; backdrop &rarr; style</Path>.</Text>
+</NumberedItem>
+<Heading>
+<Text id="customize-06">Setting a collection's theme</Text>
+</Heading>
+<NumberedItem>
+<Text id="customize-07">Open the Greenstone Librarian Interface (from the Windows <AutoText text="Start" type="italics"/> menu) and open the <AutoText text="backdrop"/> collection (use the <AutoText key="glidict::Menu.File"/> menu).</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="customize-08">In the <AutoText key="glidict::GUI.Format"/> panel, select <AutoText key="glidict::CDM.GUI.Formats"/>. Add the following template to the bottom of the <AutoText text="global"/> format features (this can be copied from <AutoText text="gs3-collect-theme.txt" type="italics"/>):</Text>
+<Format>
+&lt;xsl:template name=&quot;additionalHeaderContent&quot;&gt;<br/>
+<Tab n="1"/>&lt;xsl:variable name=&quot;httpCollection&quot;&gt;<br/>
+<Tab n="2"/>&lt;xsl:value-of select=&quot;/page/pageResponse/collection/metadataList/metadata[@name='httpPath']&quot;/&gt;<br/>
+<Tab n="1"/>&lt;/xsl:variable&gt;<br/>
+<Tab n="1"/>&lt;link href=&quot;{$httpCollection}/style/CollectionTheme/jquery-ui-1.10.2.custom.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br/>
+&lt;/xsl:template&gt;<br/>
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="customize-09">Click <AutoText key="glidict::CreatePane.Preview_Collection"/> to see the <AutoText text="backdrop"/> collection with the new, custom theme.</Text>
+</NumberedItem>
+</Content>
+</Tutorial>
+</MajorVersion>
 <Tutorial id="multimedia_collection_explore">
 <Title>
@@ -4718,209 +4928,222 @@
 </MajorVersion>
 <MajorVersion number="3">
-<Tutorial id="using_themes">
+<Tutorial id="home_page">
 <Title>
-<Text id="themes-1">Customization: Themes</Text>
+<Text id="hp-01">Customizing your home page</Text>
 </Title>
 <SampleFiles folder="custom"/>
-<Version initial="3.05" current="3.05"/>
+<Version initial="3.06" current="3.06"/>
 <Content>
 <Comment>
-<Text id="themes-2">This exercise looks at changing the appearance of your entire Greenstone Library using Themes created with jQuery ThemeRoller. First, we will look at how to use premade themes. Then, we will make a custom theme using ThemeRoller.</Text>
-</Comment>
-<Heading>
-<Text id="themes-0">Using Greenstone Visual Themes</Text>
-</Heading>
-<NumberedItem>
-<Text id="themes-3">Enter your Greenstone Library. ( Go to <Path>Start &rarr; All Programs &rarr; Greenstone-3.05 &rarr; Greenstone3 Server</Path> and click <AutoText text="Enter Library"/>.)</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-4">In order to make changes to the library's theme, you must be logged in as an administrator. Click <AutoText key="gs3::interface_default::login_b"/> in the top right-hand corner. The default login is:</Text>
-<Format>
-<AutoText key="gs3::interface_default::authen.username"/>: admin<br/>
-<AutoText key="gs3::interface_default::authen.password"/>: admin
-</Format>
-<Text id="themes-5">Click <AutoText key="gs3::interface_default::login_b"/>. It is advisable to change the default password, if you haven't already. To do this, click the <AutoText text="admin"/> button in the top right-hand corner, and select <AutoText key="gs3::interface_default::authen.account_settings"/>. Click <AutoText key="gs3::interface_default::authen.change_password"/>. Enter the <AutoText key="gs3::interface_default::authen.old_password"/> (admin); then enter a new password in the <AutoText key="gs3::interface_default::authen.new_password"/> and  <AutoText key="gs3::interface_default::authen.retype_password"/> text boxes. Click <AutoText key="gs3::interface_default::authen.submit"/>. The password will be changed, and you will be taken to the <AutoText key="gs3::interface_default::authen.authentication"/>, where you can view a list of the current users.</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-6">Go to <AutoText key="gs3::interface_default::pref_b"/>. Now that we are signed in as an administrator, we can see the <AutoText key="gs3::interface_default::pref.theme"/> option, where we can quickly change the theme of our collections. These themes were created using JQuery UIâs ThemeRoller (<Link>http://jqueryui.com/themeroller/</Link>).  The first four options (Greenstone Default and Greenstone Custom 1, 2 and 3) are included as part of the Greenstone 3 installation. The remaining themes are retrieved from the web via the jQuery UI API.</Text>
-<Text id="themes-7">Select <AutoText text="Theme: Greenstone Custom 2"/> from the drop-down menu, and click <AutoText key="gs3::interface_default::pref.set_prefs"/>. Now, all of the collections in your Greenstone library should have the Greenstone Custom 2 theme.</Text>
-<Text id="themes-8">Return to the library homepage (click <AutoText text="My Greenstone Library" type="italics"/> in the upper left-hand corner) and explore several of your collections. They should all display the new theme.</Text>
-</NumberedItem>
-<Heading>
-<Text id="themes-10">Creating a custom theme using ThemeRoller (advanced)</Text>
-</Heading>
-<NumberedItem>
-<Text id="themes-11">Go to the jQuery UI ThemeRoller webpage (<Link>http://jqueryui.com/themeroller/</Link>). The <AutoText text="Roll Your Own"/> menu of the <AutoText text="ThemeRoller"/> bar on the left can be used to design a custom theme. As changes are made in this menu, the corresponding items on the right reflect these changes. The most important sections for Greenstone customization are:</Text>
-<Format>
-<table>
-<tr style="font-weight:bold"><td>Section</td><td>HTML class</td><td>Greenstone 3 usage</td></tr>
-<tr><td>Header/Toolbar</td><td>ui-widget-header</td><td>This sets the appearance of the large, main banner and the footer</td></tr>
-<tr><td>Content</td><td>ui-widget-content</td><td>Sets the appearance for the main area of the page, where the content (e.g. a list of documents) is displayed</td></tr>
-<tr><td>Clickable: default state</td><td>ui-state-default</td><td>Sets the appearance for the small bar along the top, most buttons (Login, Help, Preferences, Test Search, Form Search, Advanced Search), and all unselected browse tabs</td></tr>
-<tr><td>Clickable: hover state</td><td>ui-state-hover</td><td>This sets the appearance for the Login, Help, and Preferences buttons and browse tabs when the mouse hovers over them</td></tr>
-<tr><td>Clickable: active state</td><td>ui-state-active</td><td>This sets the appearance of the selected browse tab</td></tr>
-</table>
-</Format>
-<Comment>
-<Text id="themes-12">ThemeRoller will not affect some aspects of you Greenstone library's appearance, e.g. the actual design layout, the background color, the font, the search button.</Text>
-</Comment>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-13">Change the Theme to the following values:</Text>
-<Format>
-<table style="text-align:center;border-collapse:collapse" border="1">
-<tr><td rowspan="6" width="180">Header/Toolbar</td><td width="120">Background color</td><td width="80">#a23336</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>50%</td></tr>
-<tr><td>Border</td><td>#000000</td></tr>
-<tr><td>Text</td><td>#000000</td></tr>
-<tr><td>Icon</td><td>#000000</td></tr>
-<tr><td rowspan="6">Content</td><td>Background color</td><td>#000000</td></tr>
-<tr><td rowspan="2">Texture</td><td>inset-soft</td></tr>
-<tr><td>25%</td></tr>
-<tr><td>Border</td><td>#000000</td></tr>
-<tr><td>Text</td><td>#c2bcbc</td></tr>
-<tr><td>Icon</td><td>#c2bcbc</td></tr>
-<tr><td rowspan="6">Clickable: default state</td><td>Background color</td><td>#7e7676</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>55%</td></tr>
-<tr><td>Border</td><td>#000000</td></tr>
-<tr><td>Text</td><td>#ffffff</td></tr>
-<tr><td>Icon</td><td>#ffffff</td></tr>
-<tr><td rowspan="6">Clickable: hover state</td><td>Background Color</td><td>#303030</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>75%</td></tr>
-<tr><td>Border</td><td>#000000</td></tr>
-<tr><td>Text</td><td>#ffffff</td></tr>
-<tr><td>Icon</td><td>#ffffff</td></tr>
-<tr><td rowspan="6">Clickable: active state</td><td>Background Color</td><td>#000000</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>65%</td></tr>
-<tr><td>Border</td><td>#000000</td></tr>
-<tr><td>Text</td><td>#ffffff</td></tr>
-<tr><td>Icon</td><td>#ffffff</td></tr>
-</table>
-</Format>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-14">Click the <AutoText text="Download theme"/> button. Ensure the Stable version if jQuery is selected. Under <AutoText text="Components"/> uncheck <AutoText text="Toggle All" type="italics"/>, which will uncheck all of the boxes. Under <AutoText text="UI Core"/> check <AutoText text="Core" type="italics"/>, and under <AutoText text="Widgets"/> check <AutoText text="Datepicker" type="italics"/>. At the bottom of the page, under <AutoText text="Theme"/>, <AutoText text="Custom Theme" type="italics"/> should be selected. For <AutoText text="Theme Folder Name:"/>, enter <AutoText text="TutorialTheme" type="italics"/>. Leave <AutoText text="CSS Scope"/> blank. Click <AutoText text="Download"/>. In the pop-up window, select <AutoText text="Save File"/> and click <AutoText text="OK"/> to download the zip file.</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-15">Go to the folder where the zip file was downloaded, and unzip the folder (on Windows, right-click, select <AutoText text="Extract All..."/> and click <AutoText text="Extract"/>).</Text>
-<Text id="themes-16">The extracted folder should be named <AutoText text="jquery-ui-1.10.2.custom" type="italics"/>, or something similar, and should contain three folders (css, development-bundle, js) and an html file (index.html). In the <AutoText text="css"/> folder, there is a folder called <AutoText text="TutorialTheme"/>. Copy this entire folder into <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr;  style &rarr; themes</Path>.</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-17">Go to <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr;  default &rarr;  transform &rarr;  pages</Path> and open <AutoText text="pref.xsl"/> in a text editor. Find the following section and add in the highlighted text, which can be copied from <AutoText text="gs3-theme.tweak.txt" type="italics"/>). Take note of the initial comma. </Text>
-<Format>
-&lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;<br/>
-	<Tab n="1"/>$(document).ready(function(){<br/>
-		<Tab n="2"/>$(&quot;#switcher&quot;).themeswitcher({<br/>
-			<Tab n="3"/>imgpath: &quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/images/&quot;,<br/>
-			<Tab n="3"/>additionalThemes: [<br/>
-				<Tab n="4"/>icon:&quot;theme_90_greenstone.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/main/jquery-ui-1.8.16.custom.css&quot;},<br/>
-				<Tab n="4"/>{title:&quot;Greenstone Custom 1&quot;, name:&quot;custom-theme1&quot;, icon:&quot;theme_90_start_menu.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/alt_theme_1/jquery-ui-1.8.16.custom.css&quot;},<br/>
-				<Tab n="4"/>{title:&quot;Greenstone Custom 2&quot;, name:&quot;custom-theme2&quot;, icon:&quot;theme_90_mint_choco.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/alt_theme_2/jquery-ui-1.8.16.custom.css&quot;},<br/>
-				<Tab n="4"/>{title:&quot;Greenstone Custom 3&quot;, name:&quot;custom-theme3&quot;, icon:&quot;theme_90_trontastic.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;<br/>/style/themes/alt_theme_3/jquery-ui-1.8.16.custom.css&quot;}<highlight>,     <br/>
-				<Tab n="4"/>{title:&quot;Tutorial Theme&quot;, name:&quot;TutorialTheme&quot;, icon:&quot;TutorialTheme.png&quot;, url:&quot;interfaces/&quot; + gs.xsltParams.interface_name + &quot;/style/themes/TutorialTheme/jquery-ui-1.10.2.custom.css&quot;}</highlight><br/>
-			<Tab n="3"/>]<br/>
-		<Tab n="2"/>});<br/>
-	<Tab n="1"/>});<br/>
-&lt;/xsl:text&gt;<br/>
-</Format>
-<Text id="themes-17a">Save and close <AutoText text="pref.xsl"/>.</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-18">Return to the Library homepage. If not still logged in, login again. Go to the <AutoText key="gs3::interface_default::pref_b"/> page and click on the drop-down menu for <AutoText key="gs3::interface_default::pref.theme"/>. (If the <AutoText key="gs3::interface_default::pref.theme"/> option has disappeared, ensure that you copied the highlighted section in its entirety into the correct place in <AutoText text="pref.xsl"/>, especially that you did not miss the initial comma.) The fifth item in the list should now be "Tutorial Theme". (It will not have a calendar icon like the other themes, because the image referenced in the above statement - TutorialTheme.png - does not exist. To create an icon to match the theme, see below.) Select Tutorial Theme, and click <AutoText key="gs3::interface_default::pref.set_prefs"/>. All of your Greenstone collections will be in this new, custom theme.</Text>
-</NumberedItem>
-<Comment>
-<Text id="themes-20">The <AutoText key="gs3::interface_default::pref.theme"/> drop-down menu in <AutoText key="gs3::interface_default::pref_b"/> includes an image for each theme, along with the theme title. If no image is available, only the title is displayed. If you would like to include an image for your custom theme similar to those visible for the other theme options, follow the instructions below. </Text>
-</Comment>
-<NumberedItem>
-<Text id="themes-21">Return to the folder extracted from the zip file downloaded from jQuery (<AutoText text="jquery-ui-1.10.2.custom"/> or something similar). Open <AutoText text="index.html" type="italics"/> in a web browser. Scroll down so that the Datepicker calendar is completely visible on your screen, and take a screen shot. (On Windows, this is done by pressing the print screen - <AutoText text="PrtScn"/> - button.) </Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-22">Open a picture editor (like Paint) and Paste. Select and crop the image around the calendar under Datepicker. Resize the image to 90px by 80 px. (In Paint, click Resize. Under Resize, choose Pixels. Unselect Maintain aspect ratio. Still under Resize - <em>not</em> the Skew section - change Horizontal to 90 and Vertical to 80 and click &lt;OK&gt;.) Save the image in <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr; style &rarr; images </Path> as TutorialTheme.png.</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="themes-23">Return to the <AutoText key="gs3::interface_default::pref_b"/> page, and the Tutorial Theme in the <AutoText key="gs3::interface_default::pref.theme"/> drop-down menu will now have a corresonding calendar icon.</Text>
-</NumberedItem>
-</Content></Tutorial>
-<Tutorial id="collection_themes">
-<Title>
-<Text id="customize-00">Collection-Specific Themes</Text>
-</Title>
-<SampleFiles folder="custom"/>
-<Prerequisite id="using_themes"/>
-<Version initial="3.05" current="3.05"/>
-<Content>
-<Comment>
-<Text id="customize-01">The <AutoText key="gs3::interface_default::pref.theme"/> menu on the <AutoText key="gs3::interface_default::pref_b"/> page sets the theme for the entire Greenstone library. This tutorial explains how to use themes on a collection level, by changing the theme of the <AutoText text="backdrop"/> collection.</Text>
-</Comment>
-<Heading>
-<Text id="customize-02">Creating a custom theme</Text>
-</Heading>
-<NumberedItem>
-<Text id="customize-03">Go to the jQuery UI ThemeRoller webpage (<Link>http://jqueryui.com/themeroller/</Link>). Change the Theme to the following values:</Text>
-<Format>
-<table style="text-align:center;border-collapse:collapse" border="1">
-<tr><td rowspan="6" width="180">Header/Toolbar</td><td width="120">Background color</td><td width="80">#141a38</td></tr>
-<tr><td rowspan="2">Texture</td><td>highlight_soft</td></tr>
-<tr><td>45%</td></tr>
-<tr><td>Border</td><td>#ffffff</td></tr>
-<tr><td>Text</td><td>#ffffff</td></tr>
-<tr><td>Icon</td><td>#ffffff</td></tr>
-<tr><td rowspan="6">Content</td><td>Background color</td><td>#ffffff</td></tr>
-<tr><td rowspan="2">Texture</td><td>flat</td></tr>
-<tr><td>75%</td></tr>
-<tr><td>Border</td><td>#ffffff</td></tr>
-<tr><td>Text</td><td>#222222</td></tr>
-<tr><td>Icon</td><td>#222222</td></tr>
-<tr><td rowspan="6">Clickable: default state</td><td>Background color</td><td>#e9c416</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>55%</td></tr>
-<tr><td>Border</td><td>#ffffff</td></tr>
-<tr><td>Text</td><td>#555555</td></tr>
-<tr><td>Icon</td><td>#888888</td></tr>
-<tr><td rowspan="6">Clickable: hover state</td><td>Background Color</td><td>#e9d47b</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>75%</td></tr>
-<tr><td>Border</td><td>#ffffff</td></tr>
-<tr><td>Text</td><td>#212121</td></tr>
-<tr><td>Icon</td><td>#454545</td></tr>
-<tr><td rowspan="6">Clickable: active state</td><td>Background Color</td><td>#ffffff</td></tr>
-<tr><td rowspan="2">Texture</td><td>glass</td></tr>
-<tr><td>65%</td></tr>
-<tr><td>Border</td><td>#ffffff</td></tr>
-<tr><td>Text</td><td>#212121</td></tr>
-<tr><td>Icon</td><td>#454545</td></tr>
-</table>
-</Format>
-</NumberedItem>
-<NumberedItem>
-<Text id="customize-04">Click the <AutoText text="Download theme"/> button. Ensure the Stable version of jQuery is selected. Under <AutoText text="Components"/> uncheck <AutoText text="Toggle All" type="italics"/>, which will uncheck all of the boxes. Under <AutoText text="UI Core"/> check <AutoText text="Core" type="italics"/>, and under <AutoText text="Widgets"/> check <AutoText text="Datepicker" type="italics"/>. At the bottom of the page, under <AutoText text="Theme"/>, <AutoText text="Custom Theme" type="italics"/> should be selected. For <AutoText text="Theme Folder Name:"/>, enter <AutoText text="CollectionTheme" type="italics"/>. Leave <AutoText text="CSS Scope"/> blank. Click <AutoText text="Download"/>. In the pop-up window, select <AutoText text="Save File"/> and click <AutoText text="OK"/> to download the zip file.</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="customize-05">Go to the folder where the zip file was downloaded, and unzip the folder (on Windows, right-click, select <AutoText text="Extract All..."/> and click <AutoText text="Extract"/>).</Text>
-<Text id="customie-06">The extracted folder should be named <AutoText text="jquery-ui-1.10.2.custom" type="italics"/>, or something similar, and should contain three folders (css, development-bundle, js) and an html file (index.html). In the <AutoText text="css"/> folder, there is a folder called <AutoText text="CollectionTheme"/>. Copy this entire folder into <Path>Greenstone3 &rarr; web &rarr; sites &rarr; localsite &rarr; collect &rarr; backdrop &rarr; style</Path>.</Text>
-</NumberedItem>
-<Heading>
-<Text id="customize-06">Setting a collection's theme</Text>
-</Heading>
-<NumberedItem>
-<Text id="customize-07">Open the Greenstone Librarian Interface (from the Windows <AutoText text="Start" type="italics"/> menu) and open the <AutoText text="backdrop"/> collection (use the <AutoText key="glidict::Menu.File"/> menu).</Text>
-</NumberedItem>
-<NumberedItem>
-<Text id="customize-08">In the <AutoText key="glidict::GUI.Format"/> panel, select <AutoText key="glidict::CDM.GUI.Formats"/>. Add the following template to the bottom of the <AutoText text="global"/> format features (this can be copied from <AutoText text="gs3-collect-theme.txt" type="italics"/>):</Text>
-<Format>
-&lt;xsl:template name=&quot;additionalHeaderContent&quot;&gt;<br/>
-<Tab n="1"/>&lt;xsl:variable name=&quot;httpCollection&quot;&gt;<br/>
-<Tab n="2"/>&lt;xsl:value-of select=&quot;/page/pageResponse/collection/metadataList/metadata[@name='httpPath']&quot;/&gt;<br/>
-<Tab n="1"/>&lt;/xsl:variable&gt;<br/>
-<Tab n="1"/>&lt;link href=&quot;{$httpCollection}/style/CollectionTheme/jquery-ui-1.10.2.custom.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br/>
-&lt;/xsl:template&gt;<br/>
-</Format>
-</NumberedItem>
-<NumberedItem>
-<Text id="customize-09">Click <AutoText key="glidict::CreatePane.Preview_Collection"/> to see the <AutoText text="backdrop"/> collection with the new, custom theme.</Text>
+<Text id="hp-c">This tutorial demonstrates how to change the home page of your Greenstone3 installation, including how to use XSL to add certain features (like an up-to-date list of collections and the cross-collection search box). </Text>
+</Comment>
+<NumberedItem>
+<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>
+</NumberedItem>
+<Heading>
+<Text id="hp-03">Changing the library's home page</Text>
+</Heading>
+<NumberedItem>
+<Text id="hp-03">By default, the library's home page is dictated by the <i>home.xsl</i> file in <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr; transform &rarr; pages</Path>. We want to be able to easily revert back to the default home page, so we won't make changes to this file directly. Instead, we're going to tell the interface to use a new, different file to create the home page.</Text>
+<Text id="hp-04">To do this, open the <b>interfaceConfig.xml</b> file found in <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default</Path> in a text editor, and change:</Text>
+<Format>&lt;subaction name="home" xslt="pages/home.xsl"/&gt;</Format>
+<Text id="hp-05">To this:</Text>
+<Format>&lt;subaction name="home" xslt="pages/home-tutorial.xsl"/&gt;</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-05">Restart the server by clicking the <b>Restart Library</b> button in the small Greenstone Server window. (Any time you make changes to an <i>interfaceConfig.xml</i> file, you must restart the server for the changes to take affect.) When the server restarts, look at your home page again. Because <i>home-tutorial.xsl</i> does not yet exist, you should just see unformatted text. </Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-06">Copy the folder <i>tutorialbliss</i> from <Path>sample_files &rarr; custom</Path> to <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr; style &rarr; themes</Path>. This is a free CSS template that our new home page will use.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-07">Copy <i>home-tutorial.xsl</i> from <Path>sample_files &rarr; custom</Path> to <Path>Greenstone3 &rarr; web &rarr; interfaces &rarr; default &rarr; transform &rarr; pages</Path>. It contains the following text:</Text>
+<Format>
+&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br/>
+&lt;xsl:stylesheet version="1.0"<br/>
+	<Tab n="1"/>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br/>
+	<Tab n="1"/>xmlns:java="http://xml.apache.org/xslt/java"<br/>
+	<Tab n="1"/>xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"<br/>
+	<Tab n="1"/>xmlns:gslib="http://www.greenstone.org/skinning"<br/>
+	<Tab n="1"/>extension-element-prefixes="java util"<br/>
+	<Tab n="1"/>exclude-result-prefixes="java util"&gt;<br/><br/>
+	
+	<Tab n="1"/>&lt;xsl:template match="/"&gt;<br/>
+	<Tab n="1"/>&lt;html&gt;<br/>
+		<Tab n="2"/>&lt;head&gt;<br/>
+			<Tab n="3"/>&lt;meta name="keywords" content="" /&gt;<br/>
+			<Tab n="3"/>&lt;meta name="description" content="" /&gt;<br/>
+			<Tab n="3"/>&lt;title&gt;My Greenstone Library&lt;/title&gt;<br/><br/>
+		<Tab n="2"/>...<br/><br/>
+			<Tab n="3"/>&lt;div id="footer"&gt;<br/>
+				<Tab n="4"/>&lt;p&gt;2013 Sitename.com. | Photo by &lt;a href="http://www.leagoon.com/">Leagoon&lt;/a&gt; | Design by &lt;a href="http://www.freecsstemplates.org/" rel="nofollow"&gt;FreeCSSTemplates.org&lt;/a&gt;.&lt;/p&gt;<br/>
+			<Tab n="3"/>&lt;/div&gt;<br/>
+			<Tab n="3"/>&lt;!-- end #footer --&gt;<br/>
+		<Tab n="2"/>&lt;/body&gt;<br/>
+	<Tab n="1"/>&lt;/html&gt;<br/>
+	<Tab n="1"/>&lt;/xsl:template&gt;<br/><br/>
+		
+&lt;/xsl:stylesheet&gt;<br/>
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-07">Refresh you library home page. You should now have a nice, new home page. Basically, the entire contents of the file <i>index.html</i> in <Path>sample_files &rarr; custom &rarr; tutorialbliss</Path> were copied (after some modifications) in between the <i>&lt;xsl:template match="/"&gt;</i> and <i>&lt;/xsl:template&gt;</i> tags of <i>home-tutorial.xsl</i>. The following modifications were made:<br /><br />
+Changed the text to be Greenstone-related<br />
+Removed escape characters (&amp;nbsp;, &amp;copy;, etc.) that are not currently supported in GS3<br />
+Ensured every tag had a closing tag (or was self-closing)<br />
+Corrected the paths for the CSS stylesheet and image<br />
+Added in links to certain Greenstone pages (like the <i>Login</i>, <i>Help</i>, and <i>Preferences</i> pages).<br /></Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-09">Adding links to specific pages is relatively straightforward. If you want to link to the backdrop collection, for instance, you could simply add in <Format>&lt;a href=&quot;library/collection/backdrop&quot;&gt;backdrop&lt;/a&gt;</Format>. However, if you have many collections, this is time consuming, and the home page would have to be modified every time you added or removed a collection. Instead, we can use XSL to insert appropriate HTML into our page for each collection in our library. First, we will <b>define</b> a template that does this, and then we will <b>call</b> this template in the right spot in our HTML.</Text>
+</NumberedItem>
+<Heading>
+<Text id="hp-08">Adding list of collections</Text>
+</Heading>
+<NumberedItem>
+<Text id="hp-10">Open <i>home-tutorial.xsl</i> in a text editor. Copy the the highlighted text into the area indicated (this, and all other text excerpts can be copied from <i>gs3-hompage.txt</i> in <Path>sample_files &rarr; custom</Path>):</Text>
+<Format>
+			<Tab n="3"/>&lt;!-- end #footer --&gt;<br />
+		<Tab n="2"/>&lt;/body&gt;<br />
+	<Tab n="1"/>&lt;/html&gt;<br />
+	<Tab n="1"/>&lt;/xsl:template&gt;<br /><br />
+
+<highlight>&lt;xsl:template name="collectionsList"&gt;<br />
+	<Tab n="1"/>&lt;xsl:for-each select="./page/pageResponse/collectionList/collection"&gt;<br />
+	<Tab n="1"/>&lt;xsl:variable name="collectionName" select="@name"/&gt;<br />
+		<Tab n="2"/>&lt;li&gt;<br />
+		<Tab n="2"/>&lt;a href="library/collection/{$collectionName}/page/about"&gt;<br />
+		<Tab n="2"/>&lt;xsl:value-of select="displayItem[@name='name']"/&gt;<br />
+		<Tab n="2"/>&lt;/a&gt;<br />
+		<Tab n="2"/>&lt;/li&gt;<br />
+	<Tab n="1"/>&lt;/xsl:for-each&gt;<br />
+&lt;/xsl:template&gt;</highlight><br /><br />
+
+&lt;/xsl:stylesheet&gt;	<br />
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-11">Then, find the section below, and change this:</Text>
+<Format>
+	&lt;h2&gt;Select a Collection:&lt;/h2&gt;<br />
+	&lt;ul&gt;<br />
+		<Tab n="1"/><highlight>&lt;li&gt;&lt;a href="#">Collection 1&lt;/a&gt;&lt;/li&gt;<br />
+		<Tab n="1"/>&lt;li&gt;&lt;a href="#"&gt;Collection 2&lt;/a&gt;&lt;/li&gt;<br />
+		<Tab n="1"/>&lt;li&gt;&lt;a href="#"&gt;Collection 3&lt;/a&gt;&lt;/li&gt;<br />
+		<Tab n="1"/>&lt;li&gt;&lt;a href="#"&gt;Collection 4&lt;/a&gt;&lt;/li&gt;<br />
+		<Tab n="1"/>&lt;li&gt;&lt;a href="#"&gt;Collection 5&lt;/a&gt;&lt;/li&gt;<br /></highlight>
+	&lt;/ul&gt;<br />
+</Format>
+<Text id="hp-12">To this:</Text>
+<Format>
+	&lt;h2&gt;Select a Collection:&lt;/h2&gt;<br />
+	&lt;ul&gt;<br />
+		<Tab n="1"/><highlight>&lt;xsl:call-template name=&quot;collectionsList&quot;/&gt;</highlight><br />
+	&lt;/ul&gt;<br />
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-13">Save this file, and refresh your library homepage. The right side bar should now contain a list of all of your collections. Click on one to make sure the link work correctly, and then return to the home page.</Text>
+</NumberedItem>
+<Heading>
+<Text id="hp-14">Adding a cross-collection search box</Text>
+</Heading>
+<NumberedItem>
+<Text id="hp-15">The current search box does not actually work. We are going to replace this with a search box that will search all collections in our library.</Text>
+<Text id="hp-16">First, add the following template before the final <i>&lt;/xsl:stylesheet&gt;</i>:</Text>
+<Format>
+	&lt;xsl:template name="searchBox"&gt;<br />
+		<Tab n="1"/>&lt;xsl:for-each select="//page/pageResponse"&gt;<br />
+		<Tab n="1"/>&lt;div id="quickSearch"&gt;<br />
+			<Tab n="2"/>&lt;gslib:crossCollectionQuickSearchForm/&gt;<br />
+		<Tab n="1"/>&lt;/div&gt;<br />
+		<Tab n="1"/>&lt;/xsl:for-each&gt;<br />
+	&lt;/xsl:template&gt;<br />
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-17">Then, find the following section:</Text>
+<Format>
+&lt;form method="get" action="#"&gt;<br />
+	<Tab n="1"/>&lt;div&gt;<br />
+		<Tab n="2"/>&lt;input type="text" name="s" id="search-text" value="" /&gt;<br />
+		<Tab n="2"/>&lt;input type="submit" id="search-submit" value="" /&gt;<br />
+	<Tab n="1"/>&lt;/div><br />
+&lt;/form&gt;<br />
+</Format>
+<Text id="hp-18">And replace it with this:</Text>
+<Format>
+&lt;xsl:call-template name="searchBox"/&gt;<br/>
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-19">Save <i>home-tutorial.xsl</i>, and refresh your home page. You now have a working cross-collection search box. Search for "economy" to see that it works, and then return to the home page.</Text>
+</NumberedItem>
+<Heading>
+<Text id="hp-20">Login Links</Text>
+</Heading>
+<NumberedItem>
+<Text id="hp-21">Under the heading "Library Links" in the left sidebar of your home page, you will notice that there are several links. However, we don't want all of these links to appear all of the time. "Login" should only appear when the user is <i>not</i> logged in, while "Account Settings", "Register as a new user", "Administration", and "Logout" should only appear when a user <i>is</i> logged in.</Text>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-22">We will define and call a template that will display the correct links depending on whether a user is logged in or not.</Text>
+<Text id="hp-23">Add the following template before the final <i>&lt;/xsl:stylesheet&gt;</i>:</Text>
+<Format>
+	<Tab n="1"/>&lt;xsl:template name="loginButton"&gt;<br />
+			<Tab n="2"/>&lt;xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/&gt;<br />
+				<Tab n="3"/>&lt;xsl:choose&gt;<br />
+					<Tab n="4"/>&lt;xsl:when test="$username"&gt;<br />
+						<Tab n="5"/>&lt;li&gt;&lt;a&gt;<br />
+							<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 />
+						<Tab n="5"/>&lt;/a&gt;&lt;/li&gt;<br />
+						<Tab n="5"/>&lt;li&gt;&lt;a href="library/admin/Register"&gt;Register a new user&lt;/a&gt;&lt;/li&gt;<br />
+								<Tab n="6"/>&lt;li&gt;&lt;a href="library/admin/ListUsers"&gt;Administration&lt;/a&gt;&lt;/li&gt;<br />
+						<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 />
+					<Tab n="4"/>&lt;/xsl:when&gt;<br />
+					<Tab n="4"/>&lt;xsl:otherwise&gt;<br />
+						<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 />
+							<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 />
+
+						<Tab n="5"/>&lt;/a&gt;&lt;/li&gt;<br />
+					<Tab n="4"/>&lt;/xsl:otherwise&gt;<br />
+&lt;/xsl:choose&gt;<br />					
+&lt;/xsl:template&gt;<br />
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-24">Then, find the following section:</Text>
+<Format>
+&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 />
+&lt;li&gt;&lt;a href="library/admin/AccountSettings?s1.username="&gt;Account Settings&lt;/a&gt;&lt;/li&gt;<br />
+&lt;li&gt;&lt;a href="library/admin/Register"&gt;Register a new user&lt;/a&gt;&lt;/li&gt;<br />
+&lt;li&gt;&lt;a href="library/admin/ListUsers"&gt;Administration&lt;/a&gt;&lt;/li&gt;<br />
+&lt;li&gt;&lt;a href="library?logout="&gt;Logout&lt;/a&gt;&lt;/li&gt;<br />
+</Format>
+<Text id="hp-25">And replace it with this:</Text>
+<Format>
+&lt;xsl:call-template name="loginButton"/&gt;
+</Format>
+</NumberedItem>
+<NumberedItem>
+<Text id="hp-26">
+Save <i>home-tutorial.xsl</i>, and refresh your home page. If you are logged in, click <b>"Logout"</b> to view the homepage in logged out mode. If you are not logged in, click "Login" and enter your username and password to view the homepage in logged in mode. </Text>
+</NumberedItem>
+<Heading>
+<Text id="hp-27">Adding your library's site name</Text>
+</Heading>
+<NumberedItem>
+<Text id="hp-28">In <i>home-tutorial.xsl</i>, replace the two occurrences of <b>"A New Home Page"</b> with <Format>&lt;xsl:call-template name=&quot;siteName&quot;/&gt;</Format>.</Text>
+<Text id="hp-29">Save <i>home-tutorial.xsl</i>, and refresh your home page.  The name of the browser window and the page's main header should now be "My Greenstone Library". By using this template, you can ensure your library's name is consistent across your entire library. If you decide to change your library name, you only need to make the change in one place. The following section demonstrates how to do this.</Text>
+</NumberedItem>
+<Heading>
+<Text id="hp-30">Changing your library's site name</Text>
+</Heading>
+<NumberedItem>
+<Text id="hp-31">To change the name of your library, open the <i>siteConfig.xml</i> file located in <Path>Greenstone3 &rarr; web &rarr; sites &rarr; localsite</Path> in a text editor. Near the end of the file, find the line:</Text>
+<Format>&lt;metadata name="siteName" lang="en"&gt;My Greenstone Library&lt;/metadata&gt;</Format>
+<Text id="hp-32">And replace "My Greenstone Library" with another name, like "The Best Digital Library". Then save and close the file.</Text>
+</NumberedItem>
+<NumberedItem>
+<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>
 </NumberedItem>
 </Content>
