Changeset 38842 for documented-examples


Ignore:
Timestamp:
2024-03-12T14:18:25+13:00 (7 weeks ago)
Author:
kjdon
Message:

reindented the file. Then unfortunately I forgot to commit before I started editing it again :-( Doh.

File:
1 edited

Legend:

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

    r38840 r38842  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    3     <security default_access="private" scope="document">
    4         <exception>
    5             <group name="demo"/>
    6         </exception>
    7         <exception>
    8             <documentSet name="always-public"/>
    9             <group name=""/>
    10         </exception>
    11         <documentSet name="always-public">
    12             <match>fb33fe</match>
    13             <match>fb34fe</match>
    14         </documentSet>
    15     </security>
    16     <metadataList>
    17         <metadata lang="en" name="creator">[email protected]</metadata>
    18         <metadata lang="en" name="maintainer"/>
    19         <metadata lang="en" name="public">true</metadata>
    20     </metadataList>
    21     <displayItemList>
    22         <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
    23         <displayItem assigned="true" lang="en" name="name">Authentication demo</displayItem>
    24         <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
    25         <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
    26         <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
    27         <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
    28         <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
    29         <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
    30         <displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
    31         <displayItem assigned="true" dictionary="collectionConfig" key="description7" name="description7"/>
    32         <displayItem assigned="true" dictionary="collectionConfig" key="textsource" name="textsource"/>
    33         <displayItem assigned="true" dictionary="collectionConfig" key="textnumpages" name="textnumpages"/>
    34         <displayItem assigned="true" dictionary="collectionConfig" key="textdate" name="textdate"/>
    35     </displayItemList>
    36     <format/>
    37     <search type="lucene">
    38       <level name="section">
    39                 <displayItem assigned="true" dictionary="collectionConfig" key="section_chapter" name="name"/>
    40         </level>
    41         <level name="document">
    42           <displayItem assigned="true" dictionary="collectionConfig" key="document_book" name="name"/>
    43         </level>
    44         <defaultLevel name="section"/>
    45         <index name="dls.Organization">
    46             <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/>
    47         </index>
    48         <index name="dls.Keyword">
    49             <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/>
    50         </index>
    51         <index name="dls.Title,Title">
    52             <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/>
    53         </index>
    54         <index name="text">
    55             <displayItem dictionary="collectionConfig" key="index_text" name="name"/>
    56         </index>
    57         <index name="dls.Subject">
    58             <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/>
    59         </index>
    60         <defaultIndex name="text"/>
    61         <indexOption name="casefold"/>
    62         <indexOption name="stem"/>
    63         <searchType name="plain"/>
    64         <searchType name="simpleform"/>
    65         <searchType name="advancedform"/>
    66         <format>
    67             <gsf:template match="documentNode">
    68                 <td valign="top">
    69                     <gsf:link type="document">
    70                         <gsf:icon type="document"/>
    71                     </gsf:link>
    72                 </td>
    73                 <td>
    74                     <gsf:switch>
    75                         <gsf:metadata name="Title"/>
    76                         <gsf:when test="exists">
    77                             <gsf:metadata name="Title"/>:
    78                         </gsf:when>
    79                     </gsf:switch>
    80                     <gsf:link type="document">
    81                         <gsf:metadata name="Title"/>
    82                     </gsf:link>
    83                 </td>
    84             </gsf:template>
    85         </format>
    86     </search>
    87     <infodb type="gdbm"/>
    88     <import>
    89         <pluginList>
    90             <plugin name="GreenstoneXMLPlugin"/>
    91             <plugin name="HTMLPlugin">
    92                 <option name="-description_tags"/>
    93                 <option name="-OIDtype" value="dirname"/>
    94             </plugin>
    95             <plugin name="MetadataXMLPlugin"/>
    96             <plugin name="ArchivesInfPlugin"/>
    97             <plugin name="DirectoryPlugin"/>
    98         </pluginList>
    99     </import>
    100     <browse>
    101         <classifier name="List">
    102             <option name="-metadata" value="dls.Title"/>
    103             <option name="-partition_type_within_level" value="constant_size"/>
    104         </classifier>
    105         <classifier name="Hierarchy">
    106             <option name="-metadata" value="dls.Subject"/>
    107             <option name="-sort" value="dls.Title"/>
    108         </classifier>
    109         <classifier name="List">
    110             <option name="-metadata" value="dls.Organization"/>
    111             <option name="-sort_leaf_nodes_using" value="dls.Title"/>
    112             <option name="-partition_type_within_level" value="constant_size"/>
    113             <option name="-bookshelf_type" value="always"/>
    114         </classifier>
    115         <classifier name="List">
    116             <option name="-metadata" value="dls.Keyword"/>
    117             <option name="-buttonname" value="Howto"/>
    118             <option name="-partition_type_within_level" value="constant_size"/>
    119             <format>
    120                 <gsf:template match="documentNode">
    121                     <td>
    122                         <gsf:link type="document">
    123                             <gsf:icon type="document"/>
    124                         </gsf:link>
    125                     </td>
    126                     <td>
    127                         <gsf:link type="document">
    128                             <gsf:metadata name="dls.Keyword"/>
    129                         </gsf:link>
    130                     </td>
    131                 </gsf:template>
    132                 <gsf:template match="classifierNode">
    133                     <td>
    134                         <gsf:link type="classifier">
    135                             <gsf:icon type="classifier"/>
    136                         </gsf:link>
    137                     </td>
    138                     <td>
    139                         <gsf:link type="classifier">
    140                             <gsf:metadata name="dls.Keyword"/>
    141                         </gsf:link>
    142                     </td>
    143                 </gsf:template>
    144             </format>
    145         </classifier>
    146         <format>
    147             <gsf:template match="documentNode">
    148                 <td valign="top">
    149                     <gsf:link type="document">
    150                         <gsf:icon type="document"/>
    151                     </gsf:link>
    152                 </td>
    153                 <td valign="top">
    154                     <span class="highlight">
    155                         <gsf:choose-metadata>
    156                             <gsf:metadata name="Title"/>
    157                             <gsf:default>Untitled</gsf:default>
    158                         </gsf:choose-metadata>
    159                     </span>
    160                     <gsf:switch>
    161                         <gsf:metadata name="Date"/>
    162                         <gsf:when test="exists">
    163                             <br/>
    164                             <small>
    165                                 <i>
    166                                     <gsf:displayItem name="textdate"/>
    167                                     <gsf:metadata name="Date"/>
    168                                 </i>
    169                             </small>
    170                         </gsf:when>
    171                     </gsf:switch>
    172                     <gsf:switch>
    173                         <gsf:metadata name="NumPages"/>
    174                         <gsf:when test="exists">
    175                             <br/>
    176                             <small>
    177                                 <i>
    178                                     <gsf:displayItem name="textnumpages"/>
    179                                     <gsf:metadata name="NumPages"/>
    180                                 </i>
    181                             </small>
    182                         </gsf:when>
    183                     </gsf:switch>
    184                     <gsf:switch>
    185                         <gsf:metadata name="Source"/>
    186                         <gsf:when test="exists">
    187                             <br/>
    188                             <small>
    189                                 <i>
    190                                     <gsf:displayItem name="textsource"/>
    191                                     <gsf:metadata name="Source"/>
    192                                 </i>
    193                             </small>
    194                         </gsf:when>
    195                     </gsf:switch>
    196                 </td>
    197             </gsf:template>
    198             <gsf:template match="classifierNode">
    199                 <td valign="top">
    200                     <gsf:link type="classifier">
    201                         <gsf:icon type="classifier"/>
    202                     </gsf:link>
    203                 </td>
    204                 <td valign="top">
    205                     <span class="highlight">
    206                         <gsf:choose-metadata>
    207                             <gsf:metadata name="Title"/>
    208                             <gsf:default>Untitled</gsf:default>
    209                         </gsf:choose-metadata>
    210                     </span>
    211                     <gsf:switch>
    212                         <gsf:metadata name="Date"/>
    213                         <gsf:when test="exists">
    214                             <br/>
    215                             <small>
    216                                 <i>
    217                                     <gsf:displayItem name="textdate"/>
    218                                     <gsf:metadata name="Date"/>
    219                                 </i>
    220                             </small>
    221                         </gsf:when>
    222                     </gsf:switch>
    223                     <gsf:switch>
    224                         <gsf:metadata name="NumPages"/>
    225                         <gsf:when test="exists">
    226                             <br/>
    227                             <small>
    228                                 <i>
    229                                     <gsf:displayItem name="textnumpages"/>
    230                                     <gsf:metadata name="NumPages"/>
    231                                 </i>
    232                             </small>
    233                         </gsf:when>
    234                     </gsf:switch>
    235                     <gsf:switch>
    236                         <gsf:metadata name="Source"/>
    237                         <gsf:when test="exists">
    238                             <br/>
    239                             <small>
    240                                 <i>
    241                                     <gsf:displayItem name="textsource"/>
    242                                     <gsf:metadata name="Source"/>
    243                                 </i>
    244                             </small>
    245                         </gsf:when>
    246                     </gsf:switch>
    247                 </td>
    248             </gsf:template>
    249             <gsf:template match="classifierNode" mode="horizontal">
    250                 <gsf:link type="classifier">
    251                     <span class="highlight">
    252                         <gsf:metadata name="Title"/>
    253                     </span>
    254                 </gsf:link>
    255             </gsf:template>
    256         </format>
    257     </browse>
    258     <display>
    259         <format>
    260             <gsf:option name="TOC" value="true"/>
    261             <gsf:option name="AllowUserComments" value="false"/>
    262         </format>
    263     </display>
    264     <replaceListRef id="gs2-standard"/>
    265     <serviceRackList>
    266       <serviceRack name="OAIPMH">
    267         <setName>Authentication demo</setName>
     3  <!-- By default, all documents are private-->
     4  <security default_access="private" scope="document">
     5    <!-- except for users in the demo group -->
     6    <exception>
     7      <group name="demo"/>
     8    </exception>
     9    <!-- also, except for documents in the always-public set-->
     10    <exception>
     11      <documentSet name="always-public"/>
     12      <group name=""/>
     13    </exception>
     14    <!-- define which documents are in the always-public set -->
     15    <documentSet name="always-public">
     16      <match>fb33fe</match>
     17      <match>fb34fe</match>
     18    </documentSet>
     19  </security>
     20  <metadataList>
     21    <metadata lang="en" name="creator">greenstone @ waikato.ac.nz</metadata>
     22    <metadata lang="en" name="maintainer"/>
     23    <metadata lang="en" name="public">true</metadata>
     24  </metadataList>
     25  <displayItemList>
     26    <!-- some text strings for the collection. These are defined in a dictionary file called
     27     collectionConfig.properties -->
     28    <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
     29    <displayItem assigned="true" lang="en" name="name">Authentication demo</displayItem>
     30    <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
     31    <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
     32    <displayItem assigned="true" dictionary="collectionConfig" key="description2" name="description2"/>
     33    <displayItem assigned="true" dictionary="collectionConfig" key="description3" name="description3"/>
     34    <displayItem assigned="true" dictionary="collectionConfig" key="description4" name="description4"/>
     35    <displayItem assigned="true" dictionary="collectionConfig" key="description5" name="description5"/>
     36    <displayItem assigned="true" dictionary="collectionConfig" key="description6" name="description6"/>
     37    <displayItem assigned="true" dictionary="collectionConfig" key="description7" name="description7"/>
     38    <displayItem assigned="true" dictionary="collectionConfig" key="textsource" name="textsource"/>
     39    <displayItem assigned="true" dictionary="collectionConfig" key="textnumpages" name="textnumpages"/>
     40    <displayItem assigned="true" dictionary="collectionConfig" key="textdate" name="textdate"/>
     41  </displayItemList>
     42  <format>
     43    <gsf:template name="display-full-linked-title">
     44      <gsf:if-metadata-exists>
     45    <gsf:metadata name="Title" select="ancestors"/>
     46    <gsf:if><gsf:metadata name="Title" select="ancestors" separator=": "/>: </gsf:if>
     47      </gsf:if-metadata-exists>
     48      <gsf:link type="document">
     49    <gsf:metadata name="Title"/>
     50      </gsf:link>
     51    </gsf:template>
     52  </format>
     53  <search type="lucene">
     54    <level name="section">
     55      <displayItem assigned="true" dictionary="collectionConfig" key="section_chapter" name="name"/>
     56    </level>
     57    <level name="document">
     58      <displayItem assigned="true" dictionary="collectionConfig" key="document_book" name="name"/>
     59    </level>
     60    <defaultLevel name="section"/>
     61    <index name="dls.Organization">
     62      <displayItem dictionary="collectionConfig" key="dls.Organization" name="name"/>
     63    </index>
     64    <index name="dls.Keyword">
     65      <displayItem dictionary="collectionConfig" key="dls.Keyword" name="name"/>
     66    </index>
     67    <index name="dls.Title,Title">
     68      <displayItem dictionary="collectionConfig" key="dls.Titles" name="name"/>
     69    </index>
     70    <index name="text">
     71      <displayItem dictionary="collectionConfig" key="index_text" name="name"/>
     72    </index>
     73    <index name="dls.Subject">
     74      <displayItem dictionary="collectionConfig" key="dls.Subject" name="name"/>
     75    </index>
     76    <defaultIndex name="text"/>
     77    <indexOption name="casefold"/>
     78    <indexOption name="stem"/>
     79    <searchType name="plain"/>
     80    <searchType name="simpleform"/>
     81    <searchType name="advancedform"/>
     82    <format>
     83      <gsf:template match="documentNode">
     84    <td valign="top">
     85      <gsf:link type="document"><gsf:icon type="document"/></gsf:link>
     86    </td>
     87    <td>
     88      <xsl:call-template name="display-full-linked-title"/>
     89    </td>
     90      </gsf:template>
     91    </format>
     92  </search>
     93  <infodb type="gdbm"/>
     94  <import>
     95    <pluginList>
     96      <plugin name="GreenstoneXMLPlugin"/>
     97      <plugin name="HTMLPlugin">
     98    <option name="-description_tags"/>
     99    <option name="-OIDtype" value="dirname"/>
     100      </plugin>
     101      <plugin name="MetadataXMLPlugin"/>
     102      <plugin name="ArchivesInfPlugin"/>
     103      <plugin name="DirectoryPlugin"/>
     104    </pluginList>
     105  </import>
     106  <browse>
     107    <classifier name="List">
     108      <option name="-metadata" value="dls.Title"/>
     109      <option name="-partition_type_within_level" value="constant_size"/>
     110    </classifier>
     111    <classifier name="Hierarchy">
     112      <option name="-metadata" value="dls.Subject"/>
     113      <option name="-sort" value="dls.Title"/>
     114    </classifier>
     115    <classifier name="List">
     116      <option name="-metadata" value="dls.Organization"/>
     117      <option name="-sort_leaf_nodes_using" value="dls.Title"/>
     118      <option name="-partition_type_within_level" value="constant_size"/>
     119      <option name="-bookshelf_type" value="always"/>
     120    </classifier>
     121    <classifier name="List">
     122      <option name="-metadata" value="dls.Keyword"/>
     123      <option name="-buttonname" value="Howto"/>
     124      <option name="-partition_type_within_level" value="constant_size"/>
     125      <!-- custom documentNode format specific to this classifier -->
     126      <format>
     127    <gsf:template match="documentNode">
     128      <td>
     129        <gsf:link type="document"><gsf:icon type="document"/></gsf:link>
     130      </td>
     131      <td>
     132        <gsf:link type="document"><gsf:metadata name="dls.Keyword"/></gsf:link>
     133      </td>
     134    </gsf:template>
     135      </format>
     136    </classifier>
     137    <format>
     138      <gsf:template match="documentNode">
     139    <td valign="top">
     140      <gsf:link type="document"><gsf:icon type="document"/></gsf:link>
     141    </td>
     142    <td valign="top">
     143        <gsf:choose-metadata>
     144          <gsf:metadata name="dls.Title"/>
     145          <gsf:metadata name="Title"/>
     146          <gsf:default>Untitled</gsf:default>
     147        </gsf:choose-metadata>
     148        <br/>
     149        <small><i><gsf:displayItem name="textsource"/><gsf:metadata name="Source"/></i></small>
     150    </td>
     151      </gsf:template>
     152    </format>
     153  </browse>
     154  <display>
     155    <format>
     156      <gsf:option name="TOC" value="true"/>
     157      <gsf:option name="AllowUserComments" value="false"/>
     158    </format>
     159  </display>
     160  <replaceListRef id="gs2-standard"/>
     161  <serviceRackList>
     162    <serviceRack name="OAIPMH">
     163      <setName>Authentication demo</setName>
    268164      <setDescription>A collection demonstrating document level security.</setDescription>
    269165      <!-- uncomment the following and set the name attribute if you want this
Note: See TracChangeset for help on using the changeset viewer.