source: documented-examples/trunk/style-e/etc/collect.cfg@ 22904

Last change on this file since 22904 was 22904, checked in by kjdon, 12 years ago

keeping this up to date with demo collection

  • Property svn:executable set to *
File size: 11.2 KB
Line 
1creator greenstone@cs.waikato.ac.nz
2maintainer greenstone@cs.waikato.ac.nz
3public true
4
5buildtype mgpp
6infodbtype gdbm
7
8indexes text dls.Title,ex.Title dls.Subject dls.Organization dls.Keyword
9
10levels section document
11
12plugin GreenstoneXMLPlugin
13plugin HTMLPlugin -description_tags
14plugin MetadataXMLPlugin
15plugin ArchivesInfPlugin
16plugin DirectoryPlugin
17
18classify List -metadata dls.Title -partition_type_within_level constant_size
19
20classify Hierarchy -metadata dls.Subject -sort dls.Title
21
22classify List -sort_leaf_nodes_using dls.Title -metadata dls.Organization -bookshelf_type always -partition_type_within_level constant_size
23
24classify List -metadata dls.Keyword -partition_type_within_level constant_size -buttonname Howto
25
26format CL4VList "<td>[link][icon][/link]</td><td>[link][dls.Keyword][/link]"
27
28format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All\': \'):Title],[parent(All\': \'):Title]:}[link][Title][/link]</td>"
29
30format VList "<td valign=top>[link][icon][/link]</td><td valign=top>[highlight]{Or}{[Title],Untitled}[/highlight]{If}{[Date],<br><small><i>_textdate_[Date]</i></small>}{If}{[NumPages],<br><small><i>_textnumpages_[NumPages]</i></small>}{If}{[Source],<br><small><i>_textsource_[dmsafe:Source]</i></small>}</td>"
31
32format DocumentText "<h3>[Title]</h3>\\n\\n<p>[Text]"
33format DocumentImages true
34format DocumentButtons "Expand Text|Expand Contents|Highlight|Detach|Print"
35format DocumentSearchResultLinks true
36
37format HList "[link][highlight][Title][/highlight][/link]"
38
39format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
40
41format SearchTypes "plain,form"
42
43# strings that use macros
44# these don't need translating unless you want something different from the
45# default
46collectionmeta .text [l=en] "_labeltext_"
47collectionmeta .dls.Title,Title [l=en] "_labelTitle_"
48collectionmeta .dls.Subject [l=en] "_labelSubject_"
49collectionmeta .dls.Organization [l=en] "_labelOrganization_"
50collectionmeta .dls.Keyword [l=en] "_labelHowto_"
51
52collectionmeta .document [l=en] "_textbook_"
53collectionmeta .section [l=en] "_textchapter_"
54
55# -- English strings ----------------
56collectionmeta collectionname [l=en] "Cascading Style Sheets<br/> Demo collection"
57
58collectionmeta depositormetadata [l=en] "{\"name\":\"dls.Title\",\"label\":\"Title\",\"tooltip\":\"dls.Title: The title of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Organization\",\"label\":\"Organization\",\"tooltip\":\"dls.Organization: The organization responsible for producing this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Subject\",\"label\":\"Subject\",\"tooltip\":\"dls.Subject: The subject of this resource.\",\"type\":\"text\"}, {\"name\":\"dls.Keyword\",\"label\":\"Keyword\",\"tooltip\":\"dls.Keyword: A more specific indication of what the resource can be used for.\",\"type\":\"text\"}, {\"name\":\"dls.Language\",\"label\":\"Language\",\"tooltip\":\"dls.Language: The language of this resource.\",\"type\":\"text\"}"
59
60# -- French strings ----------------
61collectionmeta collectionname [l=fr] "Démo de feuilles de styles en cascade (CSS)"
62
63# -- Spanish strings ----------------
64collectionmeta collectionname [l=es] "Colección de muestra CSS"
65
66# -- Simplified Chinese strings ----------------
67collectionmeta collectionname [l=zh] "层级样匏衚<br/>挔瀺銆藏"
68
69# -- English text ---------------------------
70
71collectionmeta collectionextra [l=en] "
72This collection demonstrates Greenstone\'s use of Cascading Style Sheets (CSS)
73for visual formatting in web browsers. (Greenstone uses CSS instead of HTML
74tables since version 2.63.) On every page, you can change the
75style-sheet in effect, to modify that page\'s appearance.
76</p>
77<p>This collection contains the same material as the original Greenstone demo collection.</p>
78<p>
79An <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.
80</p>
81<p>If you want to download any of these stylesheets for your own collections,
82here are links to them:
83<ul>
84<li><a href=\'_httpimages_/style.css\'>Default Greenstone Style</a></li>
85<li><a href=\'_httpcstyle_/style-blue.css\'>‘Ocean Blue’ theme</a></li>
86<li><a href=\'_httpcstyle_/style-red.css\'>‘Fire Red’ theme</a></li>
87<li><a href=\'_httpimages_/style-print.css\'>Printer</a></li>
88</ul>
89</p>
90<p>
91<b>Using a downloaded stylesheet</b>
92<ul>
93<li>To use a stylesheet as the default, place it in greenstone/web/style and rename it to style.css. This will affect all collections.</li>
94<li>To use a stylesheet for a particular collection, place it in the collection\'s style 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/>
95<small><tt>
96<br/>
97package Style<br/>
98<br/>
99\_cssheader\_ {<br/>
100&lt;link rel=\'stylesheet\' href=\'\_httpcstyle\_/style-red.css\'<br/>
101&nbsp;&nbsp;type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'&gt;<br/>
102}<br/>
103</tt></small>
104</li>
105</ul>
106</p>
107"
108
109# -- French text ---------------------------
110
111collectionmeta collectionextra [l=fr] "
112Cette collection montre l'usage que fait Greenstone des feuilles de style en cascace (CSS)
113pour le formatage visuel dans les navigateurs Web. (Greenstone utilise les feuilles CSS à la
114place des tableaux HTML depuis la version 2.63.) Sur chaque page, vous pouvez changer la feuille
115de style utilisée, pour changer l'apparence de la page. </p>
116
117<p>Cette collection contient les mêmes matériaux que la collection de démonstration originale de Greenstone. </p>
118
119<p>Un fichier de macro <a href=\'_httpcollection_/macros/extra.dm\'>extra.dm</a> est utilisé par cette collection
120pour permettre de changer de feuille de style. Cela redéfinit quelques macros du paquet <i>Style</i> :
121<b>\_cssheader\_</b>, pour permettre le lien vers plusieurs feuilles de style; <b>\_optnavigationbar\_</b>,
122pour afficher le lien à cliquer; et <b>\_pagescriptextra\_</b>, pour faciliter le changement de feuille de style
123quand on clique sur un lien.</p><p>Si vous voulez télécharger n'importe laquelle de ces feuilles de style pour
124vos propres collections, voici les liens qui y renvoient :
125<ul> <li><a href=\'_httpimages_/style.css\'>Style Greenstone par défaut</a></li>
126<li><a href=\'_httpcstyle_/style-blue.css\'>thÚme ‘Ocean Blue’</a></li>
127<li><a href=\'_httpcstyle_/style-red.css\'>thÚme ‘Fire Red’</a></li>
128<li><a href=\'_httpimages_/style-print.css\'>Version imprimable</a></li> </ul>
129</p>
130
131<p><b>Utiliser une feuille de style téléchargée</b>
132<ul>
133<li>Pour utiliser une feuille de style par défaut, copiez-la dans le dossier greenstone/web/style
134et renommez la en style.css. Cela aura un impact sur toutes les collections.</li>
135<li>Pour utiliser une feuille de style pour une collection particuliÚre, copiez la dans le dossier
136style de cette collection, ajoutez un fichier extra.dm dans le répertoire des macros de cette collection,
137et ajoutez-y une macro comme celle-ci (qui utilise la feuille de style style-red.css comme exemple) :
138<br/> <small><tt> <br/> package Style<br/>
139<br/> \_cssheader\_ {<br/> &lt;link rel=\'stylesheet\' href=\'\_httpcstyle\_/style-red.css\'<br/>
140&nbsp;&nbsp;type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'&gt;<br/> }<br/> </tt></small>
141</li> </ul> </p>
142"
143
144# -- Spanish text -----------------------
145collectionmeta collectionextra [l=es] "
146Esta colección demuestra el uso de hojas de estilo (CSS) con Greenstone para el formateo visual en los navegadores web. (Greenstone usa CSS en vez de tablas HTML desde la version 2.63.) En cada página, puede cambiar la plantilla usada, para modificar la apariencia de la página.
147</p>
148<p>Esta colección contiene el mismo material que la colección de demo original de Greenstone.</p>
149<p>
150Un archivo <a href=\'_httpcollection_/macros/extra.dm\'>extra.dm</a> se utiliza para proveer el cambio de plantilla de estilos. Este archivo redefine algunas macros del paquete <i>Style</i>: <b>\_cssheader\_</b>, para enlazar múltiples plantillas; <b>\_optnavigationbar\_</b>, para mostrar los links; y <b>\_pagescriptextra\_</b>, para facilitar el cambio cuando se selecciona un link.
151</p>
152<p>Si quiere descargar cualquiera de estas plantillas para sus propias colecciones, aquí están los links a ellas:
153<ul>
154<li><a href=\'_httpimages_/style.css\'>Plantilla por defecto de Greenstone</a></li>
155<li><a href=\'_httpcstyle_/style-blue.css\'>Tema ‘Ocean Blue’</a></li>
156<li><a href=\'_httpcstyle_/style-red.css\'>‘Tema Fire Red’</a></li>
157<li><a href=\'_httpimages_/style-print.css\'>Impresora</a></li>
158</ul>
159</p>
160<p>
161<b>Usar una plantilla descargada</b>
162<ul>
163<li>Para usar una plantilla de estilos por defecto, copiela en la carpeta greenstone/web/style y renómbrela como style.css. Esto afectará a todas las colecciones.</li>
164<li>Para usar una plantilla para una colección en particular, copiela en la carpeta style de la colección, agregue un archivo extra.dm en la carpeta macros de la colección y edítelo para agregar las siguientes líneas (aquí se usa la plantilla style-red.css como ejemplo):<br/>
165<small><tt>
166<br/>
167package Style<br/>
168<br/>
169\_cssheader\_ {<br/>
170&lt;link rel=\'stylesheet\' href=\'\_httpcstyle\_/style-red.css\'<br/>
171&nbsp;&nbsp;type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'&gt;<br/>
172}<br/>
173</tt></small>
174</li>
175</ul>
176</p>
177"
178
179# -- Simplified Chinese text -----------------------
180collectionmeta collectionextra [l=zh] "
181本銆藏挔瀺Greenstone䜿甚层级样匏衚CSS定制眑页浏览栌匏。自2.63版本后Greenstone䜿甚CSS替换HTML衚栌。每䞪页面郜可通过修改对应的样匏衚来曎改该页面的倖观。</p>
182
183<p>本銆藏所包
184含的文档䞎Greenstone挔瀺銆藏䞭的䞀样。</p>
185<p>本銆藏䜿甚<a href=\'_httpcollection_/macros/extra.dm\'>extra.dm</a>宏文件来实现䞍同样匏衚的蜬换。该文件重新定义了<i>Style</i>包
186䞭的几䞪宏<b>\_cssheader\_</b>以铟接到倚䞪样匏衚<b>\_optnavigationbar\_</b>以星瀺点击的铟接以及<b>\_pagescriptextra\_</b>以实现点击铟接时的蜬换。
187</p>
188
189<p>劂果䜠想䞋蜜这些样匏衚以䟿甚于䜠自己的銆藏这里是䞋蜜的铟接
190<ul>
191<li><a href=\'_httpimages_/style.css\'>猺省的Greenstone样匏衚</a></li>
192<li><a href=\'_httpcstyle_/style-blue.css\'>海蓝䞻题</a></li>
193<li><a href=\'_httpcstyle_/style-red.css\'>火红䞻题</a></li>
194<li><a href=\'_httpimages_/style-print.css\'>打印机</a></li>
195</ul>
196</p>
197
198<p>
199<b>䜿甚䞋蜜的样匏衚</b>
200<ul>
201<li>芁将䞀䞪样匏衚讟眮䞺猺省的样匏衚将该样匏衚攟å…
202¥greenstone/web/style文件倹并重呜名䞺style.css。这将圱响到所有的銆藏。</li>
203<li>芁圚某䞪特定銆藏䞭䜿甚䞀䞪样匏衚将该样匏衚攟å…
204¥è¯¥éŠ†è—çš„style目圕并圚该銆藏的macros目圕䞋添加䞀䞪extra.dm文件然后添加劂䞋的宏这里䜿甚style-red.css䜜䞺䟋子<br/>
205
206<small><tt>
207<br/>
208package Style<br/>
209<br/>
210\_cssheader\_ {<br/>
211&lt;link rel=\'stylesheet\' href=\'\_httpcstyle\_/style-red.css\'<br/>
212&nbsp;&nbsp;type=\'text/css\' title=\'Fire Red\' charset=\'UTF-8\'&gt;<br/>
213}<br/>
214</tt></small>
215</li>
216</ul>
217</p>
218"
Note: See TracBrowser for help on using the repository browser.