source: documentation/trunk/tutorial_sample_files/image-e/etc/collect.cfg@ 27741

Last change on this file since 27741 was 27741, checked in by jlwhisler, 11 years ago

Adding in image-e dec collection so the simple image collection can base itself on this.

File size: 28.4 KB
Line 
1creator [email protected]
2public true
3
4buildtype mgpp
5
6plugin ImagePlugin -OIDtype incremental
7plugin GreenstoneXMLPlugin
8plugin MetadataXMLPlugin
9plugin ArchivesInfPlugin
10plugin DirectoryPlugin
11
12classify List -metadata Image -buttonname Browse -partition_type_within_level approximate_size
13
14format VList "<td valign=\'top\'>[link][thumbicon][/link]</td>
15<td valign=\'top\'>_ImageName_: [Image]<br>_Width_: [ImageWidth]
16<br>_Height_: [ImageHeight]<br>_Size_: [ImageSize]</td>"
17
18format DocumentText "<center><table width=\'_pagewidth_\'>
19<tr><td><img src=\'_httpassocdir_/[assocfilepath]/[Image]\'>
20<br>_ImageName_: [Image]<br>_Width_: [ImageWidth]<br>_Height_: [ImageHeight]
21<br>_Size_: [ImageSize]</td></tr></table></center>"
22
23format DocumentHeading ""
24format DocumentButtons ""
25
26format HList "[link][highlight][ex.Title][/highlight][/link]"
27
28# strings that don't need translating
29collectionmeta sampleoid [l=en] "D2"
30
31# -- English strings ----------------
32collectionmeta collectionname [l=en] "Simple image collection"
33
34collectionmeta ImageName [l=en] "Image Name"
35collectionmeta Width [l=en] "Width"
36collectionmeta Height [l=en] "Height"
37collectionmeta Size [l=en] "Size"
38
39# -- French strings ----------------
40collectionmeta collectionname [l=fr] "Collection d\'images simple"
41
42collectionmeta ImageName [l=fr] "Nom d\'image"
43collectionmeta Width [l=fr] "Largeur"
44collectionmeta Height [l=fr] "Hauteur"
45collectionmeta Size [l=fr] "Taille"
46
47# -- Spanish strings ----------------
48collectionmeta collectionname [l=es] "Colección simple de imágenes"
49
50collectionmeta ImageName [l=es] "Título de la imagen"
51collectionmeta Width [l=es] "Ancho"
52collectionmeta Height [l=es] "Altura"
53collectionmeta Size [l=es] "Tamaño"
54
55# -- Russian strings ----------------
56collectionmeta collectionname [l=ru] "ПрПстая кПллекцОя ОзПбражеМОй"
57
58collectionmeta ImageName [l=ru] "ИЌя ОзПбражеМОя"
59collectionmeta Width [l=ru] "КОрОМа"
60collectionmeta Height [l=ru] "ВысПта"
61collectionmeta Size [l=ru] "РазЌер"
62
63# -- Simplified Chinese strings ----------------
64collectionmeta collectionname [l=zh] "简单囟片銆藏"
65
66collectionmeta ImageName [l=zh] "囟片名"
67collectionmeta Width [l=zh] "宜床"
68collectionmeta Height [l=zh] "高床"
69collectionmeta Size [l=zh] "倧小"
70
71# -- English text ----------------
72collectionmeta collectionextra [l=en] "This is a basic image collection that contains no text and no
73explicit metadata. Several JPEG files are placed in the import directory prior to importing
74and building the collection, that\'s all.
75<p>
76The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
77The University of Waikato holds copyright. They may be distributed freely, without any restrictions.
78
79<h3>How the collection works</h3>\n
80
81<p>
82<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">Here</a> is a sample document in the collection.
83The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>
84configuration file</a> specifies no indexes, so the search button is
85suppressed.\n
86
87<p>
88There is only one plugin, <i>ImagePlugin</i>, aside from the four that are
89always present (<i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>, <i>ArchivesInfPlugin</i>, <i>DirectoryPlugin</i>).
90<i>ImagePlugin</i> relies on the existence of two programs from the ImageMagick suite
91(<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>): <i>convert</i> and
92<i>identify</i>. Greenstone will not be able to build the collection correctly unless
93ImageMagick is installed on your computer.\n
94
95<p> <i>ImagePlugin</i> automatically creates a thumbnail and generates the following
96metadata for each image in the collection:\n
97
98<blockquote>
99<table border=0 cellspacing=0>
100<tr><td width=125 valign=top><i>Image</i></td><td>Name of file containing the image <tr>\n
101<tr><td valign=top><i>ImageWidth</i></td><td>Width of image (in pixels) <tr>\n
102<tr><td valign=top><i>ImageHeight</i></td><td>Height of image (in pixels) <tr>\n
103<tr><td valign=top><i>Thumb</i></td><td> Name of gif file containing thumbnail of image <tr>\n
104<tr><td valign=top><i>ThumbWidth</i></td><td>Width of thumbnail image (in pixels) <tr>\n
105<tr><td valign=top><i>ThumbHeight</i></td><td>Height of thumbnail image (in pixels) <tr>\n
106<tr><td valign=top><i>thumbicon</i></td><td>Full pathname specification of thumbnail image <tr>\n
107<tr><td valign=top><i>assocfilepath</i></td><td>Pathname of image directory in the collection\'s <i>assoc</i> directory <tr>\n
108</table>
109</blockquote>\n
110
111<p>
112The image is stored as an \"associated file\" in the <i>assoc</i> subdirectory
113of the collection\'s <i>index</i> directory. (<i>Index</i> is where all files
114necessary to serve the collection are placed, to make it self-contained.) The
115pathname &#095;<i>httpassocdir</i>&#095;, which is the same as
116&#095;<i>httpcollection</i>&#095;<i>/index/assoc</i>, refers to this directory. For any
117document, its thumbnail and image are both in a subdirectory whose filename is
118given by <i>assocfilepath</i>. The metadata element <i>thumbicon</i> is set to
119the full pathname specification of the thumbnail image, and can be used in the
120same way as <i>srcicon</i> (see the MSWord and PDF demonstration collection).\n
121
122<p>
123The second format statement in the
124<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>configuration file</a>,
125<i>DocumentText</i>, dictates how the document will appear, and
126<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">this</a> is the
127result. There is no document text (if there were, it would be producible by
128[<i>Text</i>]). What is shown is the image itself, along with some metadata extracted
129from it.\n
130
131<p>
132The configuration file
133specifies one classifier, a <i>List</i> based on <i>Image</i> metadata, shown
134<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">here</a>. The format statement shows the thumbnail image along with
135some metadata. (Any other classifiers would have the same format, since this
136statement does not name the classifier.) \n
137
138<p>
139You may wonder why the thumbnail image is generated and stored explicitly, when
140the same effect would be obtained by using the original image and scaling it:\n
141
142<pre>
143&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
144/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
145[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
146</pre>\n
147
148<p>
149The reason is to save communication bandwidth by not sending large images when
150small ones would do.\n
151
152<p>For a more comprehensive image collection, see the
153<a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">kiwi aircraft images</a>
154in the New Zealand Digital Library. The structure of this collection is
155quite different, however: it is a collection of web pages that include many
156images along with the text. The HTML plugin <i>HTMLPlugin</i> also processes image
157files, but it does so in a different way from ImagePlugin (for example, it
158does not produce the metadata described above).\n
159"
160
161# -- French text ----------------
162collectionmeta collectionextra [l=fr] "
163C\'est une collection d\'images de base qui ne contient ni texte
164ni méta-donnée explicite. Plusieurs fichiers JPEG sont placés
165dans dans le répertoire \"import\" avant toute importation
166et toute création de la collection. C\'est tout.
167<p>
168Les images de cette collection ont été produites par des membres du Department of Computer Science, de l'Université de Waikato. L'Université de Waikato en détient le copyright. Elles peuvent être distribuées librement, sans aucune restriction.
169
170<h3>Comment fonctionne cette collection ?</h3>
171
172<p>
173<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">Voici</a> un document test dans la collection. Le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg> fichier de configuration</a> ne spécifie aucun index, ainsi le bouton de recherche est supprimé.
174
175<p>
176Il n\'y a qu\'un seul plugin, <i>ImagePlugin</i>, à cÎté des quatre qui sont toujours présents
177(<i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>, <i>ArchivesInfPlugin</i>, <i>DirectoryPlugin</i>). <i>ImagePlugin</i> dépend de deux programmes de la suite ImageMagick (<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>):
178<i>convert</i> et <i>identify</i>. Greenstone ne sera pas en mesure de créer la collection sans l\'installation de ImageMagick sur votre ordinateur.
179
180<p> <i>ImagePlugin</i> crée automatiquement une vignette d\'image et génÚre les
181méta-données suivantes pour chaque image dans la collection :
182
183<blockquote>
184<table border=0 cellspacing=0>
185<tr><td width=125 valign=top><i>Image</i></td><td>Nom de fichier contenant l\'image<tr>
186<tr><td valign=top><i>ImageWidth</i></td><td>Largeur de l\'image(en pixels)<tr>
187<tr><td valign=top><i>ImageHeight</i></td><td>Hauteur de l\'image(en pixels)<tr>
188<tr><td valign=top><i>Thumb</i></td><td>Nom de fichier gif contenant la vignette de l\'image<tr>
189<tr><td valign=top><i>ThumbWidth</i></td><td>Largeur de la vignette d\'image (en pixels)<tr>
190<tr><td valign=top><i>ThumbHeight</i></td><td>Hauteur de la vignette d\'image (en pixels)<tr>
191<tr><td valign=top><i>Thumbicon</i></td><td>Spécification entiÚre du chemin de la vignette d\'image <tr>
192<tr><td valign=top><i>assocfilepath</i></td><td>Chemin du répertoire de l\'image dans le dossier <i>assoc</i> de la collection<tr>
193</table>
194</blockquote>
195
196<p>
197L\'image est stockée en tant que \"associated file\" (fichier associé) du sous-répertoire <i>assoc</i> du répertoire <i>index</i> de la collection. (<i>Index</i> est le lieu de stockage de tous les fichiers nécessaires à la collection pour en assurer la consistance. Le chemin _<i>httpassocdir</i>_ qui est le même que _<i>httpcollection</i>_<i>/index/assoc</i> fait référence à ce répertoire. Pour tout document, la vignette et l\'image sont tous les deux dans
198un sous répertoire dont le nom de fichier est donné par <i>assocfilepath</i>. L\'élément de méta-donnée <i>thumbicon</i> est prend la valeur de du chemin complet de la vignette de l\'image et peut être utilisé de la même façon que <i>srcicon</i> (voir la collection de démonstration MSWord et PDF).
199
200<p>
201La seconde déclaration de format dans le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de configuration</a>, <i>DocumentText</i>, impose la maniÚre dont le document est affiché; <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">voici</a> le résultat. Il n\'existe aucun texte de document (si tel était le cas, il serait produit par <i>[Text]</i>). Ce qui est affiché est l\'image elle-même, avec quelques méta-données qui en sont extraites.
202
203<p>
204Le fichier de configuration spécifie un classificateur, une <i>List</i> basée
205sur la méta-donnée <i>image</i>, comme indiqué <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">ici</a>.
206La déclaration de format montre la vignette d\'image avec quelques méta-données
207(Tous les autres classificateurs auraient le même format, dÚs lors que la déclaration ne fait mention d\'aucun classificateur).
208
209<p>
210On peut se demander pourquoi la vignette d\'image est produite et stockée explicitement alors que le même effet serait obtenu en utilisant l\'image originale et en la dessinant à l\'échelle:
211
212<pre>
213&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
214/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
215[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
216</pre>\n
217
218<p>
219La raison est que pour économiser de la bande passante, il est préférable d\'envoyer des images de petite taille.
220
221<p>
222Pour une collection d\'images plus complÚte, consulter
223<a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">Kiwi aircraft images</a>
224dans la bibliothÚque numérique de Nouvelle Zélande. La structure de cette collection est
225cependant tout à fait différente : c\'est une collection de pages web qui comprennent beaucoup
226d\'images avec du texte. Le plugin HTML, <i>HTMLPlugin</i> traite aussi des fichiers d\'images mais
227de maniÚre différente que ImagePlugin (par exemple, il ne produit pas la méta-donnée décrite
228ci-dessus).
229
230"
231
232# -- Spanish text ----------------
233collectionmeta collectionextra [l=es] "
234Esta es una colección básica de imágenes sin texto ni ningún metadato explícito. Varios archivos JPEG se colocan en un directorio específico antes de importar y construir la colección. Eso es todo.
235<p>
236Las imágenes en esta colección han sido producidas por miembros del Departamento de Ciencias de la Computación, de la Universidad de Waikato.
237La Universidad de Waikato tiene el copyright. Ellas pueden distribuirse libremente, sin ninguna restricción.
238
239<h3>Cómo trabaja esta colección</h3>
240<p>
241
242Se puede <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">ver aquí</a> un documento de muestra de la colección. El <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración</a> no especifica ningún índice, por lo que el botón de búsqueda se suprime.
243<p>
244
245Sólo hay un plugin, <i>ImagePlugin</i>, además de los cuatro que siempre están presentes (<i>GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin, DirectoryPlugin</i>). <i>ImagePlugin</i> se basa en la existencia de dos programas del paquete de software ImageMagick (<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>): <i>convert</i> e <i>identify</i>. Greenstone no podrá construir correctamente la colección a menos que ImageMagick esté instalado en su computadora.
246<p>
247
248<i>ImagePlugin</i> crea automáticamente una miniatura de la imagen y genera los siguientes metadatos para cada imagen de la colección:
249<p>
250
251<blockquote>
252<table border=0 cellspacing=0>
253<tr><td width=125 valign=top><i>Image</i></td><td> Nombre del archivo que contiene la imagen. <tr>\n
254<tr><td valign=top><i>ImageWidth</i></td><td> Ancho de la imagen (en pixeles). <tr>\n
255<tr><td valign=top><i>ImageHeight</i></td><td> Altura de la imagen (en pixeles). <tr>\n
256<tr><td valign=top><i>Thumb</i></td><td> Nombre del archivo gif que contiene la miniatura de la imagen. <tr>\n
257<tr><td valign=top><i>ThumbWidth</i></td><td> Ancho de la imagen reducida (en pixeles). <tr>\n
258<tr><td valign=top><i>ThumbHeight</i></td><td> Altura de la imagen reducida (en pixeles). <tr>\n
259<tr><td valign=top><i>thumbicon</i></td><td> Especificación del nombre de la ruta de acceso completo de la imagen reducida. <tr>\n
260<tr><td valign=top><i>assocfilepath</i></td><td> Nombre de la ruta de acceso del directorio de imágenes en el directorio asociado de la colección. <tr>\n
261</table>
262</blockquote>\n
263<p>
264La imagen se guarda como \"archivo asociado\" en el subdirectorio <i>assoc</i> del directorio <i>index</i> de la colección. (<i>Index</i> es el lugar donde todos los archivos necesarios para la colección se colocan con el fin de hacerla autocontenida.) El nombre de la ruta de acceso <i>_httpassocdir_</i> es el mismo que <i>_httpcollection_/index/assoc</i> y remite a este directorio. Para cualquier documento tanto la miniatura como la imagen están en un subdirectorio cuyo nombre de archivo es dado por <i>assocfilepath</i>. El elemento de metadato <i>thumbicon</i> tiene como valor la ruta completa a la imagen miniatura y puede usarse de la misma manera que <i>srcicon</i> (véase la colección de muestra en MSWord y PDF).
265<p>
266
267El segundo enunciado de formato en el <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración</a>, <i>DocumentText</i>, dicta la forma en que aparecerá el documento. <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">Éste</a> es el resultado. No hay texto (en caso de que hubiera, se podría producir por medio de [<i>Text</i>]). Lo que se muestra es la imagen junto con algunos metadatos extraídos de ella.
268<p>
269
270El archivo de configuración especifica un clasificador, <i>List</i>, basado en el metadato <i>Image</i>, tal como se muestra <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">aquí</a>. La cadena de formateo muestra la imagen reducida junto con algunos metadatos. (Cualquier otro clasificador tendría el mismo formato, ya que esta cadena no especifica a ningún clasificador en particular.)
271<p>
272
273Tal vez se preguntará por qué se genera y guarda la imagen reducida de manera explícita, cuando se podría obtener el mismo efecto usando la imagen original y escalándola:
274<p>
275
276<pre>
277&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
278/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
279[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
280</pre>\n
281
282<p>
283
284La razón es que de esta manera se ahorra ancho de banda en la comunicación al no enviar imágenes de gran tamaño cuando se pueden enviar pequeñas.
285<p>
286
287Para conocer una colección de imágenes más completa, consulte la <a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">kiwi aircraft images</a> de la Biblioteca Digital de Nueva Zelanda. Sin embargo, la estructura de esta colección es muy diferente. Se trata de una colección de páginas Web que incluye muchas imágenes junto con el texto. El plugin <i>HTMLPlugin</i> también procesa archivos de imágenes, pero lo hace de manera diferente a ImagePlugin (por ejemplo, no produce los metadatos descritos arriba).
288<p>
289
290"
291
292# -- Russian text ----------------
293collectionmeta collectionextra [l=ru] "
294ЭтП ПсМПвМая кПллекцОя ОзПбражеМОй, кПтПрая Ме сПЎержОт МОкакПгП текста О МОкакОх
295 явМых
296 ЌетаЎаММых
297. НескПлькП JPEG-файлПв пПЌещеМы в ЎОректПрОю ОЌпПрта ЎП ОЌпПртОрПваМОя О пПстрПеМОя кПллекцОО. И этП все.
298<p>
299<!-- _text1_ -->
300The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
301The University of Waikato holds copyright. They may be distributed freely, without any restrictions.
302
303<h3>Как рабПтает кПллекцОя</h3>
304<p>
305
306<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">ЗЎесь</a> преЎставлеМ тОпПвПй ЎПкуЌеМт кПллекцОО. <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>КПМфОгурацОПММый файл</a> Ме ПпреЎеляет МОкакОх
307 ОМЎексПв, так чтП кМПпка пПОска пПЎавлеМа.
308<p>
309
310ИЌеется тПлькП ПЎОМ плагОМ <i>ImagePlugin</i>, пПЌОЌП 4, кПтПрые прОсутствуют всегЎа (<i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>, <i>ArchivesInfPlugin</i>, <i>DirectoryPlugin</i>). <i>ImagePlugin</i> пПлагается Ма существПваМОе Ўвух
311 прПграЌЌ Оз МабПра ImageMagick (<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>) - <i>convert</i> О <i>identify</i>. Greenstone Ме сЌПжет стрПОть кПллекцОО правОльМП, еслО ImageMagick Ме устаМПвлеМ Ма вашеЌ кПЌпьютере.
312<p>
313
314<i>ImagePlugin</i> автПЌатОческО геМерОрует слеЎующОе ЌетаЎаММые Ўля кажЎПгП ОзПбражеМОя в кПллекцОО:
315<p>
316
317<blockquote>
318<table border=0 cellspacing=0>
319<tr>
320<td width=125 valign=top><i>Image</i></td>
321<td>
322ИЌя файла, сПЎержащегП ОзПбражеМОе
323</td></tr>
324<tr><td valign=top><i>ImageWidth</i></td>
325<td>
326КОрОМа ОзПбражеМОя (в пОкселах
327)
328</td></tr>
329<tr><td valign=top><i>ImageHeight</i></td>
330<td>
331ВысПта ОзПбражеМОя (в пОкселах
332)
333</td></tr>
334<tr><td valign=top><i>Thumb</i></td>
335<td>
336ИЌя файла фПрЌата ПбЌеМа графОческОЌ ЎаММыЌО, сПЎержащегП уЌеМьшеММПе ОзПбражеМОе
337</td></tr>
338<tr><td valign=top><i>ThumbWidth</i></td>
339<td>
340КОрОМа уЌеМьшеММПгП ОзПбражеМОя (в пОкселах
341)
342</td></tr>
343<tr><td valign=top><i>ThumbHeight</i></td>
344<td>
345ВысПта уЌеМьшеММПгП ОзПбражеМОя (в пОкселах
346)
347</td></tr>
348<tr><td valign=top><i>Thumbicon</i></td>
349<td>
350ППлМПе ПпОсаМОе путО к уЌеМьшеММПЌу ОзПбражеМОю
351</td></tr>
352<tr><td valign=top><i>assocfilepath</i></td>
353<td>
354ИЌя путО к пПЎЎОректПрОО ОзПбражеМОй в ЎОректПрОО кПллекцОО <i>assoc</i>
355</td></tr></table>
356</blockquote>
357<p>
358
359ИзПбражеМОе сПх
360раМОтся как «связаММый файл» в пПЎЎОректПрОО <i>assoc</i> ЎОректПрОО кПллекцОО <i>index</i>. Index -- этП ЎОректПрОя, куЎа все файлы, МеПбх
361ПЎОЌые Ўля ПбслужОваМОя кПллекцОО, пПЌещеМы, чтПбы ПМа была автПМПЌМПй. ДОректПрОя <i>httpassocdir</i>, кПтПрая является тПй же саЌПй, чтП О <i>&#095httpcollection&#095/index/assoc</i>, Пбращается к этПй ЎОректПрОО. Для любПгП ЎПкуЌеМта уЌеМьшеММПе О пПлМПе ОзПбражеМОе Мах
362ПЎятся в пПЎЎОректПрОО, ОЌя кПтПрПй ПпреЎеляется <i>assocfilepath</i>. МетаЎаММые элеЌеМта <i>thumbicon</i> Ўают пПлМПе ПпОсаМОе путО к уЌеМьшеММПЌу ОзПбражеМОю О ЌПгут ОспПльзПваться теЌ же саЌыЌ ПбразПЌ, чтП О <i>srcicon</i> (сЌ. ЎеЌПМстрацОПММые кПллекцОО MS Word О PDF).
363<p>
364
365ВтПрПй ПператПр фПрЌата в кПМфОгурацОПММПЌ файле, <i>DocumentText</i>, ПпреЎеляет, как элеЌеМт пПявляется, О <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">этПт прОЌер</a> является результатПЌ. Текст ЎПкуЌеМта Птсутствует (еслО бы ПМ был, тП ПМ бы прПОзвПЎОлся [ТекстПЌ] [Text]. ТП, чтП пПказаМП, является МепПсреЎствеММП ОзПбражеМОеЌ вЌесте с МекПтПрыЌО ЌетаЎаММыЌО, ОзвлечеММыЌО Оз МегП.
366<p>
367
368КПМфОгурацОПММый файл ПпреЎеляет ПЎОМ классОфОкатПр -- <i>List</i>, ПсМПваММый Ма ЌетаЎаММых
369 <i>Image</i>, кПтПрый пПказаМ <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">зЎесь</a>. ОператПр фПрЌата пПказывает уЌеМьшеММПе ОзПбражеМОе вЌесте с МекПтПрыЌО ЌетаЎаММыЌО (любые ЎругОе классОфОкатПры ОЌелО бы тПт же саЌый фПрЌат, так как этПт ПператПр Ме Мазывает классОфОкатПр).
370<p>
371
372Вы ЌПжете спрПсОть, пПчеЌу уЌеМьшеММПе ОзПбражеМОе геМерОруется О сПх
373раМяется явМП, кПгЎа тПт же саЌый эффект ЌПг бы быть пПлучеМ прО ОспПльзПваМОО ПрОгОМальМПгП ОзПбражеМОя О ЌасштабОрПваМОО егП:
374<br>
375<pre>
376&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
377/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
378[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
379</pre>\n
380
381ПрОчОМа сПстПОт в тПЌ, чтПбы сПх
382раМОть пПлПсу прПпускаМОя связО, Ме пПсылая бПльшОе ОзПбражеМОя, кПгЎа ЌалеМькОе Ўелают тП же.
383<p>
384
385БПлее Осчерпывающую кПллекцОю ОзПбражеМОй сЌПтрОте в <a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">kiwi aircraft images</a> в НПвПзелаМЎскПй ЊОфрПвПй БОблОПтеке. Структура этПй кПллекцОО весьЌа ПтлОчается, пПскПльку этП О кПллекцОя Web-страМОц, кПтПрая включает ЌМПгП ОзПбражеМОй МаряЎу с текстПЌ. ПлагОМ <i>HTMLPlugin</i> также Пбрабатывает файлы ОзПбражеМОй, МП Ўелает этП так ЎругОЌ спПсПбПЌ, чеЌ ImagePlugin (МпрОЌер, ПМ Ме геМерОрует ЌетаЎаММые, ПпОсаММые выше).
386<p>
387"
388
389# -- Simplified Chinese text ----------------
390collectionmeta collectionextra [l=zh] "
391这是䞀䞪基本的囟片銆藏䞍包
392含任䜕文本以及附属å…
393ƒæ•°æ®ã€‚圚富å…
394¥æž„建銆藏之前圚import目圕䞭存圚几䞪JPEG文件就这些。
395
396<p>本銆藏䞭的囟片由怀卡托倧孊计算机系的成员拍摄提䟛。怀卡托倧孊拥有这些文件的版权。这些文件可自由发垃没有任䜕限制。
397
398<h3>本銆藏劂䜕工䜜</h3>\n
399
400<p><a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">这里</a>是本銆藏䞭的䞀䞪文档瀺范。<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>é…
401çœ®æ–‡ä»¶</a>䞭没有指定玢匕因歀没有搜玢按钮。\n
402
403<p>本銆藏只有䞀䞪插件<i>ImagePlugin</i>以及氞远é…
404çœ®å¥œçš„四䞪标准插件<i>GreenstoneXMLPlugin</i><i>MetadataXMLPlugin</i><i>ArchivesInfPlugin</i><i>DirectoryPlugin</i>。<i>ImagePlugin</i>䟝赖于䞀䞪源自ImageMagick的倖郚蜯件(<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>)<i>convert</i>和<i>identify</i>。劂果ImageMagick没有被正垞安装
405Greenstone将䞍胜正垞构建銆藏。\n
406
407<p><i>ImagePlugin</i>自劚创建䞀䞪猩囟并䞺每䞪囟片创建以䞋å…
408ƒæ•°æ®ïŒš\n
409
410<blockquote>
411<table border=0 cellspacing=0>
412<tr><td width=125 valign=top><i>Image</i></td><td>包
413含囟片的文件名 <tr>\n
414<tr><td valign=top><i>ImageWidth</i></td><td>囟片宜床以像玠䞺单䜍<tr>\n
415<tr><td valign=top><i>ImageHeight</i></td><td>囟片高床以像玠䞺单䜍<tr>\n
416<tr><td valign=top><i>Thumb</i></td><td>包
417含囟片猩囟的gif文件名<tr>\n
418<tr><td valign=top><i>ThumbWidth</i></td><td>猩囟宜床以像玠䞺单䜍<tr>\n
419<tr><td valign=top><i>ThumbHeight</i></td><td>猩囟宜床以像玠䞺单䜍<tr>\n
420<tr><td valign=top><i>thumbicon</i></td><td>猩囟的完敎路埄<tr>\n
421<tr><td valign=top><i>assocfilepath</i></td><td>銆藏䞭<i>assoc</i>目圕的䞭的image目圕路埄<tr>\n
422</table>
423</blockquote>\n
424
425<p>这䞪囟片将以\"associated file\"附属文件的圢匏存傚圚<i>index</i>目圕的<i>assoc</i>子目圕䞭。<i>Index</i>目圕包
426含了銆藏所有的所有文件以䟿让å…
427¶åŒ…
428含完敎的信息。路埄名&#095;<i>httpassocdir</i>&#095;等同于&#095;<i>httpcollection</i>&#095;<i>/index/assoc</i>郜指向这䞪目圕。对于任䞀文档å…
429¶çŒ©å›ŸäžŽå›Ÿç‰‡éƒœå°†ä¿å­˜åœšäž€äžªå­ç›®åœ•äž­ïŒŒè¯¥å­ç›®åœ•çš„文件名由<i>assocfilepath</i>指定。å…
430ƒæ•°æ®å…
431ƒçŽ <i>thumbicon</i>被讟䞺猩囟囟片的完敎路埄名并可按甚<i>srcicon</i>的方匏䜿甚参见埮蜯Word侎PDF挔瀺銆藏。\n
432
433<p><a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>é…
434çœ®æ–‡ä»¶</a>䞭的第二䞪栌匏化参数<i>DocumentText</i>指定劂䜕星瀺文档劂<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">这里</a>所瀺。这里没有任䜕文本劂果有的话文本将由[<i>Text</i>]提䟛。这里星瀺的只是囟片本身以及䞀些从䞭抜取出的å…
435ƒæ•°æ®ã€‚\n
436
437<p>é…
438çœ®æ–‡ä»¶æŒ‡å®šäº†äž€äžªåˆ†ç±»å™šïŒŒäž€äžªåŸºäºŽ<i>囟片</i>å…
439ƒæ•°æ®çš„<i>List</i>劂<a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=d&cl=CL1\">这里</a>所瀺。栌匏化参数星瀺猩囟以及䞀些å…
440ƒæ•°æ®ã€‚所有分类噚的栌匏郜是盞同的因䞺这䞪栌匏参数并没有指定分类噚名。\n
441
442<p>䜠可胜想问通过猩攟原囟即可埗到效果的情
443况䞋䞺什么还芁特别的生成和存傚猩囟\n
444
445<pre>
446&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
447/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
448[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
449</pre>\n
450
451<p>原因是䞺了节省垊宜即圚可以发送小囟片的情
452况小䞍发送倧的囟片。\n
453
454<p>曎倍杂的囟片銆藏可参见新西å…
455°æ•°å­—囟乊銆䞭的<a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">kiwi aircraft images</a>銆藏。然而这䞪銆藏的结构有埈倧差别它包
456含了讞倚附垊文本的囟片。HTML插件<i>HTMLPlugin</i>也可倄理囟片文件䜆是å…
457¶å€„理方匏有别于ImagePlugin比劂它䞍䌚生成䞊述这些å…
458ƒæ•°æ®ïŒ‰ã€‚\n
459"
Note: See TracBrowser for help on using the repository browser.