Changeset 36437
- Timestamp:
- 2022-08-22T16:14:50+12:00 (20 months ago)
- Location:
- documented-examples/trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
documented-examples/trunk/authen-e/etc/collectionConfig.xml
r36382 r36437 44 44 <defaultLevel name="section"/> 45 45 <index name="dls.Organization"> 46 <displayItem lang="en" name="name">dls.Organization</displayItem>46 <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/> 47 47 </index> 48 48 <index name="dls.Keyword"> 49 <displayItem lang="en" name="name">dls.Keyword</displayItem>49 <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/> 50 50 </index> 51 51 <index name="dls.Title,Title"> 52 <displayItem lang="en" name="name">dls.Title,Title</displayItem>52 <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/> 53 53 </index> 54 54 <index name="text"> 55 <displayItem lang="en" name="name">text</displayItem>55 <displayItem dictionary="collectionConfig" key="index_text" name="name"/> 56 56 </index> 57 57 <index name="dls.Subject"> 58 <displayItem lang="en" name="name">dls.Subject</displayItem>58 <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/> 59 59 </index> 60 60 <defaultIndex name="text"/> -
documented-examples/trunk/authen-e/resources/collectionConfig.properties
r36404 r36437 5 5 section_chapter=chapter 6 6 document_book=book 7 8 dls.Organization=Organizations 9 dls.Subject=Subjects 10 index_text=Text 11 index_document=Book 12 index_section=Chapter 13 dls.Titles=Titles 14 dls.Keyword=How to 7 15 8 16 shortDescription=Collection demonstrating document-level collection authentication in Greenstone 3. … … 32 40 description5=<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> 33 41 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>42 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</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> 35 43 36 44 description7=<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 13 13 <displayItem dictionary="collectionConfig" key="description3" name="description3"/> 14 14 <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"/> 15 18 </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> 28 50 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>53 51 </format> 54 52 <search type="mgpp"> 55 53 <index name="text"> 56 <displayItem lang="en" name="name">text</displayItem>54 <displayItem dictionary="collectionConfig" key="index_text" name="name"/> 57 55 </index> 58 56 <index name="dls.Keyword"> 59 <displayItem lang="en" name="name">dls.Keyword</displayItem>57 <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/> 60 58 </index> 61 59 <index name="dls.Subject"> 62 <displayItem lang="en" name="name">dls.Subject</displayItem>60 <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/> 63 61 </index> 64 62 <index name="dls.Organization"> 65 <displayItem lang="en" name="name">dls.Organization</displayItem>63 <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/> 66 64 </index> 67 65 <index name="dls.Title,Title"> 68 <displayItem lang="en" name="name">dls.Title,Title</displayItem>66 <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/> 69 67 </index> 70 68 <defaultIndex name="text"/> 71 69 <level name="section"> 72 <displayItem lang="en" name="name">_textchapter_</displayItem>70 <displayItem dictionary="collectionConfig" key="section_chapter" name="name"/> 73 71 </level> 74 72 <level name="document"> 75 <displayItem lang="en" name="name">_textbook_</displayItem>73 <displayItem dictionary="collectionConfig" key="index_document" name="name"/> 76 74 </level> 77 75 <defaultLevel name="section"/> … … 178 176 <br/> 179 177 <small> 180 <i>_textdate_<gsf:metadata name="Date"/></i> 178 <i> 179 <gsf:displayItem name="textdate"/> 180 <gsf:metadata name="Date"/> 181 </i> 181 182 </small> 182 183 </gsf:when> … … 187 188 <br/> 188 189 <small> 189 <i>_textnumpages_<gsf:metadata name="NumPages"/></i> 190 <i> 191 <gsf:displayItem name="textnumpages"/> 192 <gsf:metadata name="NumPages"/> 193 </i> 190 194 </small> 191 195 </gsf:when> … … 196 200 <br/> 197 201 <small> 198 <i>_textsource_<gsf:metadata name="Source"/></i> 202 <i> 203 <gsf:displayItem name="textsource"/> 204 <gsf:metadata name="Source"/> 205 </i> 199 206 </small> 200 207 </gsf:when> … … 218 225 <br/> 219 226 <small> 220 <i>_textdate_<gsf:metadata name="Date"/></i> 227 <i> 228 <gsf:displayItem name="textdate"/> 229 <gsf:metadata name="Date"/> 230 </i> 221 231 </small> 222 232 </gsf:when> … … 227 237 <br/> 228 238 <small> 229 <i>_textnumpages_<gsf:metadata name="NumPages"/></i> 239 <i> 240 <gsf:displayItem name="textnumpages"/> 241 <gsf:metadata name="NumPages"/> 242 </i> 230 243 </small> 231 244 </gsf:when> … … 236 249 <br/> 237 250 <small> 238 <i>_textsource_<gsf:metadata name="Source"/></i> 251 <i> 252 <gsf:displayItem name="textsource"/> 253 <gsf:metadata name="Source"/> 254 </i> 239 255 </small> 240 256 </gsf:when> -
documented-examples/trunk/style-e/resources/collectionConfig.properties
r36404 r36437 1 1 name=Cascading Style Sheets<br/> Demo collection 2 textdate=publication date: 3 textnumpages=no. of pages: 4 textsource=source ref: 5 section_chapter=chapter 6 document_book=book 2 7 3 8 dls.Organization=Organizations … … 6 11 index_document=Book 7 12 index_section=Chapter 8 dls.Title ,Title=Titles13 dls.Titles=Titles 9 14 dls.Keyword=How to 10 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"} … … 13 18 shortDescription=<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> 14 19 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 > Format Features > 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>20 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 <tt>Format > Format Features > 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> 16 21 17 22 description2=<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\ … … 23 28 <link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css" \n\ 24 29 title="GS3 Style" id="custom-style" charset="UTF-8"/> \n\ 25 \n\26 30 <script src="{$httpCollection}/script/custom-script.js" type="text/javascript"> \n\ 27 31 </script> \n\ 28 \n\29 32 </xsl\:template> \n\ 30 33 \n\ 31 \n\32 34 <xsl\:template name="create-banner"> \n\ 33 \n\34 35 <div class="choose_style"> \n\ 35 36 Choose a style\: \n\ … … 39 40 <a href="#" onclick="replaceStyle('');return false;">None</a> \n\ 40 41 </div> \n\ 41 \n\42 42 <div id="gs_banner" class="ui-widget-header ui-corner-bottom"> \n\ 43 43 <div id="titlesearchcontainer"> \n\ 44 \n\45 44 <xsl\:call-template name="page-title-area"/> \n\ 46 45 <xsl\:call-template name="quick-search-area"/> \n\ … … 64 63 description4=<p><b>Using a downloaded stylesheet</b> \n\ 65 64 <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/<collection>/style then specify the stylesheet link in the <b>additionalHeaderContent</b> of GLI's <i>global</i> format statement (<pre>Format > Format Features > 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/<collection>/style</tt> then specify the stylesheet link in the <b>additionalHeaderContent</b> of GLI's <i>global</i> format statement (<tt>Format > Format Features > global</tt>) as follows: \n\ 68 67 <pre><xsl\:template name="additionalHeaderContent"> \n\ 69 68 <xsl\:variable name="httpCollection"> \n\
Note:
See TracChangeset
for help on using the changeset viewer.