source: documented-examples/trunk/garish-e/resources/collectionConfig.properties@ 36619

Last change on this file since 36619 was 36619, checked in by anupama, 20 months ago

Commit 2/2: undoing escaping apostrophes in English, having committed the same for French previously. Previous commit message still applies: Maybe I shouldn't have escaped the apostrophes in the collectionConfig.properties files (only affects French and English), as it doesn't get unescaped when presented to the translator in GTI. It really only helped when using emacs to edit the collectionConfig.properties files, because single quotes acted liek they were starting string literals and highlighting colours changed.

File size: 2.2 KB
RevLine 
[36615]1name=Custom stylesheet demo collection
[36547]2
[36615]3textdate=publication date\:
4textnumpages=no. of pages\:
5textsource=source ref\:
[36547]6
[36615]7dls.Organization=Organizations
8dls.Titles=Titles
9dls.Keyword=How to
10dls.Subject=Subjects
11index_text=Text
12index_document=Book
13index_section=Chapter
[36547]14
[36615]15shortDescription=<p>This demonstration collection contains the same material as the original Greenstone demo collection, but its appearance has been altered slightly using a custom stylesheet.</p>
[36547]16
[36615]17description1=<p>Greenstone 3 uses default stylesheets, which can be overridden for all collections in a site or for any particular collection. This documented example collection covers the last case.</p>
[36547]18
[36619]19description2=<h3>How the collection works</h3><p>The <b>global</b> format statement contains a link to the collection's custom stylesheet, which is located inside the collection\: \n\
[36615]20<pre>&lt;xsl\:template name="additionalHeaderContent"&gt; \n\
21 &lt;xsl\:variable name="httpCollection"&gt; \n\
22 &lt;xsl\:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/&gt; \n\
[36547]23 &lt;/xsl\:variable&gt; \n\
[36615]24 &lt;link href="{$httpCollection}/style/style.css" rel="stylesheet" type="text/css"/&gt; \n\
[36547]25 &lt;/xsl\:template&gt; \n\
26</pre> \n\
27</p>
28
[36619]29description3=<p>Next, a folder named <i>style</i> is created within the collection and a new text file, called <i>custom-style.css</i>, is created within that folder. The css suffix indicates it's a <i>Cascading Style Sheet</i>. CSS files define the look of web pages such as the colours, borders, fonts, heading styles and more. CSS files are just text files, and can thus be edited with any text editor.</p>
[36547]30
[36619]31description4=<p>The default Greenstone CSS style sheets define certain styles for all collections, that are <i>overridden</i> for the collection by defining CSS rules within its new custom stylesheet. It is by linking the CSS file in the Greenstone collection's <b>global</b> format statement as above, that the general Greenstone CSS styling rules get overridden at the collection level.</p>
[36547]32
[36615]33description5=<p>You can quickly learn how to write CSS at <a href="https\://www.w3schools.com/css/default.asp">W3schools</a> and other online sites.</p>
[36547]34
Note: See TracBrowser for help on using the repository browser.