source: documented-example-collections/trunk/style-e/etc/collect.bak@ 18738

Last change on this file since 18738 was 18738, checked in by oranfry, 15 years ago

the rest of the documented example collections

  • Property svn:executable set to *
File size: 3.8 KB
Line 
1#documented collect.cfg file for Greenstone CSS/style demo collection
2
3creator [email protected]
4public true
5
6buildtype mg
7
8indexes document:text
9defaultindex document:text
10
11# import files ending with any of these words, and remove '/*' and '#'
12# from start of titles
13# plugin TEXTPlug -title_sub (/\\*|#) -process_exp (txt|css|cfg|dm)$
14# following 3 plugins are required for building collections from archives
15plugin GAPlug
16plugin MetadataXMLPlug
17plugin HTMLPlug -description_tags
18plugin ArcPlug
19plugin RecPlug
20
21classify AZList -metadata Title -buttonname Title
22
23# for the 1st classifier (vertical lists)
24format CL1VList "<td>[link][icon][/link]</td><td>[Title]</td>"
25
26#### format statements for displaying documents
27format DocumentHeading "<h2>[Title]</h2>"
28format DocumentButtons ""
29
30format DateList "<td>[link][icon][/link]</td>
31<td>[highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]</td>
32<td>[ex.Date]</td>"
33
34format HList "[link][highlight][ex.Title][/highlight][/link]"
35
36format VList "<td valign=\"top\">[link][icon][/link]</td>
37<td valign=\"top\">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
38<td valign=\"top\">[highlight]
39{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}
40[/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>"
41
42format DocumentText "[Text]"
43
44collectionmeta iconcollectionsmall [l=en] "_httpprefix_/collect/style-e/images/en/style-e.gif"
45
46# -- English strings ---------------
47
48collectionmeta collectionname [l=en] "Cascading Style Sheets<br/> Demo collection"
49collectionmeta .document:text [l=en] "text"
50
51# -- French strings ---------------
52
53collectionmeta collectionname [l=fr] "Démo de feuilles de styles en cascade (CSS)"
54
55# -- Spanish strings --------------
56
57collectionmeta collectionname [l=es] "Colección de muestra CSS"
58
59# -- English text
60
61collectionmeta collectionextra [l=en] "This collection demonstrates Greenstone\'s use of Cascading Style Sheets (CSS)
62for visual formatting in web browsers. (Greenstone uses CSS instead of HTML
63tables since version 2.63.) On every page, you can change the
64style-sheet in effect, to modify that page\'s appearance.
65</p>
66<p>This collection contains the same material as the original Greenstone demo collection.</p>
67<p>
68An <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.
69</p>
70<p>The documents in the collection are the configuration file, the extra.dm file and all the stylesheets.
71</p>
72<p>If you want to download any of these stylesheets for your own collections,
73here are links to them:
74<ul>
75<li><a href=\'_httpimg_/style.css\'>Default Greenstone Style</a></li>
76<li><a href=\'_httpcollection_/styles/style-blue.css\'>‘Ocean Blue’ theme</a></li>
77<li><a href=\'_httpcollection_/styles/style-red.css\'>‘Fire Red’ theme</a></li>
78<li><a href=\'_httpimg_/style-print.css\'>Printer</a></li>
79</ul>
80</p>
81<p>
82<b>Using a downloaded stylesheet</b>
83<ul>
84<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>
85<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/>
86<small><tt>
87<br/>
88package Style<br/>
89<br/>
90\_cssheader\_ {<br/>
91&lt;link rel=\'stylesheet\' href=\'\_httpcimages\_/style-red.css\'<br/>
92&nbsp;&nbsp;type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'&gt;<br/>
93}<br/>
94</tt></small>
95</li>
96</ul>
97</p>
98"
99
Note: See TracBrowser for help on using the repository browser.