1 | #documented collect.cfg file for Greenstone CSS/style demo collection
|
---|
2 |
|
---|
3 | creator [email protected]
|
---|
4 | public true
|
---|
5 |
|
---|
6 | buildtype mg
|
---|
7 |
|
---|
8 | indexes document:text
|
---|
9 | defaultindex 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
|
---|
15 | plugin GAPlug
|
---|
16 | plugin MetadataXMLPlug
|
---|
17 | plugin HTMLPlug -description_tags
|
---|
18 | plugin ArcPlug
|
---|
19 | plugin RecPlug
|
---|
20 |
|
---|
21 | classify AZList -metadata Title -buttonname Title
|
---|
22 |
|
---|
23 | # for the 1st classifier (vertical lists)
|
---|
24 | format CL1VList "<td>[link][icon][/link]</td><td>[Title]</td>"
|
---|
25 |
|
---|
26 | #### format statements for displaying documents
|
---|
27 | format DocumentHeading "<h2>[Title]</h2>"
|
---|
28 | format DocumentButtons ""
|
---|
29 |
|
---|
30 | format 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 |
|
---|
34 | format HList "[link][highlight][ex.Title][/highlight][/link]"
|
---|
35 |
|
---|
36 | format 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 |
|
---|
42 | format DocumentText "[Text]"
|
---|
43 |
|
---|
44 | collectionmeta iconcollectionsmall [l=en] "_httpprefix_/collect/style-e/images/en/style-e.gif"
|
---|
45 |
|
---|
46 | # -- English strings ---------------
|
---|
47 |
|
---|
48 | collectionmeta collectionname [l=en] "Cascading Style Sheets<br/> Demo collection"
|
---|
49 | collectionmeta .document:text [l=en] "text"
|
---|
50 |
|
---|
51 | # -- French strings ---------------
|
---|
52 |
|
---|
53 | collectionmeta collectionname [l=fr] "Démo de feuilles de styles en cascade (CSS)"
|
---|
54 |
|
---|
55 | # -- Spanish strings --------------
|
---|
56 |
|
---|
57 | collectionmeta collectionname [l=es] "Colección de muestra CSS"
|
---|
58 |
|
---|
59 | # -- English text
|
---|
60 |
|
---|
61 | collectionmeta collectionextra [l=en] "This collection demonstrates Greenstone\'s use of Cascading Style Sheets (CSS)
|
---|
62 | for visual formatting in web browsers. (Greenstone uses CSS instead of HTML
|
---|
63 | tables since version 2.63.) On every page, you can change the
|
---|
64 | style-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>
|
---|
68 | 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.
|
---|
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,
|
---|
73 | here 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/>
|
---|
88 | package Style<br/>
|
---|
89 | <br/>
|
---|
90 | \_cssheader\_ {<br/>
|
---|
91 | <link rel=\'stylesheet\' href=\'\_httpcimages\_/style-red.css\'<br/>
|
---|
92 | type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'><br/>
|
---|
93 | }<br/>
|
---|
94 | </tt></small>
|
---|
95 | </li>
|
---|
96 | </ul>
|
---|
97 | </p>
|
---|
98 | "
|
---|
99 |
|
---|