Changeset 19029 for documented-example-collections/trunk/garish-e
- Timestamp:
- 2009-04-17T11:00:54+12:00 (15 years ago)
- Location:
- documented-example-collections/trunk/garish-e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documented-example-collections/trunk/garish-e/etc/collect.cfg
r19010 r19029 139 139 The appearance of Greenstone collections is defined by \"macro files\" in the 140 140 <i>greenstone/macros</i> directory, and can be completely altered by changing the contents of these files. 141 Editing them will change the appearance of all collections. To change the appearance of just one collection, place appropriately modified macros in a file called <i>extra.dm</i> in the collection's <i>macros</i> directory. For example, this collection uses the file <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/ garish/macros/extra.dm</a>. \n141 Editing them will change the appearance of all collections. To change the appearance of just one collection, place appropriately modified macros in a file called <i>extra.dm</i> in the collection's <i>macros</i> directory. For example, this collection uses the file <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>. \n 142 142 <p> 143 143 To separate presentation details from the macro files, … … 146 146 more information), which allow you to specify fonts, colours, spacings, and 147 147 other elements for HTML pages. The standard Greenstone stylesheet is located in <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (it is placed in the <i>images</i> directory because 148 macro files can easily reference this directory). This collection specifies an auxiliary stylesheet, <a href=\"_httpcimages_/style.css\">greenstone/collect/ garish/images/style.css</a>, to be used in addition to the default ones. It includes some comments148 macro files can easily reference this directory). This collection specifies an auxiliary stylesheet, <a href=\"_httpcimages_/style.css\">greenstone/collect/_cgiargc_/images/style.css</a>, to be used in addition to the default ones. It includes some comments 149 149 for those unfamiliar with cascading style sheets. Some of the 150 150 macros in <i>extra.dm</i> reference images that have been placed in 151 <i>greenstone/collect/ garish/images</i>.\n151 <i>greenstone/collect/_cgiargc_/images</i>.\n 152 152 <p> 153 153 The … … 184 184 _navbarspacer_ { \n 185 185 <br/>\n 186 <img src=\"_httpcimages_/horzline.gif\" width=\" _widthtspace_\" height=\"17\">\n186 <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n 187 187 <br/>\n 188 188 }\n … … 233 233 title=\"Greenstone Style\" charset=\"UTF-8\">\n 234 234 <style>\n 235 body.bgimage \ { background-image: none;\}\n236 span.navlink:hover \{ background-image: url(\"_httpcimages_/bg_blue.gif\");\}\n235 body.bgimage \\\{ background-image: none; \\\}\n 236 a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n 237 237 </style>\n 238 238 }\n … … 294 294 <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), 295 295 which is used to generate the 296 <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">search page</a>:296 <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">search page</a>: 297 297 <pre> 298 298 ##############################################################################\n … … 319 319 <i>navigationbar</i> macro, whereas the above version does not, and it 320 320 includes an additional green bar. Compare 321 <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">this</a>321 <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">this</a> 322 322 and 323 323 <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">this</a>.\n … … 342 342 _content_ {\n 343 343 _navigationbar_\n 344 <p>\n 345 <center>\n 344 \n 345 _If_(_phindclassifier__collageclassifier_,\n 346 <p style=\"text-align: center;\">\n 346 347 _phindclassifier_\n 347 _collageclassifier_ 348 </center>\n 349 } 348 _collageclassifier_\n 349 </p>\n 350 )\n 351 \n 352 _If_(\"_cgiargcl_\" eq \"search\",\n 353 <ul id=\"searchresults\">\n 354 _prevsearchresult_\n 355 _nextsearchresult_\n 356 </ul>)\n 357 \n 358 <div class=\"document\">\n 359 }\n 350 360 </pre>\n 351 361 … … 365 375 366 376 <p> 367 L'apparence des collections Greenstone est définie par des \"fichiers de macros\" dans le répertoire <i>greenstone/macros</i> et elle peut être complÚtement modifiée en changeant le contenu de ces fichiers. L' édition de ceux-ci changera l' apparence de toutes les collections.Pour changer l' apparence d' une seule collection, il faut placer correctement les macros modifiés dans un fichier appelé <i>extra.dm</i> dans le répertoirede la collection <i>macros</i>. Par exemple, cette collection utilise le fichier <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/ garish/macros/extra.dm</a>. \n368 <p> 369 Pour séparer certains détails de présentation des fichiers de macros, Greenstone utilise <i>Cascading Style Sheets</i>(voir <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> pour plus d' information), ce qui vous permet de spécifier la police, les couleurs, les espaces, et autres éléments pour les pages HTML. Le 'stylesheet' de Greenstone standardisé est alloqué dans <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (il est placé dans le répertoire <i>images</i> car les macros fichiers peuvent reférer ce répertoire facilement). Cette collection spécifie un 'stylesheet' auxiliaire, <a href=\"_httpcimages_/style.css\">greenstone/collect/ garish/images/style.css</a>, à être utilisé à part ceux du défaut. Ceci inclus quelques commentaires qui ont été placés dans <i>greenstone/collect/garish/images</i>.\n377 L'apparence des collections Greenstone est définie par des \"fichiers de macros\" dans le répertoire <i>greenstone/macros</i> et elle peut être complÚtement modifiée en changeant le contenu de ces fichiers. L' édition de ceux-ci changera l' apparence de toutes les collections.Pour changer l' apparence d' une seule collection, il faut placer correctement les macros modifiés dans un fichier appelé <i>extra.dm</i> dans le répertoirede la collection <i>macros</i>. Par exemple, cette collection utilise le fichier <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>. \n 378 <p> 379 Pour séparer certains détails de présentation des fichiers de macros, Greenstone utilise <i>Cascading Style Sheets</i>(voir <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> pour plus d' information), ce qui vous permet de spécifier la police, les couleurs, les espaces, et autres éléments pour les pages HTML. Le 'stylesheet' de Greenstone standardisé est alloqué dans <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (il est placé dans le répertoire <i>images</i> car les macros fichiers peuvent reférer ce répertoire facilement). Cette collection spécifie un 'stylesheet' auxiliaire, <a href=\"_httpcimages_/style.css\">greenstone/collect/_cgiargc_/images/style.css</a>, à être utilisé à part ceux du défaut. Ceci inclus quelques commentaires qui ont été placés dans <i>greenstone/collect/_cgiargc_/images</i>.\n 370 380 <p> 371 381 Le fichier de macros <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a> … … 387 397 _navbarspacer_ { \n 388 398 <br/>\n 389 <img src=\"_httpcimages_/horzline.gif\" width=\" _widthtspace_\" height=\"17\">\n399 <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n 390 400 <br/>\n 391 401 }\n … … 424 434 title=\"Greenstone Style\" charset=\"UTF-8\">\n 425 435 <style>\n 426 body.bgimage \ { background-image: none;\}\n427 span.navlink:hover \{ background-image: url(\"_httpcimages_/bg_blue.gif\");\}\n436 body.bgimage \\\{ background-image: none; \\\}\n 437 a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n 428 438 </style>\n 429 439 }\n … … 465 475 <p> 466 476 La partie suivante de <i>extra.dm</i> redéfinit des macros dans le paquetage <i>query</i> (\"<i>requête</i>\") (dans <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), 467 qui est utilisé pour générer la <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">page de recherche</a>:477 qui est utilisé pour générer la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">page de recherche</a>: 468 478 <pre> 469 479 ##############################################################################\n … … 487 497 488 498 La définition de <i>content</i> dans le paquetage de <i>requête</i> standard est similaire à la version donnée ci-dessus, excepté le fait qu'elle centre la macro <i>barre de navigation</i>, alors que la version ci-dessu ne le fait pas, et qu'elle inclut une barre verte supplémentaire. Comparez 489 <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">ceci</a> à <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ceci</a>.499 <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">ceci</a> à <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ceci</a>. 490 500 491 501 <p> … … 505 515 _content_ {\n 506 516 _navigationbar_\n 507 <p>\n 508 <center>\n 517 \n 518 _If_(_phindclassifier__collageclassifier_,\n 519 <p style=\"text-align: center;\">\n 509 520 _phindclassifier_\n 510 _collageclassifier_ 511 </center>\n 512 } 521 _collageclassifier_\n 522 </p>\n 523 )\n 524 \n 525 _If_(\"_cgiargcl_\" eq \"search\",\n 526 <ul id=\"searchresults\">\n 527 _prevsearchresult_\n 528 _nextsearchresult_\n 529 </ul>)\n 530 \n 531 <div class=\"document\">\n 532 }\n 513 533 </pre>\n 514 534 … … 524 544 <h3>Cómo trabaja esta colección</h3> 525 545 <p> 526 La apariencia de las colecciones Greenstone se define por medio de los \"archivos de macros\" que se encuentran en el directorio de <i>macros</i> y puede ser modificada completamente cambiando el contenido de estos archivos. Editando estos cambiará la apariencia de todas las colecciones. Para cambiar la apariencia de unicamente una colección, coloque apropiadamente la macros modificado en un archivo llamado <i>extra.dm</i> en el directorio de la colección <i>macros</i>. Por ejemplo, este directorio utiliza un archivo llamado <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/ garish/macros/extra.dm</a>. \n527 528 <p> 529 Para separar ciertos detalles de la presentación de los archivos de macros, Greenstone utiliza <i>Cascading Style Sheets</i>(ver <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> para mas información), que le permite especificar la fuente, los colores, espacios, y otros elementos para las páginas HTML. La hojaestilo Greenstone estándar está alocada en <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (está colocado en el directorio <i>images</i> porque los archivos macro puede sencillamente referir el directorio). Esta colección especifica una hojaestilo auxiliar, <a href=\"_httpcimages_/style.css\">greenstone/collect/ garish/images/style.css</a>, a ser usada en adición a las de defaul. Esto incluye algunos comentarios para aquellos para aquellos que no están familiarizados con hojas estilo cascada. Algunos de los macro en <i>extra.dm</i> refieren a imágenes que han sido colocadas en <i>greenstone/collect/garish/images</i>.\n546 La apariencia de las colecciones Greenstone se define por medio de los \"archivos de macros\" que se encuentran en el directorio de <i>macros</i> y puede ser modificada completamente cambiando el contenido de estos archivos. Editando estos cambiará la apariencia de todas las colecciones. Para cambiar la apariencia de unicamente una colección, coloque apropiadamente la macros modificado en un archivo llamado <i>extra.dm</i> en el directorio de la colección <i>macros</i>. Por ejemplo, este directorio utiliza un archivo llamado <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>. \n 547 548 <p> 549 Para separar ciertos detalles de la presentación de los archivos de macros, Greenstone utiliza <i>Cascading Style Sheets</i>(ver <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a> para mas información), que le permite especificar la fuente, los colores, espacios, y otros elementos para las páginas HTML. La hojaestilo Greenstone estándar está alocada en <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (está colocado en el directorio <i>images</i> porque los archivos macro puede sencillamente referir el directorio). Esta colección especifica una hojaestilo auxiliar, <a href=\"_httpcimages_/style.css\">greenstone/collect/_cgiargc_/images/style.css</a>, a ser usada en adición a las de defaul. Esto incluye algunos comentarios para aquellos para aquellos que no están familiarizados con hojas estilo cascada. Algunos de los macro en <i>extra.dm</i> refieren a imágenes que han sido colocadas en <i>greenstone/collect/_cgiargc_/images</i>.\n 530 550 531 551 <p> … … 547 567 _navbarspacer_ { \n 548 568 <br/>\n 549 <img src=\"_httpcimages_/horzline.gif\" width=\" _widthtspace_\" height=\"17\">\n569 <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n 550 570 <br/>\n 551 571 }\n … … 593 613 title=\"Greenstone Style\" charset=\"UTF-8\">\n 594 614 <style>\n 595 body.bgimage \ { background-image: none;\}\n596 span.navlink:hover \{ background-image: url(\"_httpcimages_/bg_blue.gif\");\}\n615 body.bgimage \\\{ background-image: none; \\\}\n 616 a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n 597 617 </style>\n 598 618 }\n … … 637 657 <p> 638 658 639 La siguiente parte de <i>extra.dm</i> redefine las macros del paquete de <i>consulta</i> (que se encuentra en <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), el cual se utiliza para generar la <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">página de búsqueda</a>.659 La siguiente parte de <i>extra.dm</i> redefine las macros del paquete de <i>consulta</i> (que se encuentra en <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), el cual se utiliza para generar la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">página de búsqueda</a>. 640 660 <p> 641 661 … … 661 681 <p> 662 682 663 La definición de <i>contenido</i> en el paquete de <i>consulta</i> estándar es similar a la versión dada arriba, excepto que centra la macro <i>navigationbar</i>, mientras que la versión de arriba no lo hace, e incluye una barra verde adicional. Compárese <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">ésta</a> con <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ésta</a>.683 La definición de <i>contenido</i> en el paquete de <i>consulta</i> estándar es similar a la versión dada arriba, excepto que centra la macro <i>navigationbar</i>, mientras que la versión de arriba no lo hace, e incluye una barra verde adicional. Compárese <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">ésta</a> con <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ésta</a>. 664 684 <p> 665 685 … … 679 699 _content_ {\n 680 700 _navigationbar_\n 681 <p>\n 682 <center>\n 701 \n 702 _If_(_phindclassifier__collageclassifier_,\n 703 <p style=\"text-align: center;\">\n 683 704 _phindclassifier_\n 684 _collageclassifier_ 685 </center>\n 705 _collageclassifier_\n 706 </p>\n 707 )\n 708 \n 709 _If_(\"_cgiargcl_\" eq \"search\",\n 710 <ul id=\"searchresults\">\n 711 _prevsearchresult_\n 712 _nextsearchresult_\n 713 </ul>)\n 714 \n 715 <div class=\"document\">\n 716 }\n 686 717 </pre>\n 687 718 <p> … … 700 731 ÐОЎ кПллекÑОй ÐÑОМÑÑПÑÐœ заЎаеÑÑÑ Â«ÐŒÐ°ÐºÑПÑайлаЌО» в ЎОÑекÑПÑОО ЌакÑПÑа (<i>greenstone/macros</i>>) О ÐŒÐŸÐ¶ÐµÑ Ð±ÑÑÑ Ð¿ÐŸÐ»ÐœÐŸÑÑÑÑ ÐžÐ·ÐŒÐµÐœÐµÐœÐŸ Ñ Ð¿ÐŸÐŒÐŸÑÑÑ ÐŒÐŸÐŽÐžÑОкаÑОй в ÑÐ°Ð¹Ð»Ð°Ñ 701 732 ЌакÑПÑПв. ÐÑО ЌПЎОÑОкаÑОО ОзЌеМÑÑ Ð²ÐžÐŽ вÑÐµÑ 702 кПллекÑОй. ЧÑÐŸÐ±Ñ ÐžÐ·ÐŒÐµÐœÐžÑÑ Ð²ÐžÐŽ вÑегП лОÑÑ ÐŸÐŽÐœÐŸÐ¹ кПллекÑОО, пПЌеÑÑОÑе ÑППÑвеÑÑÑвÑÑÑОй ЌПЎОÑОÑОÑПваММÑй ЌакÑÐŸÑ Ð² Ñайл МазваММÑй <i>extra.dm</i> в папке <i>macros</i> ÑÑПй кПллекÑОО. ÐапÑОЌеÑ, ÑÑа кПллекÑÐžÑ ÐžÑпПлÑзÑÐµÑ Ñайл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/ garish/macros/extra.dm</a>.\n733 кПллекÑОй. ЧÑÐŸÐ±Ñ ÐžÐ·ÐŒÐµÐœÐžÑÑ Ð²ÐžÐŽ вÑегП лОÑÑ ÐŸÐŽÐœÐŸÐ¹ кПллекÑОО, пПЌеÑÑОÑе ÑППÑвеÑÑÑвÑÑÑОй ЌПЎОÑОÑОÑПваММÑй ЌакÑÐŸÑ Ð² Ñайл МазваММÑй <i>extra.dm</i> в папке <i>macros</i> ÑÑПй кПллекÑОО. ÐапÑОЌеÑ, ÑÑа кПллекÑÐžÑ ÐžÑпПлÑзÑÐµÑ Ñайл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>.\n 703 734 <p> 704 735 705 736 ÐÐ»Ñ ÐŸÑÐŽÐµÐ»ÐµÐœÐžÑ ÐœÐµÐºÐŸÑПÑÑÑ 706 ЎеÑалей пÑезеМÑаÑОО ÐŸÑ ÐŒÐ°ÐºÑПÑайлПв ÐÑОМÑÑПÑÐœ ОÑпПлÑзÑÐµÑ <i>Cascading Style Sheets</i> (ÑÐŒ. ЎПпПлМОÑелÑÐœÑÑ ÐžÐœÑПÑЌаÑÐžÑ ÐœÐ° <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a>), кПÑПÑÑе пПзвПлÑÑÑ ÐаЌ ÑÑÑаМавлОваÑÑ ÑÑОÑÑÑ, ÑвеÑа, ОМÑеÑÐ²Ð°Ð»Ñ Ðž ÐŽÑÑгОе ÑлеЌеМÑÑ ÐŽÐ»Ñ ÑÑÑÐ°ÐœÐžÑ HTML. Ѐайл ÑП ÑÑаМЎаÑÑÐœÑÐŒ МабПÑПЌ ÑÑОлей в ÐÑОМÑÑПÑÐœ пПЌеÑеМ зЎеÑÑ: <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (ПМ пПЌеÑеМ в ЎОÑекÑПÑОО <i>images</i>, пПÑÐŸÐŒÑ ÑÑП ЌакÑП ÑÐ°Ð¹Ð»Ñ ÐŒÐŸÐ³ÑÑ ÑПЎеÑжаÑÑ ÑЎПбМÑе ÑÑÑлкО к ÑÑПй ЎОÑекÑПÑОО.) ÐÑа кПллекÑÐžÑ ÐžÐŒÐµÐµÑ Ð²ÑпПЌПгаÑелÑÐœÑй ÑÑОлевПй Ñайл, <a href=\"_httpcimages_/style.css\">greenstone/collect/ garish/images/style.css</a>, кПÑПÑÑй ÑПЎеÑÐ¶ÐžÑ ÐœÐµÑкПлÑкП кПЌЌеМÑаÑОев ÐŽÐ»Ñ ÑеÑ707 , кÑП Ме ÑазбОÑаеÑÑÑ Ñ CSS. ÐекПÑПÑÑе ЌакÑПÑÑ Ð² <i>extra.dm</i> ОЌеÑÑ ÑÑÑлкО к ОзПбÑажеМОÑÐŒ пПЌеÑеММÑÐŒ в <i>greenstone/collect/ garish/images</i>.\n737 ЎеÑалей пÑезеМÑаÑОО ÐŸÑ ÐŒÐ°ÐºÑПÑайлПв ÐÑОМÑÑПÑÐœ ОÑпПлÑзÑÐµÑ <i>Cascading Style Sheets</i> (ÑÐŒ. ЎПпПлМОÑелÑÐœÑÑ ÐžÐœÑПÑЌаÑÐžÑ ÐœÐ° <a href=\"http://www.w3.org/Style/CSS/\">http://www.w3.org/Style/CSS/</a>), кПÑПÑÑе пПзвПлÑÑÑ ÐаЌ ÑÑÑаМавлОваÑÑ ÑÑОÑÑÑ, ÑвеÑа, ОМÑеÑÐ²Ð°Ð»Ñ Ðž ÐŽÑÑгОе ÑлеЌеМÑÑ ÐŽÐ»Ñ ÑÑÑÐ°ÐœÐžÑ HTML. Ѐайл ÑП ÑÑаМЎаÑÑÐœÑÐŒ МабПÑПЌ ÑÑОлей в ÐÑОМÑÑПÑÐœ пПЌеÑеМ зЎеÑÑ: <a href=\"_httpprefix_/images/style.css\">greenstone/images/style.css</a> (ПМ пПЌеÑеМ в ЎОÑекÑПÑОО <i>images</i>, пПÑÐŸÐŒÑ ÑÑП ЌакÑП ÑÐ°Ð¹Ð»Ñ ÐŒÐŸÐ³ÑÑ ÑПЎеÑжаÑÑ ÑЎПбМÑе ÑÑÑлкО к ÑÑПй ЎОÑекÑПÑОО.) ÐÑа кПллекÑÐžÑ ÐžÐŒÐµÐµÑ Ð²ÑпПЌПгаÑелÑÐœÑй ÑÑОлевПй Ñайл, <a href=\"_httpcimages_/style.css\">greenstone/collect/_cgiargc_/images/style.css</a>, кПÑПÑÑй ÑПЎеÑÐ¶ÐžÑ ÐœÐµÑкПлÑкП кПЌЌеМÑаÑОев ÐŽÐ»Ñ ÑÐµÑ 738 , кÑП Ме ÑазбОÑаеÑÑÑ Ñ CSS. ÐекПÑПÑÑе ЌакÑПÑÑ Ð² <i>extra.dm</i> ОЌеÑÑ ÑÑÑлкО к ОзПбÑажеМОÑÐŒ пПЌеÑеММÑÐŒ в <i>greenstone/collect/_cgiargc_/images</i>.\n 708 739 709 740 <p> … … 736 767 _navbarspacer_ { \n 737 768 <br/>\n 738 <img src=\"_httpcimages_/horzline.gif\" width=\" _widthtspace_\" height=\"17\">\n769 <img src=\"_httpcimages_/horzline.gif\" width=\"87\" height=\"17\">\n 739 770 <br/>\n 740 771 }\n … … 785 816 title=\"Greenstone Style\" charset=\"UTF-8\">\n 786 817 <style>\n 787 body.bgimage \ { background-image: none;\}\n788 span.navlink:hover \{ background-image: url(\"_httpcimages_/bg_blue.gif\");\}\n818 body.bgimage \\\{ background-image: none; \\\}\n 819 a.navlink:hover \\\{ background-image: url(\"_httpcimages_/bg_blue.gif\"); \\\}\n 789 820 </style>\n 790 821 }\n … … 832 863 <p> 833 864 834 СлеЎÑÑÑÐ°Ñ ÑаÑÑÑ <i>extra.dm</i> пеÑеПпÑеЎелÑÐµÑ ÐŒÐ°ÐºÑÐŸÑ Ð² пакеÑе <i>запÑПÑа</i> (<i>query</i>) в <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), кПÑПÑÑй ОÑпПлÑзÑеÑÑÑ ÐŽÐ»Ñ Ð³ÐµÐœÐµÑаÑОО <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">пПОÑкПвПй ÑÑÑаМОÑÑ</a>.865 СлеЎÑÑÑÐ°Ñ ÑаÑÑÑ <i>extra.dm</i> пеÑеПпÑеЎелÑÐµÑ ÐŒÐ°ÐºÑÐŸÑ Ð² пакеÑе <i>запÑПÑа</i> (<i>query</i>) в <a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>), кПÑПÑÑй ОÑпПлÑзÑеÑÑÑ ÐŽÐ»Ñ Ð³ÐµÐœÐµÑаÑОО <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">пПОÑкПвПй ÑÑÑаМОÑÑ</a>. 835 866 836 867 <pre> … … 854 885 </pre>\n 855 886 856 ÐпÑеЎелеМОе <i>ÑПЎеÑжаМОÑ</i> в ÑÑаМЎаÑÑМПЌ пакеÑе <i>запÑПÑа</i> пПЎПбМП веÑÑОО, ЎаММПй вÑÑе, за ОÑклÑÑеМОеЌ ÑПгП, ÑÑП ПМП пПЌеÑÐ°ÐµÑ Ð² ÑеМÑÑе ЌакÑÐŸÑ <i>navigationbar</i>, ÑПгЎа как вÑÑеÑпПЌÑÐœÑÑÐ°Ñ Ð²ÐµÑÑÐžÑ ÐœÐµ ÐŽÐµÐ»Ð°ÐµÑ ÑÑПгП О вклÑÑÐ°ÐµÑ ÐŽÐŸÐ¿ÐŸÐ»ÐœÐžÑелÑÐœÑÑ Ð·ÐµÐ»ÐµÐœÑÑ Ð»ÐžÐœÐµÐ¹ÐºÑ. СÑавМОÑе <a href=\"_gwcgi_?l=_cgiargl_&c= garish&a=q\">ÑП</a> О <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ÑÑП</a>.887 ÐпÑеЎелеМОе <i>ÑПЎеÑжаМОÑ</i> в ÑÑаМЎаÑÑМПЌ пакеÑе <i>запÑПÑа</i> пПЎПбМП веÑÑОО, ЎаММПй вÑÑе, за ОÑклÑÑеМОеЌ ÑПгП, ÑÑП ПМП пПЌеÑÐ°ÐµÑ Ð² ÑеМÑÑе ЌакÑÐŸÑ <i>navigationbar</i>, ÑПгЎа как вÑÑеÑпПЌÑÐœÑÑÐ°Ñ Ð²ÐµÑÑÐžÑ ÐœÐµ ÐŽÐµÐ»Ð°ÐµÑ ÑÑПгП О вклÑÑÐ°ÐµÑ ÐŽÐŸÐ¿ÐŸÐ»ÐœÐžÑелÑÐœÑÑ Ð·ÐµÐ»ÐµÐœÑÑ Ð»ÐžÐœÐµÐ¹ÐºÑ. СÑавМОÑе <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">ÑП</a> О <a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">ÑÑП</a>. 857 888 <p> 858 889 … … 872 903 _content_ {\n 873 904 _navigationbar_\n 874 <p>\n 875 <center>\n 905 \n 906 _If_(_phindclassifier__collageclassifier_,\n 907 <p style=\"text-align: center;\">\n 876 908 _phindclassifier_\n 877 _collageclassifier_ 878 </center>\n 909 _collageclassifier_\n 910 </p>\n 911 )\n 912 \n 913 _If_(\"_cgiargcl_\" eq \"search\",\n 914 <ul id=\"searchresults\">\n 915 _prevsearchresult_\n 916 _nextsearchresult_\n 917 </ul>)\n 918 \n 919 <div class=\"document\">\n 879 920 } 880 921 </pre>\n -
documented-example-collections/trunk/garish-e/macros/extra.dm
r18738 r19029 40 40 ## macros can have optional parameters, that make them more specific. 41 41 ## For example, you could have _macro_ {general case} as well as 42 ## _macro_ [c=garish] {For garish only} for when the "c" argument (which means 43 ## the collection) is set to "garish". Or _macro_ [l=fr] {french case} for 42 ## _macro_ [c=garish-e] {For garish-e collection only} for when the 43 # "c" argument (which means the collection) is set to "garish-e". 44 ## Or _macro_ [l=fr] {french case} for 44 45 ## when the language is set to French. This is how we cope with different 45 46 ## language interfaces. 46 47 47 48 ## Collection specific macros put into the main macro files must have a 48 ## collection parameter ([c=garish ]), otherwise they will apply to all49 ## collection parameter ([c=garish-e]), otherwise they will apply to all 49 50 ## collections. Macros in a collection's extra.dm do not need this parameter. 50 51 … … 56 57 ## help see the effect of changes of these macros. 57 58 58 ## _httpcimg_ is a macro that expands to the images directory of the current 59 ## collection. Any collection images or stylesheets should be put there. 59 ## _httpcimages_ is a macro that expands to the images directory of the 60 ## current collection. Any collection images or stylesheets should be put 61 ## there. 60 62 61 63 ## The macros below modify the appearance of a specific greenstone collection. … … 67 69 ## here as a demonstration. 68 70 ## 69 ## Edit the file images/garish /style.css to change the colours and fonts.71 ## Edit the file images/garish-e/style.css to change the colours and fonts. 70 72 71 73 … … 76 78 ## of these macros are in the file base.dm (and in the language-specific 77 79 ## macro files such as english.dm and french.dm) 78 79 80 80 81 ## These 2 macros are used for highlighting text that matched a query when … … 138 139 #} 139 140 140 #To keep most of the standard greenstone style, and just override a few style declarations, we can define _collectionspecificstyle_, which is included in the default _cssheader_ macro. The title of a stylesheet link must be 'Greenstone Style', in order for it to be used in conjunction with the main stylesheet. 141 142 # Here we include the garish collection's stylesheet, which defines the page color to pink. 143 We also remove the background image for the page to get rid of the green swirly bar, and specify a new (blue) background image for hover (mouse over) on the navigation bar buttons 141 ## To keep most of the standard greenstone style, and just override a few 142 ## style declarations, we can define _collectionspecificstyle_, which is 143 ## included in the default _cssheader_ macro. The title of a stylesheet 144 ## link must be 'Greenstone Style', in order for it to be used in 145 ## conjunction with the main stylesheet. 146 147 ## Here we include the garish-e collection's stylesheet, which defines the 148 ## page color to pink. 149 ## We also remove the background image for the page to get rid of the green 150 ## swirly bar, and specify a new (blue) background image for hover 151 ## (mouse over) on the navigation bar buttons 144 152 145 153 _collectionspecificstyle_ { … … 148 156 <style> 149 157 body.bgimage \{ background-image: none; \} 150 span.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \}158 a.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \} 151 159 </style> 152 160 … … 165 173 ## Just leave in the home button 166 174 _pagebanner_ { 175 <div id="banner"> 167 176 <div class="pageinfo"> 168 177 <p class="bannerlinks">_homelink_</p> 178 </div> 169 179 </div> 170 180 } … … 188 198 <!-- start of custom about:content --> 189 199 _navigationbar_ 200 <div class="document"> 190 201 _textabout_ 191 202 203 <div class="section"> 192 204 <h3>_help:textsimplehelpheading_</h3> 193 205 _help:simplehelp_ 194 206 </div> 207 </div> 195 208 <!-- end of custom about:content --> 196 209 } … … 205 218 206 219 ## This is similar to the default, except we don't centre the _navigationbar_ 207 ## and we've removed the green bars and search history220 ## and we've removed one of the green bars 208 221 _content_ { 209 222 <!-- start of custom query:content --> 210 223 _navigationbar_ 211 224 225 <div class="document"> 226 <div class="queryform"> 212 227 <center> 213 228 _If_(_cgiargct_,_selectqueryform_,_queryform_) 214 229 </center> 215 _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br> 230 </div> 231 _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br /> 216 232 <center> 217 233 _searchhistorylist_ 218 234 </center>) 219 _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br >_resultline_,)220 <br >235 _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br />_resultline_,) 236 <br /> 221 237 <!-- end of custom query:content --> 222 238 } … … 252 268 <!-- start of custom document:content --> 253 269 _navigationbar_ 254 <p> 255 <center> 270 271 _If_(_phindclassifier__collageclassifier_, 272 <p style="text-align: center;"> 256 273 _phindclassifier_ 257 274 _collageclassifier_ 258 </center> 275 </p> 276 ) 277 278 _If_("_cgiargcl_" eq "search", 279 <ul id="searchresults"> 280 _prevsearchresult_ 281 _nextsearchresult_ 282 </ul>) 283 284 <div class="document"> 259 285 <!-- end of custom document:content --> 260 286 }
Note:
See TracChangeset
for help on using the changeset viewer.