1 | <collectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
2 | ><metadataList
|
---|
3 | ><metadata name="creator"
|
---|
4 | >[email protected]</metadata
|
---|
5 | ><metadata name="public"
|
---|
6 | >true</metadata
|
---|
7 | ></metadataList
|
---|
8 | ><displayItemList
|
---|
9 | ><displayItem name="smallicon" lang="en"
|
---|
10 | >en/style-e.gif</displayItem
|
---|
11 | ><displayItem name="description" lang="en"
|
---|
12 | >This collection demonstrates Greenstone's use of Cascading Style Sheets (CSS) for visual formatting in web browsers. (Greenstone uses CSS instead of HTML tables since version 2.63.) On every page, you can change the style-sheet in effect, to modify that page's appearance. </p> <p> An <a href='_httpcollection_/macros/extra.dm'>extra.dm</a> macro file is used by the collection to provide the stylesheet switching. This redefines a few macros from the <i>Style</i> package: <b>\_cssheader\_</b>, to link to multiple stylesheets; <b>\_optnavigationbar\_</b>, to display the links to click; and <b>\_pagescriptextra\_</b>, to facilitate the switching when a link is clicked. </p> <p>The documents in the collection are the configuration file, the extra.dm file and all the stylesheets. </p> <p>If you want to download any of these stylesheets for your own collections, here are links to them: <ul> <li><a href='_httpimg_/style.css'>Default Greenstone Style</a></li> <li><a href='_httpcollection_/styles/style-blue.css'>âOcean Blueâ theme</a></li> <li><a href='_httpcollection_/styles/style-red.css'>âFire Redâ theme</a></li> <li><a href='_httpimg_/style-print.css'>Printer</a></li> </ul> </p> <p> <b>Using a downloaded stylesheet</b> <ul> <li>To use a stylesheet as the default, place it in greenstone/images and rename it to style.css. This will affect all collections.</li> <li>To use a stylesheet for a particular collection, place it in the collection's images directory, add an extra.dm file to the collection's macros directory, and add a macro like the following (this uses style-red.css as the example):<br/> <small><tt> <br/> package Style<br/> <br/> \_cssheader\_ {<br/> &lt;link rel='stylesheet' href='\_httpcimages\_/style-red.css'<br/> &nbsp;&nbsp;type='text/css' title='Fire Red' charset='UTF-8'&gt;<br/> }<br/> </tt></small> </li> </ul> </p> </displayItem
|
---|
13 | ><displayItem name="name" lang="en"
|
---|
14 | >Cascading Style Sheets<br/> Demo collection</displayItem
|
---|
15 | ><displayItem name="name" lang="es"
|
---|
16 | >Colección de muestra CSS</displayItem
|
---|
17 | ><displayItem name="name" lang="fr"
|
---|
18 | >Démo de feuilles de styles en cascade (CSS)</displayItem
|
---|
19 | ></displayItemList
|
---|
20 | ><search
|
---|
21 | ><index name="document:text"
|
---|
22 | ><displayItem name="name" lang="en"
|
---|
23 | >text</displayItem
|
---|
24 | ></index
|
---|
25 | ><format
|
---|
26 | ><gsf:template match="documentNode"
|
---|
27 | ><td valign="top"><gsf:link type='document'><gsf:icon type='document'/></gsf:link></td> <td valign="top"><gsf:metadata name='srclink' /><gsf:choose-metadata><gsf:metadata name='thumbicon' /><gsf:metadata name='srcicon' /></gsf:choose-metadata><gsf:metadata name='/srclink' /></td> <td valign="top"> <gsf:choose-metadata><gsf:metadata name='dls.Title' /><gsf:metadata name='dc.Title' /><gsf:metadata name='Title' /><gsf:default>Untitled</gsf:default></gsf:choose-metadata> <gsf:switch><gsf:metadata name='Source' /><gsf:when test='exists' ><br /><i>(<gsf:metadata name='Source' />)</i></gsf:when></gsf:switch></td></gsf:template
|
---|
28 | ></format
|
---|
29 | ></search
|
---|
30 | ><browse
|
---|
31 | ><format
|
---|
32 | ><gsf:template match="documentNode"
|
---|
33 | ><td valign="top"><gsf:link type='document'><gsf:icon type='document'/></gsf:link></td> <td valign="top"><gsf:metadata name='srclink' /><gsf:choose-metadata><gsf:metadata name='thumbicon' /><gsf:metadata name='srcicon' /></gsf:choose-metadata><gsf:metadata name='/srclink' /></td> <td valign="top"> <gsf:choose-metadata><gsf:metadata name='dls.Title' /><gsf:metadata name='dc.Title' /><gsf:metadata name='Title' /><gsf:default>Untitled</gsf:default></gsf:choose-metadata> <gsf:switch><gsf:metadata name='Source' /><gsf:when test='exists' ><br /><i>(<gsf:metadata name='Source' />)</i></gsf:when></gsf:switch></td></gsf:template
|
---|
34 | ><gsf:template match="classifierNode"
|
---|
35 | ><td valign="top"><gsf:link type='classifier'><gsf:icon type='classifier'/></gsf:link></td> <td valign="top"><gsf:metadata name='srclink' /><gsf:choose-metadata><gsf:metadata name='thumbicon' /><gsf:metadata name='srcicon' /></gsf:choose-metadata><gsf:metadata name='/srclink' /></td> <td valign="top"> <gsf:choose-metadata><gsf:metadata name='dls.Title' /><gsf:metadata name='dc.Title' /><gsf:metadata name='Title' /><gsf:default>Untitled</gsf:default></gsf:choose-metadata> <gsf:switch><gsf:metadata name='Source' /><gsf:when test='exists' ><br /><i>(<gsf:metadata name='Source' />)</i></gsf:when></gsf:switch></td></gsf:template
|
---|
36 | ><gsf:template match="classifierNode" mode="horizontal"
|
---|
37 | ><gsf:link type='horizontal'><gsf:metadata name='Title' /></gsf:link></gsf:template
|
---|
38 | ></format
|
---|
39 | ><classifier name="CL1"
|
---|
40 | ><format
|
---|
41 | ><gsf:template match="documentNode"
|
---|
42 | ><td><gsf:link type='document'><gsf:icon type='document'/></gsf:link></td><td><gsf:metadata name='Title' /></td></gsf:template
|
---|
43 | ><gsf:template match="classifierNode"
|
---|
44 | ><td><gsf:link type='classifier'><gsf:icon type='classifier'/></gsf:link></td><td><gsf:metadata name='Title' /></td></gsf:template
|
---|
45 | ></format
|
---|
46 | ></classifier
|
---|
47 | ></browse
|
---|
48 | ><replaceListRef id="gs2-standard"
|
---|
49 | /></collectionConfig
|
---|
50 | >
|
---|