Ignore:
Timestamp:
2022-09-07T19:13:11+12:00 (20 months ago)
Author:
anupama
Message:

Commit 2 of 2. The usual insertion of QQQ to English language DEC collection descriptions (to be followed in next commit by undoing QQQ) to force GTI to mark translated strings as requiring updating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documented-examples/trunk/style-e/resources/collectionConfig.properties

    r36588 r36589  
    1 name=QQQCascading Style Sheets<br/> Demo collection
    2 textdate=QQQpublication date\:
    3 textnumpages=QQQno. of pages\:
    4 textsource=QQQsource ref\:
    5 section_chapter=QQQchapter
    6 document_book=QQQbook
     1name=Cascading Style Sheets<br/> Demo collection
     2textdate=publication date\:
     3textnumpages=no. of pages\:
     4textsource=source ref\:
     5section_chapter=chapter
     6document_book=book
    77
    8 dls.Organization=QQQOrganizations
    9 dls.Subject=QQQSubjects
    10 index_text=QQQText
    11 index_document=QQQBook
    12 index_section=QQQChapter
    13 dls.Titles=QQQTitles
    14 dls.Keyword=QQQHow to
    15 #depositormetadata=QQQ{"name"\:"dls.Title","label"\:"Title","tooltip"\:"dls.Title\: The title of this resource.","type"\:"text"}, {"name"\:"dls.Organization","label"\:"Organization","tooltip"\:"dls.Organization\: The organization responsible for producing this resource.","type"\:"text"}, {"name"\:"dls.Subject","label"\:"Subject","tooltip"\:"dls.Subject\: The subject of this resource.","type"\:"text"}, {"name"\:"dls.Keyword","label"\:"Keyword","tooltip"\:"dls.Keyword\: A more specific indication of what the resource can be used for.","type"\:"text"}, {"name"\:"dls.Language","label"\:"Language","tooltip"\:"dls.Language\: The language of this resource.","type"\:"text"}
     8dls.Organization=Organizations
     9dls.Subject=Subjects
     10index_text=Text
     11index_document=Book
     12index_section=Chapter
     13dls.Titles=Titles
     14dls.Keyword=How to
     15#depositormetadata={"name"\:"dls.Title","label"\:"Title","tooltip"\:"dls.Title\: The title of this resource.","type"\:"text"}, {"name"\:"dls.Organization","label"\:"Organization","tooltip"\:"dls.Organization\: The organization responsible for producing this resource.","type"\:"text"}, {"name"\:"dls.Subject","label"\:"Subject","tooltip"\:"dls.Subject\: The subject of this resource.","type"\:"text"}, {"name"\:"dls.Keyword","label"\:"Keyword","tooltip"\:"dls.Keyword\: A more specific indication of what the resource can be used for.","type"\:"text"}, {"name"\:"dls.Language","label"\:"Language","tooltip"\:"dls.Language\: The language of this resource.","type"\:"text"}
    1616
    1717
    18 shortDescription=QQQ<p>This collection demonstrates Greenstone\'s use of Cascading Style Sheets (CSS) for visual formatting in web browsers. On every page, you can change the style-sheet in effect, to modify that page\'s appearance. This collection contains the same material as the original Greenstone demo collection.</p>
     18shortDescription=<p>This collection demonstrates Greenstone\'s use of Cascading Style Sheets (CSS) for visual formatting in web browsers. On every page, you can change the style-sheet in effect, to modify that page\'s appearance. This collection contains the same material as the original Greenstone demo collection.</p>
    1919
    20 description1=QQQ<p>A combination of JavaScript and the overriding of GS3 XSL templates in Greenstone 3\'s <i>global</i> format statement is used by the collection to provide the stylesheet switching. As in some other <i>Documented Example Collections</i>, GLI\'s <tt>Format &gt; Format Features &gt; global</tt> can be used to define the <b>additionalHeaderContent</b> template. Doing so overrides the existing <i>additionalHeaderContent</i> template, and appends any specified HTML elements to the HTML header.</p>
     20description1=<p>A combination of JavaScript and the overriding of GS3 XSL templates in Greenstone 3\'s <i>global</i> format statement is used by the collection to provide the stylesheet switching. As in some other <i>Documented Example Collections</i>, GLI\'s <tt>Format &gt; Format Features &gt; global</tt> can be used to define the <b>additionalHeaderContent</b> template. Doing so overrides the existing <i>additionalHeaderContent</i> template, and appends any specified HTML elements to the HTML header.</p>
    2121
    22 description2=QQQ<p>In this case, the <b>additionalHeaderContent</b> specifies the custom collection stylesheet currently active and the JavaScript to facilitate the stylesheet switching when a link is clicked. The <b>create-banner</b> XSL template in the <i>global</i> format statement is also overridden to provide links to the multiple stylesheets within the existing GS3 banner section, and invoke the custom JavaScript when any link is clicked. \n\
     22description2=<p>In this case, the <b>additionalHeaderContent</b> specifies the custom collection stylesheet currently active and the JavaScript to facilitate the stylesheet switching when a link is clicked. The <b>create-banner</b> XSL template in the <i>global</i> format statement is also overridden to provide links to the multiple stylesheets within the existing GS3 banner section, and invoke the custom JavaScript when any link is clicked. \n\
    2323<pre> \n\
    24   &lt;xsl\:template name=QQQ"additionalHeaderContent"&gt; \n\
    25     &lt;xsl\:variable name=QQQ"httpCollection"&gt; \n\
    26       &lt;xsl\:value-of select=QQQ"/page/pageResponse/collection/metadataList/metadata[@name=\'httpPath\']"/&gt; \n\
     24  &lt;xsl\:template name="additionalHeaderContent"&gt; \n\
     25    &lt;xsl\:variable name="httpCollection"&gt; \n\
     26      &lt;xsl\:value-of select="/page/pageResponse/collection/metadataList/metadata[@name=\'httpPath\']"/&gt; \n\
    2727    &lt;/xsl\:variable&gt; \n\
    28     &lt;link rel=QQQ"stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"  \n\
    29        title=QQQ"GS3 Style" id="custom-style" charset="UTF-8"/&gt; \n\
    30     &lt;script src=QQQ"{$httpCollection}/script/custom-script.js" type="text/javascript"&gt; \n\
     28    &lt;link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"  \n\
     29       title="GS3 Style" id="custom-style" charset="UTF-8"/&gt; \n\
     30    &lt;script src="{$httpCollection}/script/custom-script.js" type="text/javascript"&gt; \n\
    3131    &lt;/script&gt; \n\
    3232  &lt;/xsl\:template&gt; \n\
    3333 \n\
    34   &lt;xsl\:template name=QQQ"create-banner"&gt;   \n\
    35     &lt;div class=QQQ"choose_style"&gt; \n\
     34  &lt;xsl\:template name="create-banner"&gt;   \n\
     35    &lt;div class="choose_style"&gt; \n\
    3636        Choose a style\: \n\
    37         &lt;a href=QQQ"#" onclick="replaceStyle(\'gs3-style-default-extra\');return false;"&gt;Default Greenstone&lt;/a&gt;, \n\
    38         &lt;a href=QQQ"#" onclick="replaceStyle(\'gs3-style-blue\');return false;"&gt;Blue&lt;/a&gt;, \n\
    39         &lt;a href=QQQ"#" onclick="replaceStyle(\'gs3-style-olive-purple\');return false;"&gt;OlivePurple&lt;/a&gt;,         \n\
    40         &lt;a href=QQQ"#" onclick="replaceStyle(\'');return false;"&gt;None&lt;/a&gt; \n\
     37        &lt;a href="#" onclick="replaceStyle(\'gs3-style-default-extra\');return false;"&gt;Default Greenstone&lt;/a&gt;, \n\
     38        &lt;a href="#" onclick="replaceStyle(\'gs3-style-blue\');return false;"&gt;Blue&lt;/a&gt;, \n\
     39        &lt;a href="#" onclick="replaceStyle(\'gs3-style-olive-purple\');return false;"&gt;OlivePurple&lt;/a&gt;,        \n\
     40        &lt;a href="#" onclick="replaceStyle(\'');return false;"&gt;None&lt;/a&gt; \n\
    4141        &lt;/div&gt; \n\
    42     &lt;div id=QQQ"gs_banner" class="ui-widget-header ui-corner-bottom"&gt;      \n\
    43       &lt;div id=QQQ"titlesearchcontainer"&gt; \n\
    44     &lt;xsl\:call-template name=QQQ"page-title-area"/&gt;    \n\
    45     &lt;xsl\:call-template name=QQQ"quick-search-area"/&gt; \n\
    46     &lt;div style=QQQ"clear\:both;"&gt;&lt;xsl\:text&gt; &lt;/xsl\:text&gt;&lt;/div&gt;  \n\
     42    &lt;div id="gs_banner" class="ui-widget-header ui-corner-bottom"&gt;         \n\
     43      &lt;div id="titlesearchcontainer"&gt; \n\
     44    &lt;xsl\:call-template name="page-title-area"/&gt;   \n\
     45    &lt;xsl\:call-template name="quick-search-area"/&gt; \n\
     46    &lt;div style="clear\:both;"&gt;&lt;xsl\:text&gt; &lt;/xsl\:text&gt;&lt;/div&gt;     \n\
    4747      &lt;/div&gt; \n\
    48       &lt;xsl\:call-template name=QQQ"browsing-tabs"/&gt;    \n\
     48      &lt;xsl\:call-template name="browsing-tabs"/&gt;   \n\
    4949    &lt;/div&gt; \n\
    5050  &lt;/xsl\:template&gt; \n\
     
    5252</p>
    5353
    54 description3=QQQ<p>If you want to download any of these stylesheets for your own collections, here are links to them\: \n\
     54description3=<p>If you want to download any of these stylesheets for your own collections, here are links to them\: \n\
    5555<ul> \n\
    56 <li><a href=QQQ'https\://trac.greenstone.org/browser/documented-examples/trunk/style-e/style/gs3-style-default-extra.css\'>GS3 default extra</a> - builds on top of GS3\'s default style</li> \n\
    57 <li><a href=QQQ'https\://trac.greenstone.org/browser/documented-examples/trunk/style-e/style/gs3-style-blue.css\'>Blue theme</a> - modifies the GS3 default style for a blue colouring</li> \n\
    58 <li><a href=QQQ'https\://trac.greenstone.org/browser/documented-examples/trunk/style-e/style/gs3-style-olive-purple.css\'>olive-purple theme</a> - modifies the GS3 default style for a vivid colouring of vine green and purples</li> \n\
     56<li><a href='https\://trac.greenstone.org/browser/documented-examples/trunk/style-e/style/gs3-style-default-extra.css\'>GS3 default extra</a> - builds on top of GS3\'s default style</li> \n\
     57<li><a href='https\://trac.greenstone.org/browser/documented-examples/trunk/style-e/style/gs3-style-blue.css\'>Blue theme</a> - modifies the GS3 default style for a blue colouring</li> \n\
     58<li><a href='https\://trac.greenstone.org/browser/documented-examples/trunk/style-e/style/gs3-style-olive-purple.css\'>olive-purple theme</a> - modifies the GS3 default style for a vivid colouring of vine green and purples</li> \n\
    5959<li>None - clears all CSS styling from the current page (needs reload to get the default GS3 style back)</li> \n\
    6060</ul> \n\
    6161</p>
    6262
    63 description4=QQQ<p><b>Using a downloaded stylesheet</b> \n\
     63description4=<p><b>Using a downloaded stylesheet</b> \n\
    6464<ul> \n\
    6565<li>To use a stylesheet as the default, place it in greenstone/web/interfaces/default/style and rename it to <tt>style.css</tt>. This will affect all collections.</li> \n\
    6666<li>To use a stylesheet for a particular collection, place it in <tt>greenstone/web/sites/localsite/collect/&lt;collection&gt;/style</tt> then specify the stylesheet link in the <b>additionalHeaderContent</b> of GLI\'s <i>global</i> format statement (<tt>Format &gt; Format Features &gt; global</tt>) as follows\: \n\
    67 <pre>&lt;xsl\:template name=QQQ"additionalHeaderContent"&gt; \n\
    68     &lt;xsl\:variable name=QQQ"httpCollection"&gt; \n\
    69       &lt;xsl\:value-of select=QQQ"/page/pageResponse/collection/metadataList/metadata[@name=\'httpPath\']"/&gt; \n\
     67<pre>&lt;xsl\:template name="additionalHeaderContent"&gt; \n\
     68    &lt;xsl\:variable name="httpCollection"&gt; \n\
     69      &lt;xsl\:value-of select="/page/pageResponse/collection/metadataList/metadata[@name=\'httpPath\']"/&gt; \n\
    7070    &lt;/xsl\:variable&gt; \n\
    71     &lt;link href=QQQ"{$httpCollection}/style/stylesheet-name.css" rel="stylesheet" type="text/css"/&gt; \n\
     71    &lt;link href="{$httpCollection}/style/stylesheet-name.css" rel="stylesheet" type="text/css"/&gt; \n\
    7272&lt;/xsl\:template&gt;</pre> \n\
    7373</li> \n\
Note: See TracChangeset for help on using the changeset viewer.