Changeset 31595

Show
Ignore:
Timestamp:
10.04.2017 10:46:48 (2 years ago)
Author:
kjdon
Message:

indenting it nicely in emacs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/siteConfig.xml

    r30828 r31595  
    11<siteConfig xmlns:gsf='http://www.greenstone.org/greenstone3/schema/ConfigFormat' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> 
    2     <metadataList xmlns:gsf="http://www.greenstone.org/greenstone3/schema/MetadataFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    3         <metadata name="siteAdmin">admin@example.com</metadata> 
    4     </metadataList> 
    5     <displayItemList> 
    6         <displayItem name="siteName" lang="en">My Greenstone Library</displayItem> 
    7         <displayItem name="siteName" key="siteName" dictionary="siteConfig"/> 
    8         <displayItem name="siteDescription" lang="en">This is a digital library built using the open-source Greenstone Digital Library software, version 3. Edit the site name and description in web/sites/localsite/siteConfig.xml or web/sites/localsite/resources/siteConfig_xx.properties.</displayItem> 
    9         <displayItem name="siteDescription" key="siteDescription" dictionary="siteConfig"/> 
    10        
    11     </displayItemList> 
    12     <siteList/> 
    13     <serviceRackList> 
    14         <!-- uncomment to provide the GATE tagging service -->   
    15         <!--<serviceRack name="GATEServices"/>--> 
    16         <!-- uncomment to provide the Authentication service --> 
    17         <serviceRack name='Authentication'> 
    18             <!-- Go to https://www.google.com/recaptcha/admin/create and replace these keys when you deploy your site --> 
    19             <recaptcha name="public_key" value="6LckI88SAAAAACUYjj97WMcnz5HPjVp3lI-x-ue8"/> 
    20             <recaptcha name="private_key" value="6LckI88SAAAAAGnGy1PwuXYZzIMXZYoPxN51bWWG"/> 
    21         </serviceRack> 
    22          
    23         <serviceRack name="ArchiveIO"/> 
    24         <serviceRack name="CollectionGroups"/> 
    25         <serviceRack name="DocumentMaker"/> 
    26         <serviceRack name="DocXMLUtil"/> 
    27         <serviceRack name="DocumentBasket"/> 
    28         <serviceRack name="BerryBasket"/> 
    29         <serviceRack name="GS2Construct"/> 
    30         <serviceRack name="DebugService"/> 
    31         <serviceRack name="UserTracker"/> 
    32         <serviceRack name="CrossCollectionSearch"> 
    33             <format> 
    34                 <!-- this format is used for the search results --> 
    35                 <gsf:template match="documentNode"> 
     2  <metadataList xmlns:gsf="http://www.greenstone.org/greenstone3/schema/MetadataFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
     3    <metadata name="siteAdmin">admin@example.com</metadata> 
     4  </metadataList> 
     5  <displayItemList> 
     6    <displayItem name="siteName" lang="en">My Greenstone Library</displayItem> 
     7    <displayItem name="siteName" key="siteName" dictionary="siteConfig"/> 
     8    <displayItem name="siteDescription" lang="en">This is a digital library built using the open-source Greenstone Digital Library software, version 3. Edit the site name and description in web/sites/localsite/siteConfig.xml or web/sites/localsite/resources/siteConfig_xx.properties.</displayItem> 
     9    <displayItem name="siteDescription" key="siteDescription" dictionary="siteConfig"/> 
     10  </displayItemList> 
     11  <siteList/> 
     12  <serviceRackList> 
     13    <!-- uncomment to provide the GATE tagging service -->   
     14    <!--<serviceRack name="GATEServices"/>--> 
     15    <!-- uncomment to provide the Authentication service --> 
     16    <serviceRack name='Authentication'> 
     17      <!-- Go to https://www.google.com/recaptcha/admin/create and replace these keys when you deploy your site --> 
     18      <recaptcha name="public_key" value="6LckI88SAAAAACUYjj97WMcnz5HPjVp3lI-x-ue8"/> 
     19      <recaptcha name="private_key" value="6LckI88SAAAAAGnGy1PwuXYZzIMXZYoPxN51bWWG"/> 
     20    </serviceRack> 
     21     
     22    <serviceRack name="ArchiveIO"/> 
     23    <serviceRack name="CollectionGroups"/> 
     24    <serviceRack name="DocumentMaker"/> 
     25    <serviceRack name="DocXMLUtil"/> 
     26    <serviceRack name="DocumentBasket"/> 
     27    <serviceRack name="BerryBasket"/> 
     28    <serviceRack name="GS2Construct"/> 
     29    <serviceRack name="DebugService"/> 
     30    <serviceRack name="UserTracker"/> 
     31    <serviceRack name="CrossCollectionSearch"> 
     32      <format> 
     33    <!-- this format is used for the search results --> 
     34    <gsf:template match="documentNode"> 
    3635      <xsl:variable name="collname" select="@collection"/> 
    37                     <td><a><xsl:attribute name='href'><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select='@collection'/>/document/<xsl:value-of select='@nodeID'/></xsl:attribute><gsf:icon/></a></td> 
    38                     <td><gsf:metadata name='Title'/></td> 
    39                     <td><a href='{$library_name}/collection/{$collname}/page/about'><xsl:value-of select="/page/pageResponse/service/paramList/param[@name='collection']/option[@name=$collname]/displayItem[@name='name']"/> </a></td> 
    40                 </gsf:template> 
    41             </format> 
    42         </serviceRack> 
    43     </serviceRackList> 
    44     <serviceClusterList/> 
    45     <!-- this is a global replace list for all collections. At this stage it only applies to greenstone 2 collections. It will attempt to resolve most of the common macros that appear in metadata. You can add more items here if you want them to apply to all collections. To turn this on/off for a particular collection, add <replaceListRef id='xx'/> into the collectionConfig for each set that you want to use --> 
     36      <td><a><xsl:attribute name='href'><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select='@collection'/>/document/<xsl:value-of select='@nodeID'/></xsl:attribute><gsf:icon/></a></td> 
     37      <td><gsf:metadata name='Title'/></td> 
     38      <td><a href='{$library_name}/collection/{$collname}/page/about'><xsl:value-of select="/page/pageResponse/service/paramList/param[@name='collection']/option[@name=$collname]/displayItem[@name='name']"/> </a></td> 
     39    </gsf:template> 
     40      </format> 
     41    </serviceRack> 
     42  </serviceRackList> 
     43  <serviceClusterList/> 
     44  <!-- this is a global replace list for all collections. At this stage it only applies to greenstone 2 collections. It will attempt to resolve most of the common macros that appear in metadata. You can add more items here if you want them to apply to all collections. To turn this on/off for a particular collection, add <replaceListRef id='xx'/> into the collectionConfig for each set that you want to use --> 
    4645  <!-- replace elements can look like:  
    47   <replace macro="original text" scope="text|metadata|all" text="replacement text"/> 
    48   <replace macro="original text" scope="text|metadata|all" metadata="metadata element value to replace with"/> 
    49   <replace macro="original text" scope="text|metadata|all" key="dictionary key" bundle="dictionary name"/> --> 
    50     <replaceList  id="gs2-standard"> 
    51         <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/> 
    52         <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/> 
    53         <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/> 
    54         <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/> 
    55         <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/> 
    56         <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/> 
    57         <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/> 
    58         <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>      
    59         <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/> 
    60         <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/> 
    61         <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/> 
    62         <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/> 
     46       <replace macro="original text" scope="text|metadata|all" text="replacement text"/> 
     47       <replace macro="original text" scope="text|metadata|all" metadata="metadata element value to replace with"/> 
     48       <replace macro="original text" scope="text|metadata|all" key="dictionary key" bundle="dictionary name"/> --> 
     49  <replaceList  id="gs2-standard"> 
     50    <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/> 
     51    <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/> 
     52    <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/> 
     53    <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/> 
     54    <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/> 
     55    <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/> 
     56    <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/> 
     57    <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>      
     58    <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/> 
     59    <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/> 
     60    <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/> 
     61    <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/> 
    6362 
    64         <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/> 
    65         <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/> 
    66         <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/> 
    67         <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/> 
    68         <!-- _httpsite_ and _clustername_ are macros that are defined in the java code --> 
    69         <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/> 
    70         <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/> 
    71         <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/> 
    72         <replace macro="_httpsamepagelink_" scope="text" text="_libraryname_/collection/_clustername_/document/[DocOID]" resolve="true"/> 
    73         <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/> 
    74         <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/> 
    75     </replaceList> 
    76     <replaceList id="gs2-image">  
    77         <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>  
    78         <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>  
    79         <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>  
    80         <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>  
    81         <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>  
    82         <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>  
    83         <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>  
    84     </replaceList>  
     63    <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/> 
     64    <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/> 
     65    <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/> 
     66    <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/> 
     67    <!-- _httpsite_ and _clustername_ are macros that are defined in the java code --> 
     68    <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/> 
     69    <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/> 
     70    <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/> 
     71    <replace macro="_httpsamepagelink_" scope="text" text="_libraryname_/collection/_clustername_/document/[DocOID]" resolve="true"/> 
     72    <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/> 
     73    <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/> 
     74  </replaceList> 
     75  <replaceList id="gs2-image">  
     76    <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>  
     77    <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>  
     78    <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>  
     79    <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>  
     80    <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>  
     81    <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>  
     82    <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>  
     83  </replaceList>  
    8584</siteConfig>