Changeset 36404


Ignore:
Timestamp:
2022-08-20T17:57:50+12:00 (20 months ago)
Author:
anupama
Message:

On testing the GTI now updated to incorporate the gs3-dec-col-cfgs module (the DEC collection's GS3 display strings), it turns out that GTI doesn't like the quot HTML entity and only the actual doublequote character is accepted. I had thought it would be the other way around. I've now fixed up all the affected DEC collectionConfig.properties files to replace the HTML entity with the doublequote character.

Location:
documented-examples/trunk
Files:
9 edited

Legend:

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

    r36382 r36404  
    1414description3=<p>The authentication scheme controls access to the collection. It works in two steps. First it determines whether to restrict access to the collection as a whole or to individual documents in it, and in the latter case which documents those are (either by giving a list of private documents for which access is to be authenticated, or specifying that all documents are private except for a given list of public documents). Then for access-restricted documents it determines which user groups are to have access.</p>
    1515
    16 description4=<p>Authentication is activated using the <i>&lt;security&gt;</i> XML element in the collectionConfig.xml file. In the example of the authen-e collection, all <i>document</i>s are set to <i>private</i> access by default, with the <i>exception</i> that they are accessible to logged in members of a <i>group</i> called <i>&quot;demo&quot;</i>. The <i>security</i> element further defines a set of documents (<i>documentSet</i>) called &quot;always-public&quot; which contains 2 documents denoted by their document identifiers/OIDs (fb33fe and fb34fe). This documentSet specifies an exceptional case: the documents in the documentSet are <i>not</i> private access like other documents in the collection are by default, but can instead be accessed by anyone in <i>any</i> group, as no group is specified for their access. \n\
    17    <pre>&lt;security default_access=&quot;private&quot; scope=&quot;document&quot;&gt; \n\
     16description4=<p>Authentication is activated using the <i>&lt;security&gt;</i> XML element in the collectionConfig.xml file. In the example of the authen-e collection, all <i>document</i>s are set to <i>private</i> access by default, with the <i>exception</i> that they are accessible to logged in members of a <i>group</i> called <i>"demo"</i>. The <i>security</i> element further defines a set of documents (<i>documentSet</i>) called "always-public" which contains 2 documents denoted by their document identifiers/OIDs (fb33fe and fb34fe). This documentSet specifies an exceptional case: the documents in the documentSet are <i>not</i> private access like other documents in the collection are by default, but can instead be accessed by anyone in <i>any</i> group, as no group is specified for their access. \n\
     17   <pre>&lt;security default_access="private" scope="document"&gt; \n\
    1818        &lt;exception&gt; \n\
    19             &lt;group name=&quot;demo&quot;/&gt; \n\
     19            &lt;group name="demo"/&gt; \n\
    2020        &lt;/exception&gt; \n\
    2121        &lt;exception&gt; \n\
    22             &lt;documentSet name=&quot;always-public&quot;/&gt; \n\
    23             &lt;group name=&quot;&quot;/&gt; \n\
     22            &lt;documentSet name="always-public"/&gt; \n\
     23            &lt;group name=""/&gt; \n\
    2424        &lt;/exception&gt; \n\
    25         &lt;documentSet name=&quot;always-public&quot;&gt; \n\
     25        &lt;documentSet name="always-public"&gt; \n\
    2626            &lt;match&gt;fb33fe&lt;/match&gt; \n\
    2727            &lt;match&gt;fb34fe&lt;/match&gt; \n\
  • documented-examples/trunk/dls-e/resources/collectionConfig.properties

    r36385 r36404  
    1111description1=<h3>How the collection works</h3><p>The DLS collection is fairly complex. If you\'re just starting out you might prefer to look at some other collections first (e.g. <i>Word and PDF demonstration</i>, or the <i>Greenstone Archives</i>, or the <i>Simple Image collection</i>).</p>
    1212
    13 description2=<p>The collection configuration file, <tt>collectionConfig.xml</i>, like all collection configuration files, begins with the <i>creator<i> metadata element that gives the email address of the collection\'s creator, and another metadata (&quot;public&quot;) that determines whether the collection will appear on the home page of the Greenstone installation. Note that setting &quot;public&quot; to &quot;false&quot; only removes it from the home page; it will still be accessible in the library to anyone that knows the URL to the collection.</p>
     13description2=<p>The collection configuration file, <tt>collectionConfig.xml</i>, like all collection configuration files, begins with the <i>creator<i> metadata element that gives the email address of the collection\'s creator, and another metadata ("public") that determines whether the collection will appear on the home page of the Greenstone installation. Note that setting "public" to "false" only removes it from the home page; it will still be accessible in the library to anyone that knows the URL to the collection.</p>
    1414
    15 description3=<p><b>Plugins</b>. The &quot;plugin&quot; lines in the collection configuration file give the plugins used by the collection. The documents in the DLS collection are in HTML, so <i>HTMLPlugin</i> must be included. The <i>description_tags</i> option processes tags in the text that define sections and section titles as described below.</p>
     15description3=<p><b>Plugins</b>. The "plugin" lines in the collection configuration file give the plugins used by the collection. The documents in the DLS collection are in HTML, so <i>HTMLPlugin</i> must be included. The <i>description_tags</i> option processes tags in the text that define sections and section titles as described below.</p>
    1616
    1717description4=<p>The other plugins, <i>GreenstoneXMLPlugin, MetadataXMLPlugin, ArchivesInfPlugin, and DirectoryPlugin</i>, are used by Greenstone for internal purposes and are standard in almost all collections.</p>
    1818
    19 description5=<p><b>Searchable indexes</b>. The block of lines starting with <i>indexes</i> specifies what searchable indexes will be available. In this collection there are three: you can see them when you pull down the &quot;Search for&quot; menu on the collection\'s <tt>search page</tt>. The first index is called &quot;chapters&quot;, the second &quot;section titles&quot;, and the third &quot;entire documents&quot;. The names of these three indexes are given by three properties (section_text, section_Title and document_text) in the translatable <tt>collectionConfig.properties</tt> file located in the collection\'s <tt>resources</tt> subfolder.</p>
     19description5=<p><b>Searchable indexes</b>. The block of lines starting with <i>indexes</i> specifies what searchable indexes will be available. In this collection there are three: you can see them when you pull down the "Search for" menu on the collection\'s <tt>search page</tt>. The first index is called "chapters", the second "section titles", and the third "entire documents". The names of these three indexes are given by three properties (section_text, section_Title and document_text) in the translatable <tt>collectionConfig.properties</tt> file located in the collection\'s <tt>resources</tt> subfolder.</p>
    2020
    2121description6=<p>The contents of the indexes -- that is, the specification of what it is that will be searched -- are defined by the <i>indexes</i> line at the beginning of this block. This specifies three indexes, two at the section level (beginning with <i>section:</i>) and one at the document level (beginning with <i>document:</i>). The difference is that a multi-word query will only match a section-level index if all query terms appear in the same section, whereas it will match a document-level index if the terms appear anywhere within the document (which typically comprises several sections). The first and third indexes are <i>section:text</i> and <i>document:text</i>, and the <i>:text</i> means that the full text of sections and documents respectively will be searched. The second is <i>section:Title</i>, which means that <i>Title</i> metadata will be searched -- in this case, section titles (rather than document titles). The three indexes appear in the order in which they are specified on the <i>indexes</i> line.</p>
    2222
    23 description7=<p><b>Classifiers</b>. The block of lines labeled <i>classify</i> define the browsing indexes, called &quot;classifiers&quot; in Greenstone. There are four of them, corresponding to four buttons on the navigation bar at the top of each page in the collection (e.g. the <tt>search page</tt>): <i>subjects</i>, <i>titles</i>, <i>organisations</i>, and <i>howto</i> The <i>search</i> button comes first, then come the four classifiers, in order.</p>
     23description7=<p><b>Classifiers</b>. The block of lines labeled <i>classify</i> define the browsing indexes, called "classifiers" in Greenstone. There are four of them, corresponding to four buttons on the navigation bar at the top of each page in the collection (e.g. the <tt>search page</tt>): <i>subjects</i>, <i>titles</i>, <i>organisations</i>, and <i>howto</i> The <i>search</i> button comes first, then come the four classifiers, in order.</p>
    2424
    25 description8=<p>The first classifier provides access by subject. It is a <i>Hierarchy</i> classifier whose hierarchy is defined in the file <tt>dls.Subject.txt</tt> (the <i>hfile</i> argument); this file is discussed below. This classifier is based on <i>dls.Subject</i> metadata, and when several books appear at a leaf of the hierarchy they are sorted by <i>dls.Title</i> metadata (as you can see when you open classifier browser <tt>CL1.4.1</tt>).  The second classifier provides access by title. It is also a <i>Hierarchy</i> classifier, this time based on <i>dls.AZList</i> metadata, whose hierarchy is defined in <tt>dls.AZList.txt</tt>. This file is discussed below.  The third provides access by organization: it is a <i>List</i> classifier based on <i>dls.Organization</i> metadata. The <i>-bookshelf_type always</i> option creates a new bookshelf for each organization, even if only one document belongs to that category.  The fourth provides access by &quot;Howto&quot; text: it is a <i>List</i> classifier based on <i>dls.Keyword</i> metadata. The <i>-bookshelf_type never</i> option prevents bookshelves being created even if two documents share the same keywords.</p>
     25description8=<p>The first classifier provides access by subject. It is a <i>Hierarchy</i> classifier whose hierarchy is defined in the file <tt>dls.Subject.txt</tt> (the <i>hfile</i> argument); this file is discussed below. This classifier is based on <i>dls.Subject</i> metadata, and when several books appear at a leaf of the hierarchy they are sorted by <i>dls.Title</i> metadata (as you can see when you open classifier browser <tt>CL1.4.1</tt>).  The second classifier provides access by title. It is also a <i>Hierarchy</i> classifier, this time based on <i>dls.AZList</i> metadata, whose hierarchy is defined in <tt>dls.AZList.txt</tt>. This file is discussed below.  The third provides access by organization: it is a <i>List</i> classifier based on <i>dls.Organization</i> metadata. The <i>-bookshelf_type always</i> option creates a new bookshelf for each organization, even if only one document belongs to that category.  The fourth provides access by "Howto" text: it is a <i>List</i> classifier based on <i>dls.Keyword</i> metadata. The <i>-bookshelf_type never</i> option prevents bookshelves being created even if two documents share the same keywords.</p>
    2626
    2727description9=<p><b>Cover images</b>. Greenstone looks for a cover image for each document, whose name is the same as the document\'s but with a <i>.jpg</i> extension. This image is associated with the document, and may be displayed on the document page (see below). Cover images can be switched off by setting the -no_cover_image flag for each plugin.</p>
    2828
    29 description10=<p><b>Format statements</b>. The <i>format</i> elements (&ltformat;&gt;, &lt;browse&gt;, &lt;search&gt; and &lt;display&gt; XML elements), called &quot;format statements&quot;, govern how various parts of the collection should be displayed. The <i>VList</i> format statement applies to lists of items displayed vertically, such as the lists of titles, subjects and organisations, and the table of contents for the target documents. It is overridden for the search results list by the <i>SearchVList</i> format statement, and also for the <i>Howto</i> classifier by the <i>CL4VList</i> statement (CL4 specifies the fourth classifier).</p>
     29description10=<p><b>Format statements</b>. The <i>format</i> elements (&ltformat;&gt;, &lt;browse&gt;, &lt;search&gt; and &lt;display&gt; XML elements), called "format statements", govern how various parts of the collection should be displayed. The <i>VList</i> format statement applies to lists of items displayed vertically, such as the lists of titles, subjects and organisations, and the table of contents for the target documents. It is overridden for the search results list by the <i>SearchVList</i> format statement, and also for the <i>Howto</i> classifier by the <i>CL4VList</i> statement (CL4 specifies the fourth classifier).</p>
    3030
    3131description11=<p>The <i>DocumentText</i> statement governs how the document text is formatted, with <i>Title</i> metadata ([<i>Title</i>]) in HTML <i>heading</i> format followed by the text of the document [<i>Text</i>]. By default, cover images are shown with each document (<i>DocumentImages</i>), and the <i>DocumentButtons</i> are available: the <i>Expand Text, Expand Contents, Detach</i> and <i>Highlight</i> buttons are shown with each document.</p>
     
    3535description13=<p><b>Collection-level metadata</b>. The <i>&lt;displayItem&gt;</i> elements under the top-level <i>&lt;displayItemList&gt;</i> in the configuration file are also standard in all Greenstone collections. They give general information about the collection, defining its name, and a description that appears on its home page. The description text (defined in the translatable <tt>resources/collectionConfig.properties</i> files) can be seen on the DLS collection\'s home page (this text is part of it).</p>
    3636
    37 description14=<p><b>Language translations</b>. In the collection configuration file, lines that look like <tt>&lt;displayItem assigned=&quot;true&quot; dictionary=&quot;collectionConfig&quot; key=&quot;...&quot; name=&quot;...&quot;/&gt;</tt> allow for translatable collection-level metadata, that are defined in the <tt>resources/collectionConfig.properties</tt> text files and can be translated in the same location such as by creating French and Spanish versions (in <tt>resources/collectionConfig_fr.properties</tt> and <tt>resources/collectionConfig_es.properties</tt>, respectively). Note that we advise translators to go through the GTI (Greenstone Translation Interface) system if they want to contribute translations to Greenstone as used by everyone, such as translations to Greenstone\'s demo collections and these documented example collections. The properties files allow for accented characters (e.g. French <i>é</i>). The files are in UTF-8, and these characters are represented by multi-byte sequences (&lt;C3&gt;&lt;A9&gt; in this case). Alternatively they could be represented by their HTML entity names (like <i>&amp;eacute</i>). It makes no difference for how they appear on the screen.</p>
     37description14=<p><b>Language translations</b>. In the collection configuration file, lines that look like <tt>&lt;displayItem assigned="true" dictionary="collectionConfig" key="..." name="..."/&gt;</tt> allow for translatable collection-level metadata, that are defined in the <tt>resources/collectionConfig.properties</tt> text files and can be translated in the same location such as by creating French and Spanish versions (in <tt>resources/collectionConfig_fr.properties</tt> and <tt>resources/collectionConfig_es.properties</tt>, respectively). Note that we advise translators to go through the GTI (Greenstone Translation Interface) system if they want to contribute translations to Greenstone as used by everyone, such as translations to Greenstone\'s demo collections and these documented example collections. The properties files allow for accented characters (e.g. French <i>é</i>). The files are in UTF-8, and these characters are represented by multi-byte sequences (&lt;C3&gt;&lt;A9&gt; in this case). Alternatively they could be represented by their HTML entity names (like <i>&amp;eacute</i>). It makes no difference for how they appear on the screen.</p>
    3838
    39 description15=<p><b>Description tags</b>. The description tags recognized by <i>HTMLPlugin</i> are inserted into the HTML source text of the documents to define where sections begin and end, and to specify section titles. They look like this: <pre> &lt;!-- &lt;Section&gt; &lt;Description&gt; &lt;Metadata name=&quot;Title&quot;&gt; Realizing human rights for poor people: Strategies for achieving the international development targets &lt;/Metadata&gt; &lt;/Description&gt; --&gt; (text of section goes here) &lt;!-- &lt;/Section&gt; --> </pre> The &lt;!-- ... --&gt; markers are used to ensure that these tags are marked as comments in HTML and therefore do not affect document formatting. In the <i>Description</i> part other kinds of metadata can be specified, but this is not done for the style of collection we are describing here. Exactly the same specification (including the &lt;!-- ... --&gt markers) can be used in Word documents too.</p>
     39description15=<p><b>Description tags</b>. The description tags recognized by <i>HTMLPlugin</i> are inserted into the HTML source text of the documents to define where sections begin and end, and to specify section titles. They look like this: <pre> &lt;!-- &lt;Section&gt; &lt;Description&gt; &lt;Metadata name="Title"&gt; Realizing human rights for poor people: Strategies for achieving the international development targets &lt;/Metadata&gt; &lt;/Description&gt; --&gt; (text of section goes here) &lt;!-- &lt;/Section&gt; --> </pre> The &lt;!-- ... --&gt; markers are used to ensure that these tags are marked as comments in HTML and therefore do not affect document formatting. In the <i>Description</i> part other kinds of metadata can be specified, but this is not done for the style of collection we are describing here. Exactly the same specification (including the &lt;!-- ... --&gt markers) can be used in Word documents too.</p>
    4040
    4141description16=<p><b>Metadata Files</b>. Metadata for all documents in the DLS collection is provided in metadata.xml files, one per document folder. In this collection\'s <tt>import/r0087e</tt> is the <tt>metadata.xml</tt> file for one book -- <i>Income generation and money management: training women as entrepreneurs</i> -- which is a block of about ten lines encased in &lt;<i>FileSet</i>&gt; ... &lt;<i>/FileSet</i>&gt; tags. It defines <i>dls.Title</i>, <i>dls.Language</i>, <i>dls.Subject</i> and <i>dls.AZList</i> metadata. More than one value can be specified for any metadata item. For example, this book has two dls.Subject classifications. Both of these are stored as metadata values for this particular document (because <i>mode=accumulate</i> is specified; the alternative, and the default, is <i>mode=override</i>).</p>
     
    4444
    4545description18=<p>For example, the following shows three lines from the subject hierarchy file <tt>dls.Subject.txt</tt>. \n\
    46 <pre> &quot;Animal Husbandry and Animal Product Processing &quot; \n\
    47 &quot;Animal Husbandry and Animal Product Processing &quot;   &quot;Animal Husbandry and Animal Product Processing|Cattle &quot; \n\
    48 7.1  &quot;Cattle &quot;   &quot;Animal Husbandry and Animal Product Processing|Other animals (micro-livestock, little known animals,  silkworms, reptiles, frogs, snails, game, etc.) &quot; \n\
    49 7.2  &quot;Other animals (micro-livestock, little known animals,  silkworms, reptiles, frogs, snails, game, etc.) &quot; \n\
     46<pre> "Animal Husbandry and Animal Product Processing " \n\
     47"Animal Husbandry and Animal Product Processing "   "Animal Husbandry and Animal Product Processing|Cattle " \n\
     487.1  "Cattle "   "Animal Husbandry and Animal Product Processing|Other animals (micro-livestock, little known animals,  silkworms, reptiles, frogs, snails, game, etc.) " \n\
     497.2  "Other animals (micro-livestock, little known animals,  silkworms, reptiles, frogs, snails, game, etc.) " \n\
    5050</pre> \n\
    5151</p>
    5252
    53 description19=<p>These three lines define one top level bookshelf (at position 7), titled  &quot;Animal Husbandry and Animal Product Processing &quot;, with two bookshelves underneath it, titled  &quot;Cattle &quot; and  &quot;Other animals (micro-livestock, little known animals, silkworms, reptiles, frogs, snails, game, etc.) &quot; respectively.</p>
     53description19=<p>These three lines define one top level bookshelf (at position 7), titled  "Animal Husbandry and Animal Product Processing ", with two bookshelves underneath it, titled  "Cattle " and  "Other animals (micro-livestock, little known animals, silkworms, reptiles, frogs, snails, game, etc.) " respectively.</p>
    5454
    55 description20=<p>In this case, the first strings (and therefore the entries in metadata.xml files) contain the entire hierarchy values. Levels in the hierarchy are separated by  &quot;| &quot;. They could be used directly by a <i>Hierarchy</i> classifier without the use of the hierarchy file. However, then the entries would be ordered alphabetically, not in the special order defined by the file.</p>
     55description20=<p>In this case, the first strings (and therefore the entries in metadata.xml files) contain the entire hierarchy values. Levels in the hierarchy are separated by  "| ". They could be used directly by a <i>Hierarchy</i> classifier without the use of the hierarchy file. However, then the entries would be ordered alphabetically, not in the special order defined by the file.</p>
    5656
    5757description21=<p>The <tt>dls.AZList.txt</tt> hierarchy file used by the titles classifier contains a similar structure. Ordinarily, a titles browser would use a <i>List</i> (or <i>AZList</i>) classifier. In this case, we want to predefine the A-Z groupings, and include a separate entry for periodicals, as can be seen in classifier browser <tt>CL2.7</tt>.</p>
  • documented-examples/trunk/garish-e/resources/collectionConfig.properties

    r36376 r36404  
    1414
    1515description2=<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:</p><pre>\
    16   &lt;xsl:template name=&quot;additionalHeaderContent&quot;&gt; \n\
    17     &lt;xsl:variable name=&quot;httpCollection&quot;&gt; \n\
    18       &lt;xsl:value-of select=&quot;/page/pageResponse/collection/metadataList/metadata[@name='httpPath']&quot;/&gt; \n\
     16  &lt;xsl:template name="additionalHeaderContent"&gt; \n\
     17    &lt;xsl:variable name="httpCollection"&gt; \n\
     18      &lt;xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/&gt; \n\
    1919    &lt;/xsl:variable&gt; \n\
    20     &lt;link href=&quot;{$httpCollection}/style/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt; \n\   
     20    &lt;link href="{$httpCollection}/style/style.css" rel="stylesheet" type="text/css"/&gt; \n\   
    2121  &lt;/xsl:template&gt; \n\
    2222</pre>
  • documented-examples/trunk/gsarch-e/resources/collectionConfig.properties

    r36387 r36404  
    1414description2=<p>The collection configuration file, <tt>etc/collectionConfig.xml</tt>, begins with the specification <i>groupsize 200</i>. This groups documents together into groups of 200. Email collections typically have many small documents, and grouping them together prevents Greenstone's internal file structures from becoming bloated and occupying more disk space than necessary. Notice that the <i>Email</i> plugin first splits the input files up into individual Emails, then <i>groupsize</i> groups them together again. This allows the collection designer to control what is going on.</p>
    1515
    16 description3=<p>The <i>indexes</i> line specifies 3 searchable indexes, which can be seen by clicking beside the word &quot;Messages&quot; on the <tt>search page</tt> to reveal a drop-down menu. The first (called <i>Messages</i>) is created from the document text, while the others are formed from <i>From</i> and <i>Subject</i> metadata.</p>
     16description3=<p>The <i>indexes</i> line specifies 3 searchable indexes, which can be seen by clicking beside the word "Messages" on the <tt>search page</tt> to reveal a drop-down menu. The first (called <i>Messages</i>) is created from the document text, while the others are formed from <i>From</i> and <i>Subject</i> metadata.</p>
    1717
    18 description4=<p>There are three classifiers, based on <i>Subject</i>, <i>FromName</i>, and <i>Date</i> metadata. The <i>AZCompactList</i> classifier used for the first two is like <i>AZList</i> but generates a bookshelf for duplicate items, as illustrated <tt>with classifier browser CL1</tt>. This is represented by a tree structure whose nodes are either leaf nodes, representing documents, or internal nodes. A metadata item called numleafdocs gives the total number of documents below an internal node. The format statement for the first classifier, called <i>CL1Vlist</i>, checks whether this item exists. If so the node must be an internal one, in which case it is labeled by its <i>Title</i>. Otherwise the node's label starts with the <i>Subject</i> which links to the document, then gives <i>FromName</i> metadata, with a link to &quot;Search by Sender&quot;, followed by the <i>DateText</i>.</p>
     18description4=<p>There are three classifiers, based on <i>Subject</i>, <i>FromName</i>, and <i>Date</i> metadata. The <i>AZCompactList</i> classifier used for the first two is like <i>AZList</i> but generates a bookshelf for duplicate items, as illustrated <tt>with classifier browser CL1</tt>. This is represented by a tree structure whose nodes are either leaf nodes, representing documents, or internal nodes. A metadata item called numleafdocs gives the total number of documents below an internal node. The format statement for the first classifier, called <i>CL1Vlist</i>, checks whether this item exists. If so the node must be an internal one, in which case it is labeled by its <i>Title</i>. Otherwise the node's label starts with the <i>Subject</i> which links to the document, then gives <i>FromName</i> metadata, with a link to "Search by Sender", followed by the <i>DateText</i>.</p>
    1919
    20 description5=<p>The second classifier (<i>CL2Vlist</i>) is similar, but shows slightly different information -- the result can be seen <tt>with classifier browser CL2</tt>. For internal nodes, the actual number of leaf documents (<i>numleafdocs</i>) is given in parentheses after the <i>Title</i>. For document nodes the <i>FromName</i>, with a link to &quot;Search By Sender&quot;, <i>Subject</i> (linked to the document), and <i>DateText</i> metadata is shown.</p>
     20description5=<p>The second classifier (<i>CL2Vlist</i>) is similar, but shows slightly different information -- the result can be seen <tt>with classifier browser CL2</tt>. For internal nodes, the actual number of leaf documents (<i>numleafdocs</i>) is given in parentheses after the <i>Title</i>. For document nodes the <i>FromName</i>, with a link to "Search By Sender", <i>Subject</i> (linked to the document), and <i>DateText</i> metadata is shown.</p>
    2121
    2222description6=<p>The third classifier is a <i>DateList</i>, which allows selection by month and year.</p>
    2323
    24 description7=<p>Finally, the document text is formatted to show the header fields (<i>FromName</i>, <i>DateText</i>, <i>Subject</i>, <i>InReplyTo</i>), followed by the message text (written as <i>lt;gsf:metadata name=&quot;rawtext&quot;/&gt;</i> in the format statement). <i>FromName</i> is linked to a search on that name, while <i>InReplyTo</i> links to the email message that it refers to.</p>
     24description7=<p>Finally, the document text is formatted to show the header fields (<i>FromName</i>, <i>DateText</i>, <i>Subject</i>, <i>InReplyTo</i>), followed by the message text (written as <i>lt;gsf:metadata name="rawtext"/&gt;</i> in the format statement). <i>FromName</i> is linked to a search on that name, while <i>InReplyTo</i> links to the email message that it refers to.</p>
  • documented-examples/trunk/lomdemo-e/resources/collectionConfig.properties

    r36397 r36404  
    1212description1=<p>Traditional educational learning object repositories base searching and browsing around the provided metadata. This demonstration collection goes one step further and provides <i>full-text</i> indexing of the on-line resources, where possible.</p>
    1313
    14 description2=<p>Browse around the collection's items ordered by subject then title, or view the items chronologically. Alternatively search the text or titles of the items in the collection, optionally restricted to arts or science. When you view an item from the collection various views of it are available. You start by viewing its Learning Object Metadata (LOM) record in a tabulated form and divided into sections: these sections can be expanded or contracted to reveal more or less information as desired. Use the tabs at the top of the table to change the view of the learning object. There will always be a tab for &quot;XML Record&quot; which displays the metadata in its original IEEE LOM format. Depending on whether or not the learning object references an on-line resource that is available for indexing, a third tab may be present that displays the source document.</p>
     14description2=<p>Browse around the collection's items ordered by subject then title, or view the items chronologically. Alternatively search the text or titles of the items in the collection, optionally restricted to arts or science. When you view an item from the collection various views of it are available. You start by viewing its Learning Object Metadata (LOM) record in a tabulated form and divided into sections: these sections can be expanded or contracted to reveal more or less information as desired. Use the tabs at the top of the table to change the view of the learning object. There will always be a tab for "XML Record" which displays the metadata in its original IEEE LOM format. Depending on whether or not the learning object references an on-line resource that is available for indexing, a third tab may be present that displays the source document.</p>
    1515
    1616description3=<h3>How the collection works</h3><p>The records were exported from the Calgary Repository in LOM format. LOMPlugin is used to process the records. Using the <tt>-download_srcdocs</tt> option to the plugin will search for <tt>general^identifier^entry</tt> or <tt>technical^location</tt>, and attempt to download the source document into a <i>_gsdldown.all</i> folder (<tt>import/arts/_gsdldown.all</tt>) in the same folder as the LOM record.</p>
     
    1818description4=<p>In porting the lomdemo-e collection from Greenstone 2 (GS2) to Greenstone 3, the predefined GS2 macros of <i>_httpopenmdicon_</i> and <i>httpclosemdicon_</i>, used to show and hide sections of the tabular display of LOM metadata, needed to be defined in <tt>siteConfig.xml</tt> by inserting the following 2 lines into the file: \n\
    1919<pre> \n\
    20 &lt;replace macro=&quot;_httpopenmdicon_&quot; scope=&quot;metadata&quot; text=&quot;sites/localsite/collect/lomdemo-e/images/open.gif&quot; data-img-path=&quot;sites/localsite/collect/lomdemo-e/images/&quot; resolve="false"/&gt; \n\
     20&lt;replace macro="_httpopenmdicon_" scope="metadata" text="sites/localsite/collect/lomdemo-e/images/open.gif" data-img-path="sites/localsite/collect/lomdemo-e/images/" resolve="false"/&gt; \n\
    2121\n\
    22 &lt;replace macro=&quot;_httpclosemdicon_&quot; scope=&quot;metadata&quot; text=&quot;sites/localsite/collect/lomdemo-e/images/close.gif&quot; data-img-path=&quot;sites/localsite/collect/lomdemo-e/images/&quot; resolve="false"/&gt;
     22&lt;replace macro="_httpclosemdicon_" scope="metadata" text="sites/localsite/collect/lomdemo-e/images/close.gif" data-img-path="sites/localsite/collect/lomdemo-e/images/" resolve="false"/&gt;
    2323</pre> \n\
    2424</p>
  • documented-examples/trunk/marc-e/resources/collectionConfig.properties

    r36394 r36404  
    1010description2=<p>The <i>VList</i> format statement controls the display of search results and all classifiers. For bookshelves, the number of leaf documents is displayed on the right-hand side. For documents, <i>dc.Title</i> is displayed, along with <i>dc.Creator</i> and <i>dc.Publisher</i>. <i>[sibling:dc.Creator]</i> is used as dc.Creator has multiple values, and specifies that all values be output, not just the first one.</p>
    1111
    12 description3=<p>The MARC plugin uses a special file to map MARC field numbers to Greenstone-style metadata. This file resides in the <i>greenstone/etc</i> directory, and is called <tt>marc2dc.txt</tt>. It lists the correspondences between MARC field numbers and Greenstone metadata. Any MARC fields that are not listed simply do not appear as metadata, though they are still present in the Greenstone document. Each line in the file has the format <blockquote> &lt;MARC field number&gt; -&gt; GreenstoneMetadataName </blockquote> Lines in the file that begin with &quot;\#&quot; are comments.</p>
     12description3=<p>The MARC plugin uses a special file to map MARC field numbers to Greenstone-style metadata. This file resides in the <i>greenstone/etc</i> directory, and is called <tt>marc2dc.txt</tt>. It lists the correspondences between MARC field numbers and Greenstone metadata. Any MARC fields that are not listed simply do not appear as metadata, though they are still present in the Greenstone document. Each line in the file has the format <blockquote> &lt;MARC field number&gt; -&gt; GreenstoneMetadataName </blockquote> Lines in the file that begin with "\#" are comments.</p>
    1313
    1414description4=<p>The standard version of this file is loosely based on the MARC to Dublin Core mapping found at <a href="http://www.loc.gov/marc/marc2dc.html">http://www.loc.gov/marc/marc2dc.html</a> (which assumes USMARC/MARC21).</p>
    1515
    16 description5=<p>Multiple MARC fields may map to a single Dublin Core field. For example, fields 720 (&quot;Uncontrolled name&quot;), 100 (&quot;Personal name&quot;), 110 (&quot;Corporate name&quot;) and 111 (&quot;Meeting name&quot;) all map to <i>dc.Creator</i>. Actual MARC records normally define only one of these fields, and anyway Greenstone allows multi-valued metadata.</p>
     16description5=<p>Multiple MARC fields may map to a single Dublin Core field. For example, fields 720 ("Uncontrolled name"), 100 ("Personal name"), 110 ("Corporate name") and 111 ("Meeting name") all map to <i>dc.Creator</i>. Actual MARC records normally define only one of these fields, and anyway Greenstone allows multi-valued metadata.</p>
    1717
    18 description6=<p>Some mappings are dependent on subfields. For example, MARC field 260 contains information about publication and distribution. Subfields &quot;c&quot; (Date of Publication) and &quot;g&quot; (Date of manufacture) are mapped to <i>dc.Date</i>, using the following mapping line: <blockquote> 260$c$g -&gt; dc.Date </blockquote>  Greenstone also provides a file for mapping MARC to <b>qualified</b> dublin core: <tt>greenstone/etc/marc2qdc.txt</tt>. This can be used by the MARC plugin by setting the <i>-metadata_mapping_file</i> option to &quot;marc2qdc.txt&quot;.</p>
     18description6=<p>Some mappings are dependent on subfields. For example, MARC field 260 contains information about publication and distribution. Subfields "c" (Date of Publication) and "g" (Date of manufacture) are mapped to <i>dc.Date</i>, using the following mapping line: <blockquote> 260$c$g -&gt; dc.Date </blockquote>  Greenstone also provides a file for mapping MARC to <b>qualified</b> dublin core: <tt>greenstone/etc/marc2qdc.txt</tt>. This can be used by the MARC plugin by setting the <i>-metadata_mapping_file</i> option to "marc2qdc.txt".</p>
  • documented-examples/trunk/oai-e/resources/collectionConfig.properties

    r36395 r36404  
    2525description6=<p>The collection configuration file, <tt>collectionConfig.xml</tt>, specifies a single full-text index containing <i>dc.Description</i> metadata and overrides Greenstone\'s custom <i>gsf</i> format templates <tt>DocumentHeading</tt> and <tt>DocumentContent</tt> (XSL). When a document is displayed, the <i>DocumentHeading</i> format statement puts out its <i>dc.Subject</i>. Then the <i>DocumentContent</i> statement follows this with <i>screenicon</i>, which is produced by <i>ImagePlugin</i> and gives a screen-resolution version of the image; it can be hyperlinked to the <i>dc.OrigURL</i> metadata -- that is, the original version of the image on the remote OAI site. Since this is no longer available on the web, it is now hyperlinked to the full version of the image file. This is followed by the image\'s <i>dc.Description</i>, also with a hyperlink; the image\'s size and type, again generated as metadata by <i>ImagePlugin</i>; and then <i>dc.Subject</i>, <i>dc.Publisher</i>, and <i>dc.Rights</i> metadata. <a href="_sampleoid_">This</a> is the result.</p>
    2626
    27 description7=<p>There are two browsing classifiers, one based on <i>dc.Subject</i> metadata and the other on <i>dc.Description</i> metadata (but with a button named &quot;captions&quot;). Recall that the <i>AZCompactList</i> classifier is like <i>AZList</i> but generates a bookshelf for duplicate items. In this collection there are a lot of images but only a few different values for <i>dc.Subject</i> metadata.</p>
     27description7=<p>There are two browsing classifiers, one based on <i>dc.Subject</i> metadata and the other on <i>dc.Description</i> metadata (but with a button named "captions"). Recall that the <i>AZCompactList</i> classifier is like <i>AZList</i> but generates a bookshelf for duplicate items. In this collection there are a lot of images but only a few different values for <i>dc.Subject</i> metadata.</p>
    2828
    2929description8=<p>It\'s a little surprising that <i>AZCompactList</i> is used (instead of <i>AZList</i>) for the <i>dc.Description</i> index too, because <i>dc.Description</i> metadata is usually unique for each image. However, in this collection the same description has occasionally been given to several images, and some of the divisions in an <i>AZList</i> would contain a large number of images, slowing down transmission of that page. To avoid this, the compact version of the list is used with some arguments (<i>mincompact</i>, <i>maxcompact</i>, <i>mingroup</i>, <i>minnesting</i>) to control the display -- e.g. groups (represented by bookshelves) are not formed unless they have at least 5 (<i>mingroup</i>) items. To find out the meaning of the other arguments for this classifier, execute the command <i>classinfo.pl AZCompactList</i>. The programs <i>classinfo.pl</i> (for classifiers) and <i>pluginfo.pl</i> (for plugins) are useful tools for learning about the capabilities of Greenstone modules. Note incidentally the backslash in the configuration file, used to indicate a continuation of the previous line.</p>
     
    3131description9=<p>The <i>VList</i> format specification shows the image thumbnail, hyperlinked to the associated document, followed by <i>dc.Description</i> metadata; the result can be seen in the <tt>CL2</tt> classifier browser. The <i>Vlists</i> for the classifiers use <i>numleafdocs</i> to switch between an icon representing several documents (which will appear as a bookshelf) and the thumbnail itself, if there is only one image.</p>
    3232
    33 description10=<h3>The Greenstone OAI server</h3><p>Greenstone comes with a built-in OAI data provider. This runs as a CGI program called &quot;oaiserver.cgi&quot;, and is installed in the Greenstone <i>cgi-bin</i> directory. It can be accessed via the same URL as the Greenstone library (replacing &quot;library.cgi&quot; with &quot;oaiserver.cgi&quot;). If you are using the Windows local library server, you must install a web server (such as Apache) to run the OAI server.</p>
     33description10=<h3>The Greenstone OAI server</h3><p>Greenstone comes with a built-in OAI data provider. This runs as a CGI program called "oaiserver.cgi", and is installed in the Greenstone <i>cgi-bin</i> directory. It can be accessed via the same URL as the Greenstone library (replacing "library.cgi" with "oaiserver.cgi"). If you are using the Windows local library server, you must install a web server (such as Apache) to run the OAI server.</p>
    3434
    3535description11=<p>Configuration of the server is done via the <i>oai.cfg</i> file in the Greenstone <i>etc</i> directory. This file specifies general information about the repository, and lists collections to be made accessible to OAI clients. By default, collections are not accessible. To enable a collection, add its name to the <i>oaicollection</i> list.</p>
  • documented-examples/trunk/style-e/resources/collectionConfig.properties

    r36392 r36404  
    1717description2=<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\
    1818<pre> \n\
    19   &lt;xsl\:template name=&quot;additionalHeaderContent&quot;&gt; \n\
    20     &lt;xsl\:variable name=&quot;httpCollection&quot;&gt; \n\
    21       &lt;xsl\:value-of select=&quot;/page/pageResponse/collection/metadataList/metadata[@name='httpPath']&quot;/&gt; \n\
     19  &lt;xsl\:template name="additionalHeaderContent"&gt; \n\
     20    &lt;xsl\:variable name="httpCollection"&gt; \n\
     21      &lt;xsl\:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/&gt; \n\
    2222    &lt;/xsl\:variable&gt; \n\
    23     &lt;link rel=&quot;stylesheet&quot; href=&quot;{$httpCollection}/style/gs3-style-default-extra.css&quot; type=&quot;text/css&quot;  \n\
    24        title=&quot;GS3 Style&quot; id=&quot;custom-style&quot; charset=&quot;UTF-8&quot;/&gt; \n\
     23    &lt;link rel="stylesheet" href="{$httpCollection}/style/gs3-style-default-extra.css" type="text/css"  \n\
     24       title="GS3 Style" id="custom-style" charset="UTF-8"/&gt; \n\
    2525         \n\
    26     &lt;script src=&quot;{$httpCollection}/script/custom-script.js&quot; type=&quot;text/javascript&quot;&gt; \n\
     26    &lt;script src="{$httpCollection}/script/custom-script.js" type="text/javascript"&gt; \n\
    2727    &lt;/script&gt; \n\
    2828 \n\
     
    3030 \n\
    3131 \n\
    32   &lt;xsl\:template name=&quot;create-banner&quot;&gt;   \n\
     32  &lt;xsl\:template name="create-banner"&gt;   \n\
    3333     \n\
    34     &lt;div class=&quot;choose_style&quot;&gt; \n\
     34    &lt;div class="choose_style"&gt; \n\
    3535        Choose a style\: \n\
    36         &lt;a href=&quot;#&quot; onclick=&quot;replaceStyle('gs3-style-default-extra');return false;&quot;&gt;Default Greenstone&lt;/a&gt;, \n\
    37         &lt;a href=&quot;#&quot; onclick=&quot;replaceStyle('gs3-style-blue');return false;&quot;&gt;Blue&lt;/a&gt;, \n\
    38         &lt;a href=&quot;#&quot; onclick=&quot;replaceStyle('gs3-style-olive-purple');return false;&quot;&gt;OlivePurple&lt;/a&gt;,      \n\
    39         &lt;a href=&quot;#&quot; onclick=&quot;replaceStyle('');return false;&quot;&gt;None&lt;/a&gt; \n\
     36        &lt;a href="#" onclick="replaceStyle('gs3-style-default-extra');return false;"&gt;Default Greenstone&lt;/a&gt;, \n\
     37        &lt;a href="#" onclick="replaceStyle('gs3-style-blue');return false;"&gt;Blue&lt;/a&gt;, \n\
     38        &lt;a href="#" onclick="replaceStyle('gs3-style-olive-purple');return false;"&gt;OlivePurple&lt;/a&gt;,      \n\
     39        &lt;a href="#" onclick="replaceStyle('');return false;"&gt;None&lt;/a&gt; \n\
    4040        &lt;/div&gt; \n\
    4141         \n\
    42     &lt;div id=&quot;gs_banner&quot; class=&quot;ui-widget-header ui-corner-bottom&quot;&gt;         \n\
    43       &lt;div id=&quot;titlesearchcontainer&quot;&gt; \n\
     42    &lt;div id="gs_banner" class="ui-widget-header ui-corner-bottom"&gt;         \n\
     43      &lt;div id="titlesearchcontainer"&gt; \n\
    4444       \n\
    45     &lt;xsl\:call-template name=&quot;page-title-area&quot;/&gt;     \n\
    46     &lt;xsl\:call-template name=&quot;quick-search-area&quot;/&gt; \n\
    47     &lt;div style=&quot;clear\:both;&quot;&gt;&lt;xsl\:text&gt; &lt;/xsl\:text&gt;&lt;/div&gt;   \n\
     45    &lt;xsl\:call-template name="page-title-area"/&gt;   \n\
     46    &lt;xsl\:call-template name="quick-search-area"/&gt; \n\
     47    &lt;div style="clear\:both;"&gt;&lt;xsl\:text&gt; &lt;/xsl\:text&gt;&lt;/div&gt;     \n\
    4848      &lt;/div&gt; \n\
    49       &lt;xsl\:call-template name=&quot;browsing-tabs&quot;/&gt;     \n\
     49      &lt;xsl\:call-template name="browsing-tabs"/&gt;   \n\
    5050    &lt;/div&gt; \n\
    5151  &lt;/xsl\:template&gt; \n\
     
    6666<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\
    6767<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\
    68 <pre>&lt;xsl\:template name=&quot;additionalHeaderContent&quot;&gt; \n\
    69     &lt;xsl\:variable name=&quot;httpCollection&quot;&gt; \n\
    70       &lt;xsl\:value-of select=&quot;/page/pageResponse/collection/metadataList/metadata[@name='httpPath']&quot;/&gt; \n\
     68<pre>&lt;xsl\:template name="additionalHeaderContent"&gt; \n\
     69    &lt;xsl\:variable name="httpCollection"&gt; \n\
     70      &lt;xsl\:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/&gt; \n\
    7171    &lt;/xsl\:variable&gt; \n\
    72     &lt;link href=&quot;{$httpCollection}/style/stylesheet-name.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt; \n\
     72    &lt;link href="{$httpCollection}/style/stylesheet-name.css" rel="stylesheet" type="text/css"/&gt; \n\
    7373&lt;/xsl\:template&gt;</pre> \n\
    7474</li> \n\
  • documented-examples/trunk/wrdpdf-e/resources/collectionConfig.properties

    r36399 r36404  
    2121<pre> \n\
    2222&lt;format&gt; \n\
    23     &lt;gsf:template match=&quot;documentNode&quot;&gt; \n\
    24         &lt;gsf:format-gs2&gt;&lt;![CDATA[&lt;td valign=&quot;top&quot;&gt;[link][icon][/link]&lt;/td&gt; \n\
    25 &lt;td valign=&quot;top&quot;&gt;[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]&lt;/td&gt; \n\
    26 &lt;td valign=&quot;top&quot;&gt;[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}&lt;/td&gt;]]&gt;&lt;/gsf:format-gs2&gt; \n\
    27         &lt;td valign=&quot;top&quot;&gt; \n\
    28             &lt;gsf:link type=&quot;document&quot;&gt; \n\
    29                 &lt;gsf:icon type=&quot;document&quot;/&gt; \n\
     23    &lt;gsf:template match="documentNode"&gt; \n\
     24        &lt;gsf:format-gs2&gt;&lt;![CDATA[&lt;td valign="top"&gt;[link][icon][/link]&lt;/td&gt; \n\
     25&lt;td valign="top"&gt;[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]&lt;/td&gt; \n\
     26&lt;td valign="top"&gt;[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} [/highlight]{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}&lt;/td&gt;]]&gt;&lt;/gsf:format-gs2&gt; \n\
     27        &lt;td valign="top"&gt; \n\
     28            &lt;gsf:link type="document"&gt; \n\
     29                &lt;gsf:icon type="document"/&gt; \n\
    3030            &lt;/gsf:link&gt; \n\
    3131        &lt;/td&gt; \n\
    32         &lt;td valign=&quot;top&quot;&gt; \n\
    33             &lt;gsf:link type=&quot;source&quot;&gt; \n\
     32        &lt;td valign="top"&gt; \n\
     33            &lt;gsf:link type="source"&gt; \n\
    3434                &lt;gsf:choose-metadata&gt; \n\
    35                     &lt;gsf:metadata name=&quot;thumbicon&quot;/&gt; \n\
    36                     &lt;gsf:metadata name=&quot;srcicon&quot;/&gt; \n\
     35                    &lt;gsf:metadata name="thumbicon"/&gt; \n\
     36                    &lt;gsf:metadata name="srcicon"/&gt; \n\
    3737                &lt;/gsf:choose-metadata&gt; \n\
    3838            &lt;/gsf:link&gt; \n\
    3939        &lt;/td&gt; \n\
    40         &lt;td valign=&quot;top&quot;&gt; \n\
    41             &lt;span class=&quot;highlight&quot;&gt; \n\
    42                 &lt;gsf:choose-metadata&gt;&lt;gsf:metadata name=&quot;dc.Title&quot;/&gt;&lt;gsf:metadata name=&quot;exp.Title&quot;/&gt;&lt;gsf:metadata name=&quot;Title&quot;/&gt;Untitled&lt;/gsf:choose-metadata&gt; \n\
     40        &lt;td valign="top"&gt; \n\
     41            &lt;span class="highlight"&gt; \n\
     42                &lt;gsf:choose-metadata&gt;&lt;gsf:metadata name="dc.Title"/&gt;&lt;gsf:metadata name="exp.Title"/&gt;&lt;gsf:metadata name="Title"/&gt;Untitled&lt;/gsf:choose-metadata&gt; \n\
    4343            &lt;/span&gt; \n\
    4444            &lt;gsf:switch&gt; \n\
    45                 &lt;gsf:metadata name=&quot;Source&quot;/&gt; \n\
    46                 &lt;gsf:when test=&quot;exists&quot;&gt; \n\
     45                &lt;gsf:metadata name="Source"/&gt; \n\
     46                &lt;gsf:when test="exists"&gt; \n\
    4747                    &lt;br/&gt; \n\
    48                     &lt;i&gt;(&lt;gsf:metadata name=&quot;Source&quot;/&gt;)&lt;/i&gt; \n\
     48                    &lt;i&gt;(&lt;gsf:metadata name="Source"/&gt;)&lt;/i&gt; \n\
    4949                &lt;/gsf:when&gt; \n\
    5050            &lt;/gsf:switch&gt; \n\
Note: See TracChangeset for help on using the changeset viewer.