source: documented-example-collections/trunk/style-e/etc/collect.cfg@ 18807

Last change on this file since 18807 was 18807, checked in by kjdon, 15 years ago

removed beta lines and collectionicon lines from collect.cfg files

  • Property svn:executable set to *
File size: 3.7 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
44
45# -- English strings ---------------
46
47collectionmeta collectionname [l=en] "Cascading Style Sheets<br/> Demo collection"
48collectionmeta .document:text [l=en] "text"
49
50# -- French strings ---------------
51
52collectionmeta collectionname [l=fr] "Démo de feuilles de styles en cascade (CSS)"
53
54# -- Spanish strings --------------
55
56collectionmeta collectionname [l=es] "Colección de muestra CSS"
57
58# -- English text
59
60collectionmeta collectionextra [l=en] "This collection demonstrates Greenstone\'s use of Cascading Style Sheets (CSS)
61for visual formatting in web browsers. (Greenstone uses CSS instead of HTML
62tables since version 2.63.) On every page, you can change the
63style-sheet in effect, to modify that page\'s appearance.
64</p>
65<p>This collection contains the same material as the original Greenstone demo collection.</p>
66<p>
67An <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.
68</p>
69<p>The documents in the collection are the configuration file, the extra.dm file and all the stylesheets.
70</p>
71<p>If you want to download any of these stylesheets for your own collections,
72here are links to them:
73<ul>
74<li><a href=\'_httpimg_/style.css\'>Default Greenstone Style</a></li>
75<li><a href=\'_httpcollection_/styles/style-blue.css\'>‘Ocean Blue’ theme</a></li>
76<li><a href=\'_httpcollection_/styles/style-red.css\'>‘Fire Red’ theme</a></li>
77<li><a href=\'_httpimg_/style-print.css\'>Printer</a></li>
78</ul>
79</p>
80<p>
81<b>Using a downloaded stylesheet</b>
82<ul>
83<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>
84<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/>
85<small><tt>
86<br/>
87package Style<br/>
88<br/>
89\_cssheader\_ {<br/>
90&lt;link rel=\'stylesheet\' href=\'\_httpcimages\_/style-red.css\'<br/>
91&nbsp;&nbsp;type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'&gt;<br/>
92}<br/>
93</tt></small>
94</li>
95</ul>
96</p>
97"
98
Note: See TracBrowser for help on using the repository browser.