source: documented-example-collections/trunk/image-e/etc/collect.cfg@ 18801

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

removed an erroneous line

  • Property svn:executable set to *
File size: 25.8 KB
RevLine 
[18738]1creator [email protected]
2public true
3
[18789]4buildtype mgpp
[18738]5
[18789]6plugin ImagePlugin
7plugin GreenstoneXMLPlugin
8plugin MetadataXMLPlugin
9plugin ArchivesInfPlugin
10plugin DirectoryPlugin
[18738]11
[18789]12classify List -metadata Image -buttonname Browse
[18738]13
[18789]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>"
[18738]17
[18789]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>"
[18738]22
23format DocumentHeading ""
24format DocumentButtons ""
25
[18789]26format HList "[link][highlight][ex.Title][/highlight][/link]"
[18738]27
28# -- English strings ----------------
29collectionmeta collectionname [l=en] "Simple image collection"
30
31collectionmeta ImageName [l=en] "Image Name"
32collectionmeta Width [l=en] "Width"
33collectionmeta Height [l=en] "Height"
34collectionmeta Size [l=en] "Size"
35
36# -- French strings ----------------
[18789]37collectionmeta collectionname [l=fr] "Collection d\'images simple"
[18738]38
[18789]39collectionmeta ImageName [l=fr] "Nom d\'image"
[18738]40collectionmeta Width [l=fr] "Largeur"
41collectionmeta Height [l=fr] "Hauteur"
42collectionmeta Size [l=fr] "Taille"
43
44# -- Spanish strings ----------------
45collectionmeta collectionname [l=es] "Colección de imágenes sencillas"
46
47collectionmeta ImageName [l=es] "Título de la imagen"
48collectionmeta Width [l=es] "Ancho"
49collectionmeta Height [l=es] "Altura"
50collectionmeta Size [l=es] "Tamaño"
51
52# -- Russian strings ----------------
53collectionmeta collectionname [l=ru] "ПрПстая кПллекцОя ОзПбражеМОй"
54
55collectionmeta ImageName [l=ru] "ИЌя ОзПбражеМОя"
56collectionmeta Width [l=ru] "КОрОМа"
57collectionmeta Height [l=ru] "ВысПта"
58collectionmeta Size [l=ru] "РазЌер"
59
60# -- English text ----------------
61collectionmeta collectionextra [l=en] "This is a basic image collection that contains no text and no
[18789]62explicit metadata. Several JPEG files are placed in the import directory prior to importing
63and building the collection, that\'s all.
[18738]64<p>
65The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
[18789]66The University of Waikato holds copyright. They may be distributed freely, without any restrictions.
[18738]67
68<h3>How the collection works</h3>\n
69
70<p>
[18789]71<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=image-e&d=HASH0155146db043ded1a4753b9a\">Here</a> is a sample document in the collection.
[18738]72The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>
73configuration file</a> specifies no indexes, so the search button is
74suppressed.\n
75
76<p>
[18789]77There is only one plugin, <i>ImagePlugin</i>, aside from the four that are
78always present (<i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>, <i>ArchivesInfPlugin</i>, <i>DirectoryPlugin</i>).
79<i>ImagePlugin</i> relies on the existence of two programs from the ImageMagick suite
[18738]80(<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>): <i>convert</i> and
81<i>identify</i>. Greenstone will not be able to build the collection correctly unless
82ImageMagick is installed on your computer.\n
83
[18789]84<p> <i>ImagePlugin</i> automatically creates a thumbnail and generates the following
[18738]85metadata for each image in the collection:\n
86
87<blockquote>
88<table border=0 cellspacing=0>
89<tr><td width=125 valign=top><i>Image</i></td><td>Name of file containing the image <tr>\n
90<tr><td valign=top><i>ImageWidth</i></td><td>Width of image (in pixels) <tr>\n
91<tr><td valign=top><i>ImageHeight</i></td><td>Height of image (in pixels) <tr>\n
[18789]92<tr><td valign=top><i>Thumb</i></td><td> Name of gif file containing thumbnail of image <tr>\n
[18738]93<tr><td valign=top><i>ThumbWidth</i></td><td>Width of thumbnail image (in pixels) <tr>\n
94<tr><td valign=top><i>ThumbHeight</i></td><td>Height of thumbnail image (in pixels) <tr>\n
95<tr><td valign=top><i>thumbicon</i></td><td>Full pathname specification of thumbnail image <tr>\n
96<tr><td valign=top><i>assocfilepath</i></td><td>Pathname of image directory in the collection\'s <i>assoc</i> directory <tr>\n
97</table>
98</blockquote>\n
99
100<p>
101The image is stored as an \"associated file\" in the <i>assoc</i> subdirectory
102of the collection\'s <i>index</i> directory. (<i>Index</i> is where all files
103necessary to serve the collection are placed, to make it self-contained.) The
[18789]104pathname &#095;<i>httpassocdir</i>&#095;, which is the same as
[18738]105&#095;<i>httpcollection</i>&#095;<i>/index/assoc</i>, refers to this directory. For any
106document, its thumbnail and image are both in a subdirectory whose filename is
107given by <i>assocfilepath</i>. The metadata element <i>thumbicon</i> is set to
108the full pathname specification of the thumbnail image, and can be used in the
109same way as <i>srcicon</i> (see the MSWord and PDF demonstration collection).\n
110
111<p>
112The second format statement in the
113<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>configuration file</a>,
[18789]114<i>DocumentText</i>, dictates how the document will appear, and
[18738]115<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=image-e&d=HASHe65e0fdf1b460cd4f85899\">this</a> is the
116result. There is no document text (if there were, it would be producible by
117[<i>Text</i>]). What is shown is the image itself, along with some metadata extracted
118from it.\n
119
120<p>
121The configuration file
[18789]122specifies one classifier, a <i>List</i> based on <i>Image</i> metadata, shown
123<a href=\"_gwcgi_?l=_cgiargl_&c=image-e&a=d&cl=CL1\">here</a>. The format statement shows the thumbnail image along with
[18738]124some metadata. (Any other classifiers would have the same format, since this
125statement does not name the classifier.) \n
126
127<p>
128You may wonder why the thumbnail image is generated and stored explicitly, when
129the same effect would be obtained by using the original image and scaling it:\n
130
131<pre>
[18789]132&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
133/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
134[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
[18738]135</pre>\n
136
137<p>
138The reason is to save communication bandwidth by not sending large images when
139small ones would do.\n
140
141<p>For a more comprehensive image collection, see the
142<a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">kiwi aircraft images</a>
143in the New Zealand Digital Library. The structure of this collection is
144quite different, however: it is a collection of web pages that include many
[18789]145images along with the text. The HTML plugin <i>HTMLPlugin</i> also processes image
146files, but it does so in a different way from ImagePlugin (for example, it
147does not produce the metadata described above). *deleteIn fact, this is one of the few
[18738]148situations where the ordering of plugins in the collection configuration file makes a
149difference. If both plugins were included, images would be processed by
[18789]150whichever came first in the configuration file.*\n
[18738]151
152<p>Another example of a more comprehensive image collection is Gordon Paynter\'s
153<a href=\"http://www.nzdl.org/worldpics\">Pictures
[18789]154of the world</a>. This is like the present collection in that the target
[18738]155documents are images rather than HTML files, but more extensive metadata is
156associated with each image (using <i>metadata.xml</i> files).
157"
158
159# -- French text ----------------
160collectionmeta collectionextra [l=fr] "
[18789]161C\'est une collection d\'images de base qui ne contient ni texte
162ni méta-donnée explicite. Plusieurs fichiers JPEG sont placés
163dans dans le répertoire \"import\" avant toute importation
164et toute création de la collection. C\'est tout.
[18738]165<p>
166The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
[18789]167The University of Waikato holds copyright. They may be distributed freely, without any restrictions.
[18738]168
169<h3>Comment fonctionne cette collection ?</h3>
170
171<p>
[18789]172<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=image-e&d=HASHe65e0fdf1b460cd4f85899\">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é.
[18738]173
174<p>
[18789]175Il n\'y a qu\'un seul plugin, <i>ImagePlugin</i>, à cÎté des quatre qui sont toujours présents
176(<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>):
177<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.
[18738]178
[18789]179<p> <i>ImagePlugin</i> crée automatiquement une vignette d\'image et génÚre les
[18738]180méta-données suivantes pour chaque image dans la collection :
181
182<blockquote>
183<table border=0 cellspacing=0>
[18789]184<tr><td width=125 valign=top><i>Image</i></td><td>Nom de fichier contenant l\'image<tr>
185<tr><td valign=top><i>ImageWidth</i></td><td>Largeur de l\'image(en pixels)<tr>
186<tr><td valign=top><i>ImageHeight</i></td><td>Hauteur de l\'image(en pixels)<tr>
187<tr><td valign=top><i>Thumb</i></td><td>Nom de fichier gif contenant la vignette de l\'image<tr>
188<tr><td valign=top><i>ThumbWidth</i></td><td>Largeur de la vignette d\'image (en pixels)<tr>
189<tr><td valign=top><i>ThumbHeight</i></td><td>Hauteur de la vignette d\'image (en pixels)<tr>
190<tr><td valign=top><i>Thumbicon</i></td><td>Spécification entiÚre du chemin de la vignette d\'image <tr>
191<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>
[18738]192</table>
193</blockquote>
194
195<p>
[18789]196L\'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
197un 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).
[18738]198
199<p>
[18789]200La 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=image-e&d=HASHe65e0fdf1b460cd4f85899\">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.
[18738]201
202<p>
[18789]203Le fichier de configuration spécifie un classificateur, une <i>List</i> basée
204sur la méta-donnée <i>image</i>, comme indiqué <a href=\"_gwcgi_?l=_cgiargl_&c=image-e&a=d&cl=CL1\">ici</a>.
205La déclaration de format montre la vignette d\'image avec quelques méta-données
206(Tous les autres classificateurs auraient le même format, dÚs lors que la déclaration ne fait mention d\'aucun classificateur).
[18738]207
208<p>
[18789]209On 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:
[18738]210
211<pre>
[18789]212&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
213/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
214[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
[18738]215</pre>\n
216
217<p>
[18789]218La raison est que pour économiser de la bande passante, il est préférable d\'envoyer des images de petite taille.
[18738]219
220<p>
[18789]221Pour une collection d\'images plus complÚte, consulter
222<a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">Kiwi aircraft images</a>
223dans la bibliothÚque numérique de Nouvelle Zélande. La structure de cette collection est
224cependant tout à fait différente : c\'est une collection de pages web qui comprennent beaucoup
225d\'images avec du texte. Le plugin HTML, <i>HTMLPlugin</i> traite aussi des fichiers d\'images mais
226de maniÚre différente que ImagePlugin (par exemple, il ne produit pas la méta-donnée décrite
227ci-dessus).
[18738]228
229<p>
[18789]230Un autre exemple d\'une collection d\'images plus complÚte est
[18738]231<a href=\"http://www.nzdl.org/worldpics\">Pictures of the world</a>
[18789]232de Gordon Paynter. Elle est similaire à la présente collection dans la mesure où les documents cibles sont des images plutÎt que des fichiers HTML, mais une méta-donnée plus étendue
233est associée à chaque image (en utilisant des fichiers <i>metadata.xml</i>).
[18738]234"
235
236# -- Spanish text ----------------
237collectionmeta collectionextra [l=es] "
238
[18789]239Esta es una colección de imágenes básicas 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.
[18738]240<p>
241The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
[18789]242The University of Waikato holds copyright. They may be distributed freely, without any restrictions.
[18738]243
244
245<h3>Cómo trabaja esta colección</h3>
246<p>
247
[18789]248He <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=image-e&d=HASHe65e0fdf1b460cd4f85899\">aquí</a> un documento 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.
[18738]249<p>
250
[18789]251Só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 de la suite ImageMagick (<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>): convertir e identificar. Greenstone no podrá construir correctamente la colección a menos que ImageMagick esté instalada en su computadora.
[18738]252<p>
253
[18789]254<i>ImagePlugin</i> crea automáticamente una reducción de cuadro y genera los siguientes metadatos para cada imagen de la colección:
[18738]255<p>
256
257<blockquote>
258<table border=0 cellspacing=0>
259<tr><td width=125 valign=top><i>Image</i></td><td> Nombre del archivo que contiene la imagen. <tr>\n
260<tr><td valign=top><i>ImageWidth</i></td><td> Ancho de la imagen (en pixeles). <tr>\n
261<tr><td valign=top><i>ImageHeight</i></td><td> Altura de la imagen (en pixeles). <tr>\n
[18789]262<tr><td valign=top><i>Thumb</i></td><td> Nombre del archivo gif que contiene la reducción de cuadro de la imagen. <tr>\n
[18738]263<tr><td valign=top><i>ThumbWidth</i></td><td> Ancho de la imagen reducida (en pixeles). <tr>\n
264<tr><td valign=top><i>ThumbHeight</i></td><td> Altura de la imagen reducida (en pixeles). <tr>\n
265<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
266<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
267</table>
268</blockquote>\n
269<p>
[18789]270La imagen se guarda como \"archivo asociado\" en el subdirectorio <i>asociado</i> del directorio <i>índice</i> de la colección. (<i>Índice</i> es el lugar donde todos los archivos necesarios para la colección se colocan con el fin de hacerlo independiente.) El nombre de la ruta de acceso <i>&#095;httpassocdir&#095;</i> es el mismo que <i>&#095;httpcollection&#095;/index/assoc</i> y remite a este directorio. Para cualquier documento tanto la reducción de cuadro 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> se pone en la especificación del nombre de la ruta de acceso completo de la imagen reducida y puede usarse de la misma manera que <i>srcicon</i> (véase la colección de muestra en MSWord y PDF).
[18738]271<p>
272
273El 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=image-e&d=HASHe65e0fdf1b460cd4f85899\">É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 pura imagen junto con algunos metadatos extraídos de ella.
274<p>
275
[18789]276El archivo de configuración especifica un clasificador, <i>List</i>, basado en el metadatos <i>Imágenes</i>, tal como se muestra <a href=\"_gwcgi_?l=_cgiargl_&c=image-e&a=d&cl=CL1\">aquí</a>. El enunciado de formato muestra la imagen reducida junto con algunos metadatos. (Cualquier otro clasificador tendría el mismo formato, ya que este enunciado no nombra al clasificador.)
[18738]277<p>
278
279Tal 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:
280<p>
281
282<pre>
[18789]283&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
284/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
285[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
[18738]286</pre>\n
287
288<p>
289
[18789]290La 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.
[18738]291<p>
292
[18789]293Para 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).
[18738]294<p>
295
296Otro ejemplo de una colección de imágenes más completa es la colección <a href=\"http://www.nzdl.org/worldpics\">Pictures of the world</a> de Gordon Paynter. Ésta es similar a la presente colección en el sentido de que los documentos objetivo son imágenes en vez de archivos HTML, pero en ella un mayor número de metadatos se asocian a cada imagen (por medio del uso de archivos <i>metadata.xml</i>).
297"
298
299# -- Russian text ----------------
300collectionmeta collectionextra [l=ru] "
301ЭтП ПсМПвМая кПллекцОя ОзПбражеМОй, кПтПрая Ме сПЎержОт МОкакПгП текста О МОкакОх
302 явМых
303 ЌетаЎаММых
[18789]304. НескПлькП JPEG-файлПв пПЌещеМы в ЎОректПрОю ОЌпПрта ЎП ОЌпПртОрПваМОя О пПстрПеМОя кПллекцОО. И этП все.
[18738]305<p>
306The images in this collection have been produced by members of the Department of Computer Science, University of Waikato.
307The University of Waikato holds copyright. They may be distributed freely, without any restrictions.
308
309
310
311<h3>Как рабПтает кПллекцОя</h3>
312<p>
313
[18789]314<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=image-e&d=HASHe65e0fdf1b460cd4f85899\">ЗЎесь</a> преЎставлеМ тОпПвПй ЎПкуЌеМт кПллекцОО. <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>КПМфОгурацОПММый файл</a> Ме ПпреЎеляет МОкакОх
[18738]315 ОМЎексПв, так чтП кМПпка пПОска пПЎавлеМа.
316<p>
[18789]317
[18738]318ИЌеется тПлькП ПЎОМ плагОМ <i>ImagePlugin</i>, пПЌОЌП 4, кПтПрые прОсутствуют всегЎа (<i>GreenstoneXMLPlugin</i>, <i>MetadataXMLPlugin</i>, <i>ArchivesInfPlugin</i>, <i>DirectoryPlugin</i>). <i>ImagePlugin</i> пПлагается Ма существПваМОе Ўвух
319 прПграЌЌ Оз МабПра ImageMagick (<a href=\"http://www.imagemagick.org\">http://www.imagemagick.org</a>) - <i>convert</i> О <i>identify</i>. Greenstone Ме сЌПжет стрПОть кПллекцОО правОльМП, еслО ImageMagick Ме устаМПвлеМ Ма вашеЌ кПЌпьютере.
320<p>
321
322<i>ImagePlugin</i> автПЌатОческО геМерОрует слеЎующОе ЌетаЎаММые Ўля кажЎПгП ОзПбражеМОя в кПллекцОО:
323<p>
324
325<blockquote>
326<table border=0 cellspacing=0>
327<tr>
328<td width=125 valign=top><i>Image</i></td>
329<td>
[18789]330ИЌя файла, сПЎержащегП ОзПбражеМОе
[18738]331</td></tr>
332<tr><td valign=top><i>ImageWidth</i></td>
333<td>
334КОрОМа ОзПбражеМОя (в пОкселах
335)
336</td></tr>
337<tr><td valign=top><i>ImageHeight</i></td>
338<td>
339ВысПта ОзПбражеМОя (в пОкселах
340)
341</td></tr>
342<tr><td valign=top><i>Thumb</i></td>
343<td>
344ИЌя файла фПрЌата ПбЌеМа графОческОЌ ЎаММыЌО, сПЎержащегП уЌеМьшеММПе ОзПбражеМОе
345</td></tr>
346<tr><td valign=top><i>ThumbWidth</i></td>
347<td>
348КОрОМа уЌеМьшеММПгП ОзПбражеМОя (в пОкселах
349)
350</td></tr>
351<tr><td valign=top><i>ThumbHeight</i></td>
352<td>
353ВысПта уЌеМьшеММПгП ОзПбражеМОя (в пОкселах
354)
[18789]355</td></tr>
[18738]356<tr><td valign=top><i>Thumbicon</i></td>
357<td>
[18789]358ППлМПе ПпОсаМОе путО к уЌеМьшеММПЌу ОзПбражеМОю
[18738]359</td></tr>
360<tr><td valign=top><i>assocfilepath</i></td>
361<td>
362ИЌя путО к пПЎЎОректПрОО ОзПбражеМОй в ЎОректПрОО кПллекцОО <i>assoc</i>
363</td></tr></table>
[18789]364</blockquote>
[18738]365<p>
366
367ИзПбражеМОе сПх
368раМОтся как «связаММый файл» в пПЎЎОректПрОО <i>assoc</i> ЎОректПрОО кПллекцОО <i>index</i>. Index -- этП ЎОректПрОя, куЎа все файлы, МеПбх
369ПЎОЌые Ўля ПбслужОваМОя кПллекцОО, пПЌещеМы, чтПбы ПМа была автПМПЌМПй. ДОректПрОя <i>httpassocdir</i>, кПтПрая является тПй же саЌПй, чтП О <i>&#095httpcollection&#095/index/assoc</i>, Пбращается к этПй ЎОректПрОО. Для любПгП ЎПкуЌеМта уЌеМьшеММПе О пПлМПе ОзПбражеМОе Мах
[18789]370ПЎятся в пПЎЎОректПрОО, ОЌя кПтПрПй ПпреЎеляется <i>assocfilepath</i>. МетаЎаММые элеЌеМта <i>thumbicon</i> Ўают пПлМПе ПпОсаМОе путО к уЌеМьшеММПЌу ОзПбражеМОю О ЌПгут ОспПльзПваться теЌ же саЌыЌ ПбразПЌ, чтП О <i>srcicon</i> (сЌ. ЎеЌПМстрацОПММые кПллекцОО MS Word О PDF).
371<p>
372
[18738]373ВтПрПй ПператПр фПрЌата в кПМфОгурацОПММПЌ файле, <i>DocumentText</i>, ПпреЎеляет, как элеЌеМт пПявляется, О <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=image-e&d=HASHe65e0fdf1b460cd4f85899\">этПт прОЌер</a> является результатПЌ. Текст ЎПкуЌеМта Птсутствует (еслО бы ПМ был, тП ПМ бы прПОзвПЎОлся [ТекстПЌ] [Text]. ТП, чтП пПказаМП, является МепПсреЎствеММП ОзПбражеМОеЌ вЌесте с МекПтПрыЌО ЌетаЎаММыЌО, ОзвлечеММыЌО Оз МегП.
374<p>
375
376КПМфОгурацОПММый файл ПпреЎеляет ПЎОМ классОфОкатПр -- <i>List</i>, ПсМПваММый Ма ЌетаЎаММых
377 <i>Image</i>, кПтПрый пПказаМ <a href=\"_gwcgi_?l=_cgiargl_&c=image-e&a=d&cl=CL1\">зЎесь</a>. ОператПр фПрЌата пПказывает уЌеМьшеММПе ОзПбражеМОе вЌесте с МекПтПрыЌО ЌетаЎаММыЌО (любые ЎругОе классОфОкатПры ОЌелО бы тПт же саЌый фПрЌат, так как этПт ПператПр Ме Мазывает классОфОкатПр).
[18789]378<p>
[18738]379
380Вы ЌПжете спрПсОть, пПчеЌу уЌеМьшеММПе ОзПбражеМОе геМерОруется О сПх
381раМяется явМП, кПгЎа тПт же саЌый эффект ЌПг бы быть пПлучеМ прО ОспПльзПваМОО ПрОгОМальМПгП ОзПбражеМОя О ЌасштабОрПваМОО егП:
382<br>
383<pre>
384&lt;td&gt;[link]&lt;img src=\'_httpassocdir_/[assocfilepath]\n
385/[Image]\' width=[ThumbWidth] height=[ThumbHeight]&gt;\n
386[/link]&lt;\/td&gt;&lt;td valign=middle&gt;&lt;i&gt;[Title]&lt;\/i&gt;&lt;\/td&gt;
387</pre>\n
388
389ПрОчОМа сПстПОт в тПЌ, чтПбы сПх
390раМОть пПлПсу прПпускаМОя связО, Ме пПсылая бПльшОе ОзПбражеМОя, кПгЎа ЌалеМькОе Ўелают тП же.
391<p>
392
393БПлее Осчерпывающую кПллекцОю ОзПбражеМОй сЌПтрОте в <a href=\"http://www.nzdl.org/cgi-bin/library?a=p&p=about&c=aircraft\">kiwi aircraft images</a> в НПвПзелаМЎскПй ЊОфрПвПй БОблОПтеке. Структура этПй кПллекцОО весьЌа ПтлОчается, пПскПльку этП О кПллекцОя Web-страМОц, кПтПрая включает ЌМПгП ОзПбражеМОй МаряЎу с текстПЌ. ПлагОМ <i>HTMLPlugin</i> также Пбрабатывает файлы ОзПбражеМОй, МП Ўелает этП так ЎругОЌ спПсПбПЌ, чеЌ ImagePlugin (МпрОЌер, ПМ Ме геМерОрует ЌетаЎаММые, ПпОсаММые выше).
394<p>
395
396ДругОЌ прОЌерПЌ бПлее разМППбразМПй кПллекцОО ОзПбражеМОй является кПллекцОя х
397уЎПжМОка ГПрЎПМа <a href=\"http://www.nzdl.org/worldpics\">КартОМы ЌОра</a>. ОМа пПх
398Пжа Ма преЎставлеММую кПллекцОю теЌ, чтП цель ЎПкуЌеМтПв -- ОзПбражеМОя, а Ме файлы HTML, МП бПльшее чОслП ЌетаЎаММых
399 связаМП с кажЎыЌ ОзПбражеМОеЌ, ОспПльзуя файлы <i>metadata/xml</i>.
400"
Note: See TracBrowser for help on using the repository browser.