root/documentation/trunk/tutorial_sample_files/custom/home-tutorial.xsl @ 28332

Revision 28332, 5.6 KB (checked in by jlwhisler, 7 years ago)

Updated Homepage tutorial files to use library_name and interface_name variable instead of hard-coding library/default. Added an icon for the page. Corrected the AddUser? url.

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4    xmlns:java="http://xml.apache.org/xslt/java"
5    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6    xmlns:gslib="http://www.greenstone.org/skinning"
7    extension-element-prefixes="java util"
8    exclude-result-prefixes="java util">
9   
10<xsl:template match="/">
11<html>
12<head>
13<meta name="keywords" content="" />
14<meta name="description" content="" />
15<title>A New Home Page</title>
16<link href="interfaces/{$interface_name}/style/themes/tutorialbliss/style.css" rel="stylesheet" type="text/css" media="screen" />
17<link rel="icon" href="interfaces/{$interface_name}/style/themes/tutorialbliss/images/icon.jpg" type="image/jpg"/>
18<!--
19Design by Free CSS Templates
20http://www.freecsstemplates.org
21Released for free under a Creative Commons Attribution 2.5 License
22
23Name       : Heavenly Bliss 
24Description: A two-column, fixed-width design with dark color scheme.
25Version    : 1.0
26Released   : 20130517
27
28-->
29</head>
30<body>
31<div id="banner-wrapper">
32    <div id="banner"><img src="interfaces/{$interface_name}/style/themes/tutorialbliss/images/ngunguru.jpg" width="1200" height="300" alt="" /></div>
33</div>
34<div id="header-wrapper">
35    <div id="header">
36        <div id="logo">
37            <h1><<a href="{$library_name}">A New Home Page</a></h1>
38            <p>A <a href="http://www.greenstone.org/">Greenstone3</a> Digital Library</p>
39        </div>
40    </div>
41</div>
42<div id="wrapper"> 
43    <!-- end #header -->
44    <div id="page">
45        <div id="page-bgtop">
46            <div id="page-bgbtm">
47                <div id="sidebar">
48                    <ul>
49                        <li>
50                            <h2><a href="?a=q&amp;rt=d&amp;s=TextQuery">Cross-Collection Search:</a></h2>
51                            <div id="search" > 
52                                <form method="get" action="#">
53                                    <div>
54                                        <input type="text" name="s" id="search-text" value="" />
55                                        <input type="submit" id="search-submit" value="" />
56                                    </div>
57                                </form>
58                        </div>
59                            <div style="clear: both;"></div>
60                        </li>
61                        <li>
62                            <h2>Library Links</h2>
63                            <ul>
64                                <li><a href="?a=p&amp;sa=login&amp;redirectURL={$library_name}%3Fa=p%26sa=home">Login</a></li>
65                                <li><a href="{$library_name}/admin/AccountSettings?s1.username=">Account Settings</a></li>
66                                <li><a href="{$library_name}/admin/AddUser">Register a new user</a></li>
67                                <li><a href="{$library_name}/admin/ListUsers">Administration</a></li>
68                                <li><a href="{$library_name}?logout=">Logout</a></li>
69                                <li><a href="{$library_name}/collection//page/help">Help</a></li>
70                                <li><a href="{$library_name}/collection//page/pref">Preferences</a></li>
71                            </ul>
72                        </li>
73                        <li>
74                            <h2>External Links</h2>
75                            <ul>
76                                <li><a href="http://www.greenstone.org">Greenstone</a></li>
77                                <li><a href="http://wiki.greenstone.org">Greenstone Wiki</a></li>
78                            </ul>
79                        </li>
80                    </ul>
81                </div>
82                <!-- end #sidebar -->
83                <div id="content">
84                    <div class="post">
85                        <h2 class="title"><a href="#">Welcome to your new home page!</a></h2>
86                        <div class="entry">
87                            <p>A new home page can be created for your Greenstone3 digital library by modifying or replacing the <span style="font-family:courier;">home.xsl</span> file found in the <i>Greenstone3/web/interfaces/default/transform/pages</i> folder.</p>
88                            <p>For this homepage, we first downloaded a free CSS template from <a href="http://www.freecsstemplates.org/previews/heavenlybliss/" rel="nofollow">FreeCSSTemplates.org</a>, released under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attributions 2.5</a> license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact.</p>
89                            <p>We made a few modifications to the HTML of the <span style="font-family:courier;">index.html</span> page-like removing a navigation bar at the top, changing the main photo, and removing or replacing parts of the text, as well as removing some escape characters (e.g. <i>&amp;nbsp;</i>, <i>&amp;copy;</i>), before including it in this tutorial.</p>
90                            <p>In the tutorial, you create your own <span style="font-family:courier;">home.xsl</span>, and <b>define</b> and <b>call</b> some XSL templates that make it possible to do many things, like include an up-to-date list of collections in your library, have a cross-collection search box, and have links that appear/disappear when you login.</p>
91                            <p>If you want to completely change the layout of your entire library, you probably want to define your very own interface. You can read more about interfaces in the <a href="http://www.greenstone.org/docs/greenstone3/manual.pdf">Greenstone3 manual</a>. Tutorial coming soon!</p>
92                        </div>
93                    </div>
94                </div>
95                <!-- end #content -->
96               
97                <div id="sidebar2">
98                    <ul>
99                        <li>
100                            <h2>Select a Collection:</h2>
101                            <ul>
102                                <li><a href="#">Collection 1</a></li>
103                                <li><a href="#">Collection 2</a></li>
104                                <li><a href="#">Collection 3</a></li>
105                                <li><a href="#">Collection 4</a></li>
106                                <li><a href="#">Collection 5</a></li>
107                            </ul>
108                        </li>                   
109                    </ul>
110                </div>
111                <div style="clear: both;"></div>
112            </div>
113        </div>
114    </div>
115    <!-- end #page -->
116</div>
117<div id="footer">
118    <p> 2013 Sitename.com. | Photo by <a href="http://www.leagoon.com/">Leagoon</a> | Design by <a href="http://www.freecsstemplates.org/" rel="nofollow">FreeCSSTemplates.org</a>.</p>
119</div>
120<!-- end #footer -->
121</body>
122</html>
123</xsl:template>
124
125   
126</xsl:stylesheet>
Note: See TracBrowser for help on using the browser.