Changeset 36437


Ignore:
Timestamp:
2022-08-22T16:14:50+12:00 (20 months ago)
Author:
anupama
Message:

Corrections to DEC new GS3 collection descriptions now I could test them out on a GS3

Location:
documented-examples/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • documented-examples/trunk/authen-e/etc/collectionConfig.xml

    r36382 r36437  
    4444        <defaultLevel name="section"/>
    4545        <index name="dls.Organization">
    46             <displayItem lang="en" name="name">dls.Organization</displayItem>
     46            <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/>
    4747        </index>
    4848        <index name="dls.Keyword">
    49             <displayItem lang="en" name="name">dls.Keyword</displayItem>
     49            <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/>
    5050        </index>
    5151        <index name="dls.Title,Title">
    52             <displayItem lang="en" name="name">dls.Title,Title</displayItem>
     52            <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/>
    5353        </index>
    5454        <index name="text">
    55             <displayItem lang="en" name="name">text</displayItem>
     55            <displayItem dictionary="collectionConfig" key="index_text" name="name"/>
    5656        </index>
    5757        <index name="dls.Subject">
    58             <displayItem lang="en" name="name">dls.Subject</displayItem>
     58            <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/>
    5959        </index>
    6060        <defaultIndex name="text"/>
  • documented-examples/trunk/authen-e/resources/collectionConfig.properties

    r36404 r36437  
    55section_chapter=chapter
    66document_book=book
     7
     8dls.Organization=Organizations
     9dls.Subject=Subjects
     10index_text=Text
     11index_document=Book
     12index_section=Chapter
     13dls.Titles=Titles
     14dls.Keyword=How to
    715
    816shortDescription=Collection demonstrating document-level collection authentication in Greenstone 3.
     
    3240description5=<p>In this case, we have used the <i>-OIDtype dirname</i> option to HTMLPlugin, which specifies that directory names should be used as identifiers. This works for collections where each document is in a separate directory. We have used this option to ensure that identifiers remain the same across different platforms (which may not be the case for HASH identifiers), as we need to specify identifiers here for the <i>documentSet</i>s controlling exceptions to the default access granted (or withheld) by the <i>security</i> element.</p>
    3341
    34 description6=<p>The <i>security</i> directive element specifies the Greenstone <i>group</i>s for to which access will be permitted, if the document (or collection) is one of those that requires authentication. The security element is to contain <i>exception</i> and <i>documentSet</> elements to define one or more group names that will override the <i>default_access</i> set on the security element (whether all documents are private by default, for example, in which case <i>exception<i> elements define which groups <i>do</i> have access to the collection materials). The Greenstone <i>admin</i> pages allow you to define groups and add members to them.</p>
     42description6=<p>The <i>security</i> directive element specifies the Greenstone <i>group</i>s for to which access will be permitted, if the document (or collection) is one of those that requires authentication. The security element is to contain <i>exception</i> and <i>documentSet</i> elements to define one or more group names that will override the <i>default_access</i> set on the security element (whether all documents are private by default, for example, in which case <i>exception</i> elements define which groups <i>do</i> have access to the collection materials). The Greenstone <i>admin</i> pages allow you to define groups and add members to them.</p>
    3543
    3644description7=<p>For more information on authentication in GS3, the different possibilities when using the <i>security</i> element in a GS3 collectionConfig file, and creating new users and adding them to groups, refer to the following pages on the Greenstone wiki \n\
  • documented-examples/trunk/style-e/etc/collectionConfig.xml

    r36371 r36437  
    1313        <displayItem dictionary="collectionConfig" key="description3" name="description3"/>
    1414        <displayItem dictionary="collectionConfig" key="description4" name="description4"/>
     15        <displayItem dictionary="collectionConfig" key="textsource" name="textsource"/>
     16        <displayItem dictionary="collectionConfig" key="textnumpages" name="textnumpages"/>
     17        <displayItem dictionary="collectionConfig" key="textdate" name="textdate"/>
    1518    </displayItemList>
    16     <format>  <xsl:template name="additionalHeaderContent">
    17     <xsl:variable name="httpCollection">
    18       <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
    19     </xsl:variable>
    20     <!--
    21     <link href="{$httpCollection}/style/custom-style.css" rel="stylesheet" type="text/css"/>   
    22     -->
    23 <link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"
    24    title="GS3 Style" id="custom-style" charset="UTF-8"/>
    25    
    26 <script src="{$httpCollection}/script/custom-script.js" type="text/javascript">
    27 </script>
     19    <format>
     20        <xsl:template name="additionalHeaderContent">
     21            <xsl:variable name="httpCollection">
     22              <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
     23            </xsl:variable>
     24            <!--
     25            <link href="{$httpCollection}/style/custom-style.css" rel="stylesheet" type="text/css"/>   
     26            -->
     27            <link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"
     28               title="GS3 Style" id="custom-style" charset="UTF-8"/>               
     29            <script src="{$httpCollection}/script/custom-script.js" type="text/javascript">
     30            </script>
     31        </xsl:template>
     32        <xsl:template name="create-banner"> 
     33        <div class="choose_style">
     34            Choose a style:
     35            <a href="#" onclick="replaceStyle('gs3-style-default-extra');return false;">Default Greenstone</a>,
     36            <a href="#" onclick="replaceStyle('gs3-style-blue');return false;">Blue</a>,
     37            <a href="#" onclick="replaceStyle('gs3-style-olive-purple');return false;">OlivePurple</a>,     
     38            <a href="#" onclick="replaceStyle('');return false;">None</a>
     39            </div>
     40           
     41        <div id="gs_banner" class="ui-widget-header ui-corner-bottom">     
     42          <div id="titlesearchcontainer">
     43            <xsl:call-template name="page-title-area"/>
     44            <xsl:call-template name="quick-search-area"/>
     45            <div style="clear:both;"><xsl:text> </xsl:text></div>   
     46          </div>
     47          <xsl:call-template name="browsing-tabs"/>
     48        </div>
     49      </xsl:template>
    2850
    29   </xsl:template>
    30 
    31 
    32     <xsl:template name="create-banner"> 
    33     <div class="choose_style">
    34         Choose a style:
    35         <a href="#" onclick="replaceStyle('gs3-style-default-extra');return false;">Default Greenstone</a>,
    36         <a href="#" onclick="replaceStyle('gs3-style-blue');return false;">Blue</a>,
    37         <a href="#" onclick="replaceStyle('gs3-style-olive-purple');return false;">OlivePurple</a>,     
    38         <a href="#" onclick="replaceStyle('');return false;">None</a>
    39         </div>
    40        
    41     <div id="gs_banner" class="ui-widget-header ui-corner-bottom">     
    42       <div id="titlesearchcontainer">
    43      
    44     <xsl:call-template name="page-title-area"/>
    45     <xsl:call-template name="quick-search-area"/>
    46     <div style="clear:both;"><xsl:text> </xsl:text></div>   
    47       </div>
    48       <xsl:call-template name="browsing-tabs"/>
    49        
    50    
    51     </div>
    52   </xsl:template>
    5351</format>
    5452    <search type="mgpp">
    5553        <index name="text">
    56             <displayItem lang="en" name="name">text</displayItem>
     54            <displayItem dictionary="collectionConfig" key="index_text" name="name"/>
    5755        </index>
    5856        <index name="dls.Keyword">
    59             <displayItem lang="en" name="name">dls.Keyword</displayItem>
     57            <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/>
    6058        </index>
    6159        <index name="dls.Subject">
    62             <displayItem lang="en" name="name">dls.Subject</displayItem>
     60            <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/>
    6361        </index>
    6462        <index name="dls.Organization">
    65             <displayItem lang="en" name="name">dls.Organization</displayItem>
     63            <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/>
    6664        </index>
    6765        <index name="dls.Title,Title">
    68             <displayItem lang="en" name="name">dls.Title,Title</displayItem>
     66            <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/>
    6967        </index>
    7068        <defaultIndex name="text"/>
    7169        <level name="section">
    72             <displayItem lang="en" name="name">_textchapter_</displayItem>
     70            <displayItem dictionary="collectionConfig" key="section_chapter" name="name"/>
    7371        </level>
    7472        <level name="document">
    75             <displayItem lang="en" name="name">_textbook_</displayItem>
     73            <displayItem dictionary="collectionConfig" key="index_document" name="name"/>
    7674        </level>
    7775        <defaultLevel name="section"/>
     
    178176                            <br/>
    179177                            <small>
    180                                 <i>_textdate_<gsf:metadata name="Date"/></i>
     178                                <i>
     179                                    <gsf:displayItem name="textdate"/>
     180                                    <gsf:metadata name="Date"/>
     181                                </i>
    181182                            </small>
    182183                        </gsf:when>
     
    187188                            <br/>
    188189                            <small>
    189                                 <i>_textnumpages_<gsf:metadata name="NumPages"/></i>
     190                                <i>
     191                                    <gsf:displayItem name="textnumpages"/>
     192                                    <gsf:metadata name="NumPages"/>
     193                                </i>
    190194                            </small>
    191195                        </gsf:when>
     
    196200                            <br/>
    197201                            <small>
    198                                 <i>_textsource_<gsf:metadata name="Source"/></i>
     202                                <i>
     203                                    <gsf:displayItem name="textsource"/>
     204                                    <gsf:metadata name="Source"/>
     205                                </i>
    199206                            </small>
    200207                        </gsf:when>
     
    218225                            <br/>
    219226                            <small>
    220                                 <i>_textdate_<gsf:metadata name="Date"/></i>
     227                                <i>
     228                                    <gsf:displayItem name="textdate"/>
     229                                    <gsf:metadata name="Date"/>
     230                                </i>
    221231                            </small>
    222232                        </gsf:when>
     
    227237                            <br/>
    228238                            <small>
    229                                 <i>_textnumpages_<gsf:metadata name="NumPages"/></i>
     239                                <i>
     240                                    <gsf:displayItem name="textnumpages"/>
     241                                    <gsf:metadata name="NumPages"/>
     242                                </i>
    230243                            </small>
    231244                        </gsf:when>
     
    236249                            <br/>
    237250                            <small>
    238                                 <i>_textsource_<gsf:metadata name="Source"/></i>
     251                                <i>
     252                                    <gsf:displayItem name="textsource"/>
     253                                    <gsf:metadata name="Source"/>
     254                                </i>
    239255                            </small>
    240256                        </gsf:when>
  • documented-examples/trunk/style-e/resources/collectionConfig.properties

    r36404 r36437  
    11name=Cascading Style Sheets<br/> Demo collection
     2textdate=publication date:
     3textnumpages=no. of pages:
     4textsource=source ref:
     5section_chapter=chapter
     6document_book=book
    27
    38dls.Organization=Organizations
     
    611index_document=Book
    712index_section=Chapter
    8 dls.Title,Title=Titles
     13dls.Titles=Titles
    914dls.Keyword=How to
    1015depositormetadata={"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"}
     
    1318shortDescription=<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>
    1419
    15 description1=<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 <pre>Format &gt; Format Features &gt; global</pre> 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>
    1621
    1722description2=<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\
     
    2328    &lt;link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"  \n\
    2429       title="GS3 Style" id="custom-style" charset="UTF-8"/&gt; \n\
    25          \n\
    2630    &lt;script src="{$httpCollection}/script/custom-script.js" type="text/javascript"&gt; \n\
    2731    &lt;/script&gt; \n\
    28  \n\
    2932  &lt;/xsl\:template&gt; \n\
    3033 \n\
    31  \n\
    3234  &lt;xsl\:template name="create-banner"&gt;   \n\
    33      \n\
    3435    &lt;div class="choose_style"&gt; \n\
    3536        Choose a style\: \n\
     
    3940        &lt;a href="#" onclick="replaceStyle('');return false;"&gt;None&lt;/a&gt; \n\
    4041        &lt;/div&gt; \n\
    41          \n\
    4242    &lt;div id="gs_banner" class="ui-widget-header ui-corner-bottom"&gt;         \n\
    4343      &lt;div id="titlesearchcontainer"&gt; \n\
    44        \n\
    4544    &lt;xsl\:call-template name="page-title-area"/&gt;   \n\
    4645    &lt;xsl\:call-template name="quick-search-area"/&gt; \n\
     
    6463description4=<p><b>Using a downloaded stylesheet</b> \n\
    6564<ul> \n\
    66 <li>To use a stylesheet as the default, place it in greenstone/web/interfaces/default/style and rename it to <pre>style.css</pre>. This will affect all collections.</li> \n\
    67 <li>To use a stylesheet for a particular collection, place it in greenstone/web/sites/localsite/collect/&lt;collection&gt;/style then specify the stylesheet link in the <b>additionalHeaderContent</b> of GLI's <i>global</i> format statement (<pre>Format &gt; Format Features &gt; global</pre>) as follows: \n\
     65<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\
     66<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\
    6867<pre>&lt;xsl\:template name="additionalHeaderContent"&gt; \n\
    6968    &lt;xsl\:variable name="httpCollection"&gt; \n\
Note: See TracChangeset for help on using the changeset viewer.