Ignore:
Timestamp:
2009-04-17T11:00:54+12:00 (15 years ago)
Author:
kjdon
Message:

updated extra.dm and collect.cfg for current macros, matching extra and the description, changing paths to work with the collection inside a collect group

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  
    139139The appearance of Greenstone collections is defined by \"macro files\" in the
    140140<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>. \n
     141Editing 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
    142142<p>
    143143To separate presentation details from the macro files,
     
    146146more information), which allow you to specify fonts, colours, spacings, and
    147147other 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 comments
     148macro 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
    149149for those unfamiliar with cascading style sheets. Some of the
    150150macros in <i>extra.dm</i> reference images that have been placed in
    151 <i>greenstone/collect/garish/images</i>.\n
     151<i>greenstone/collect/_cgiargc_/images</i>.\n
    152152<p>
    153153The
     
    184184&#095;navbarspacer&#095; { \n
    185185&lt;br/&gt;\n
    186 &lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
     186&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
    187187&lt;br/&gt;\n
    188188}\n
     
    233233   title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
    234234&lt;style&gt;\n
    235 body.bgimage \{ background-image: none; \}\n
    236 span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
     235body.bgimage \\\{ background-image: none; \\\}\n
     236a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
    237237&lt;/style&gt;\n
    238238}\n
     
    294294<a href=\"_httpprefix_/macros/query.dm\" target=macro>query.dm</a>),
    295295which 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>:
    297297<pre>
    298298##############################################################################\n
     
    319319<i>navigationbar</i> macro, whereas the above version does not, and it
    320320includes 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>
    322322and
    323323<a href=\"_gwcgi_?l=_cgiargl_&c=dls-e&a=q\">this</a>.\n
     
    342342&#095;content&#095; {\n
    343343&#095;navigationbar&#095;\n
    344 &lt;p&gt;\n
    345 &lt;center&gt;\n
     344\n
     345&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
     346&lt;p style=\"text-align: center;\"&gt;\n
    346347&#095;phindclassifier&#095;\n
    347 &#095;collageclassifier&#095;
    348 &lt;/center&gt;\n
    349 }
     348&#095;collageclassifier&#095;\n
     349&lt;/p&gt;\n
     350)\n
     351\n
     352&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
     353&lt;ul id=\"searchresults\"&gt;\n
     354&#095;prevsearchresult&#095;\n
     355&#095;nextsearchresult&#095;\n
     356&lt;/ul&gt;)\n
     357\n
     358&lt;div class=\"document\"&gt;\n
     359}\n
    350360</pre>\n
    351361
     
    365375
    366376<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>. \n
    368 <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>.\n
     377L'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>
     379Pour 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
    370380<p>
    371381Le fichier de macros <a href=\"_httpcollection_/macros/extra.dm\" target=macro>extra.dm</a>
     
    387397&#095;navbarspacer&#095; { \n
    388398&lt;br/&gt;\n
    389 &lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
     399&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
    390400&lt;br/&gt;\n
    391401}\n
     
    424434   title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
    425435&lt;style&gt;\n
    426 body.bgimage \{ background-image: none; \}\n
    427 span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
     436body.bgimage \\\{ background-image: none; \\\}\n
     437a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
    428438&lt;/style&gt;\n
    429439}\n
     
    465475<p>
    466476La 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>:
     477qui est utilisé pour générer la <a href=\"_gwcgi_?l=_cgiargl_&c=_cgiargc_&a=q\">page de recherche</a>:
    468478<pre>
    469479##############################################################################\n
     
    487497
    488498La 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>.
    490500
    491501<p>
     
    505515&#095;content&#095; {\n
    506516&#095;navigationbar&#095;\n
    507 &lt;p&gt;\n
    508 &lt;center&gt;\n
     517\n
     518&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
     519&lt;p style=\"text-align: center;\"&gt;\n
    509520&#095;phindclassifier&#095;\n
    510 &#095;collageclassifier&#095;
    511 &lt;/center&gt;\n
    512 }
     521&#095;collageclassifier&#095;\n
     522&lt;/p&gt;\n
     523)\n
     524\n
     525&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
     526&lt;ul id=\"searchresults\"&gt;\n
     527&#095;prevsearchresult&#095;\n
     528&#095;nextsearchresult&#095;\n
     529&lt;/ul&gt;)\n
     530\n
     531&lt;div class=\"document\"&gt;\n
     532}\n
    513533</pre>\n
    514534
     
    524544<h3>Cómo trabaja esta colección</h3>
    525545<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>. \n
    527 
    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>.\n
     546La 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>
     549Para 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
    530550
    531551<p>
     
    547567&#095;navbarspacer&#095; { \n
    548568&lt;br/&gt;\n
    549 &lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
     569&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
    550570&lt;br/&gt;\n
    551571}\n
     
    593613   title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
    594614&lt;style&gt;\n
    595 body.bgimage \{ background-image: none; \}\n
    596 span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
     615body.bgimage \\\{ background-image: none; \\\}\n
     616a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
    597617&lt;/style&gt;\n
    598618}\n
     
    637657<p>
    638658
    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>.
     659La 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>.
    640660<p>
    641661
     
    661681<p>
    662682
    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>.
     683La 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>.
    664684<p>
    665685
     
    679699&#095;content&#095; {\n
    680700&#095;navigationbar&#095;\n
    681 &lt;p&gt;\n
    682 &lt;center&gt;\n
     701\n
     702&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
     703&lt;p style=\"text-align: center;\"&gt;\n
    683704&#095;phindclassifier&#095;\n
    684 &#095;collageclassifier&#095;
    685 &lt;/center&gt;\n
     705&#095;collageclassifier&#095;\n
     706&lt;/p&gt;\n
     707)\n
     708\n
     709&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
     710&lt;ul id=\"searchresults\"&gt;\n
     711&#095;prevsearchresult&#095;\n
     712&#095;nextsearchresult&#095;\n
     713&lt;/ul&gt;)\n
     714\n
     715&lt;div class=\"document\"&gt;\n
     716}\n
    686717</pre>\n
    687718<p>
     
    700731ВОЎ кПллекцОй ГрОМстПуМ заЎается «ЌакрПфайлаЌО» в ЎОректПрОО ЌакрПса (<i>greenstone/macros</i>>) О ЌПжет быть пПлМПстью ОзЌеМеМП с пПЌПщью ЌПЎОфОкацОй в файлаÑ
    701732 ÐŒÐ°ÐºÑ€ÐŸÑÐŸÐ². ЭтО ЌПЎОфОкацОО ОзЌеМят вОЎ всеÑ
    702  ÐºÐŸÐ»Ð»ÐµÐºÑ†ÐžÐ¹. ЧтПбы ОзЌеМОть вОЎ всегП лОшь ПЎМПй кПллекцОО, пПЌестОте сППтветствующОй ЌПЎОфОцОрПваММый ЌакрПс в файл МазваММый <i>extra.dm</i> в папке <i>macros</i> этПй кПллекцОО. НапрОЌер, эта кПллекцОя ОспПльзует файл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/garish/macros/extra.dm</a>.\n
     733 ÐºÐŸÐ»Ð»ÐµÐºÑ†ÐžÐ¹. ЧтПбы ОзЌеМОть вОЎ всегП лОшь ПЎМПй кПллекцОО, пПЌестОте сППтветствующОй ЌПЎОфОцОрПваММый ЌакрПс в файл МазваММый <i>extra.dm</i> в папке <i>macros</i> этПй кПллекцОО. НапрОЌер, эта кПллекцОя ОспПльзует файл <a href=\"_httpcollection_/macros/extra.dm\">greenstone/collect/_cgiargc_/macros/extra.dm</a>.\n
    703734<p>
    704735
    705736Для ПтЎелеМОя МекПтПрыÑ
    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>.\n
     737 ÐŽÐµÑ‚алей презеМтацОО Пт ЌакрПфайлПв ГрОМстПуМ ОспПльзует  <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
    708739
    709740<p>
     
    736767&#095;navbarspacer&#095; { \n
    737768&lt;br/&gt;\n
    738 &lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"&#095;widthtspace&#095;\" height=\"17\"&gt;\n
     769&lt;img src=\"&#095;httpcimages&#095;/horzline.gif\" width=\"87\" height=\"17\"&gt;\n
    739770&lt;br/&gt;\n
    740771}\n
     
    785816   title=\"Greenstone Style\" charset=\"UTF-8\"&gt;\n
    786817&lt;style&gt;\n
    787 body.bgimage \{ background-image: none; \}\n
    788 span.navlink:hover \{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \}\n
     818body.bgimage \\\{ background-image: none; \\\}\n
     819a.navlink:hover \\\{ background-image: url(\"&#095;httpcimages&#095;/bg&#095;blue.gif\"); \\\}\n
    789820&lt;/style&gt;\n
    790821}\n
     
    832863<p>
    833864
    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>.
    835866
    836867<pre>
     
    854885</pre>\n
    855886
    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>.
    857888<p>
    858889
     
    872903&#095;content&#095; {\n
    873904&#095;navigationbar&#095;\n
    874 &lt;p&gt;\n
    875 &lt;center&gt;\n
     905\n
     906&#095;If&#095;(&#095;phindclassifier&#095;&#095;collageclassifier&#095;,\n
     907&lt;p style=\"text-align: center;\"&gt;\n
    876908&#095;phindclassifier&#095;\n
    877 &#095;collageclassifier&#095;
    878 &lt;/center&gt;\n
     909&#095;collageclassifier&#095;\n
     910&lt;/p&gt;\n
     911)\n
     912\n
     913&#095;If&#095;(\"&#095;cgiargcl&#095;\" eq \"search\",\n
     914&lt;ul id=\"searchresults\"&gt;\n
     915&#095;prevsearchresult&#095;\n
     916&#095;nextsearchresult&#095;\n
     917&lt;/ul&gt;)\n
     918\n
     919&lt;div class=\"document\"&gt;\n
    879920}
    880921</pre>\n
  • documented-example-collections/trunk/garish-e/macros/extra.dm

    r18738 r19029  
    4040## macros can have optional parameters, that make them more specific.
    4141## 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
    4445## when the language is set to French. This is how we cope with different
    4546## language interfaces.
    4647
    4748## Collection specific macros put into the main macro files must have a
    48 ## collection parameter ([c=garish]), otherwise they will apply to all
     49## collection parameter ([c=garish-e]), otherwise they will apply to all
    4950## collections. Macros in a collection's extra.dm do not need this parameter.
    5051
     
    5657## help see the effect of changes of these macros.
    5758
    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.
    6062
    6163## The macros below modify the appearance of a specific greenstone collection.
     
    6769## here as a demonstration.
    6870##
    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.
    7072
    7173
     
    7678## of these macros are in the file base.dm (and in the language-specific
    7779## macro files such as english.dm and french.dm)
    78 
    7980
    8081## These 2 macros are used for highlighting text that matched a query when
     
    138139#}
    139140
    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
    144152
    145153_collectionspecificstyle_ {
     
    148156<style>
    149157body.bgimage \{ background-image: none; \}
    150 span.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \}
     158a.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \}
    151159</style>
    152160
     
    165173## Just leave in the home button
    166174_pagebanner_  {
     175<div id="banner">
    167176<div class="pageinfo">
    168177<p class="bannerlinks">_homelink_</p>
     178</div>
    169179</div>
    170180}
     
    188198<!-- start of custom about:content -->
    189199_navigationbar_
     200<div class="document">
    190201_textabout_
    191202
     203<div class="section">
    192204<h3>_help:textsimplehelpheading_</h3>
    193205_help:simplehelp_
    194 
     206</div>
     207</div>
    195208<!-- end of custom about:content -->
    196209}
     
    205218
    206219## This is similar to the default, except we don't centre the _navigationbar_
    207 ## and we've removed the green bars and search history
     220## and we've removed one of the green bars
    208221_content_  {
    209222<!-- start of custom query:content -->
    210223_navigationbar_
    211224
     225<div class="document">
     226<div class="queryform">
    212227<center>
    213228_If_(_cgiargct_,_selectqueryform_,_queryform_)
    214229</center>
    215 _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>
     230</div>
     231_If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br />
    216232<center>
    217233_searchhistorylist_
    218234</center>)
    219 _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)
    220 <br>
     235_If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br />_resultline_,)
     236<br />
    221237<!-- end of custom query:content -->
    222238}
     
    252268<!-- start of custom document:content -->
    253269_navigationbar_
    254 <p>
    255 <center>
     270
     271_If_(_phindclassifier__collageclassifier_,
     272<p style="text-align: center;">
    256273_phindclassifier_
    257274_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">
    259285<!-- end of custom document:content -->
    260286}
Note: See TracChangeset for help on using the changeset viewer.