Changeset 25569

Show
Ignore:
Timestamp:
10.05.2012 16:20:38 (7 years ago)
Author:
sjm84
Message:

Some formatting changes as well as adding in GS2Construct into the default list of services

Files:
1 modified

Legend:

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

    r25247 r25569  
    11<siteConfig xmlns:gsf='http://www.greenstone.org/greenstone3/schema/ConfigFormat' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> 
    2   <siteList/> 
    3   <serviceRackList> 
    4     <!-- uncomment to provide the GATE tagging service --> 
    5     <!--<serviceRack name="GATEServices"/>--> 
    6     <!-- uncomment to provide the Authentication service --> 
    7     <serviceRack name='Authentication'/> 
    8     <serviceRack name="ArchiveIO"/> 
    9     <serviceRack name="DocumentMaker"/> 
    10     <serviceRack name="DocXMLUtil"/> 
    11     <serviceRack name="DocumentBasket"/> 
    12     <serviceRack name="BerryBasket"/> 
    13       <serviceRack name="ServiceUtil"/> 
    14     <serviceRack name="CrossCollectionSearch"> 
    15       <format> 
    16     <!-- this format is used for the search results --> 
    17     <gsf:template match="documentNode"> 
    18       <td><a><xsl:attribute name='href'>?a=d&amp;c=<xsl:value-of select='@collection'/>&amp;d=<xsl:value-of select='@nodeID'/><xsl:if test="@nodeType='leaf'">&amp;sib=1</xsl:if>&amp;dt=<xsl:value-of select='@docType'/>&amp;p.a=q&amp;&amp;p.s=TextQuery&amp;p.c=</xsl:attribute><gsf:icon/></a></td> 
    19       <td>[<a href='?a=p&amp;amp;sa=about&amp;amp;c={@collection}'><xsl:value-of select='@collection'/></a>]</td> 
    20       <td><gsf:metadata name='Title'/></td> 
    21     </gsf:template> 
    22       </format> 
    23     </serviceRack> 
    24   </serviceRackList> 
    25   <serviceClusterList/> 
    26   <!-- 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 --> 
    27   <replaceList  id="gs2-standard"> 
    28     <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/> 
    29     <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/> 
    30     <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/> 
    31      <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/> 
    32      <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/> 
    33      <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/> 
    34      <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/> 
    35      <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>      
    36      <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/> 
    37      <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/> 
    38      <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/> 
    39      <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/> 
     2    <siteList/> 
     3    <serviceRackList> 
     4        <!-- uncomment to provide the GATE tagging service -->   
     5        <!--<serviceRack name="GATEServices"/>--> 
     6        <!-- uncomment to provide the Authentication service --> 
     7        <serviceRack name='Authentication'> 
     8            <!-- Go to https://www.google.com/recaptcha/admin/create and replace these keys when you deploy your site --> 
     9            <recaptcha name="public_key" value="6LckI88SAAAAACUYjj97WMcnz5HPjVp3lI-x-ue8"/> 
     10            <recaptcha name="private_key" value="6LckI88SAAAAAGnGy1PwuXYZzIMXZYoPxN51bWWG"/> 
     11        </serviceRack> 
     12         
     13        <serviceRack name="ArchiveIO"/> 
     14        <serviceRack name="DocumentMaker"/> 
     15        <serviceRack name="DocXMLUtil"/> 
     16        <serviceRack name="DocumentBasket"/> 
     17        <serviceRack name="BerryBasket"/> 
     18        <serviceRack name="GS2Construct"/> 
     19        <serviceRack name="CrossCollectionSearch"> 
     20            <format> 
     21                <!-- this format is used for the search results --> 
     22                <gsf:template match="documentNode"> 
     23                    <td><a><xsl:attribute name='href'>?a=d&amp;c=<xsl:value-of select='@collection'/>&amp;d=<xsl:value-of select='@nodeID'/><xsl:if test="@nodeType='leaf'">&amp;sib=1</xsl:if>&amp;dt=<xsl:value-of select='@docType'/>&amp;p.a=q&amp;&amp;p.s=TextQuery&amp;p.c=</xsl:attribute><gsf:icon/></a></td> 
     24                    <td>[<a href='?a=p&amp;amp;sa=about&amp;amp;c={@collection}'><xsl:value-of select='@collection'/></a>]</td> 
     25                    <td><gsf:metadata name='Title'/></td> 
     26                </gsf:template> 
     27            </format> 
     28        </serviceRack> 
     29    </serviceRackList> 
     30    <serviceClusterList/> 
     31    <!-- 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 --> 
     32    <replaceList  id="gs2-standard"> 
     33        <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/> 
     34        <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/> 
     35        <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/> 
     36        <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/> 
     37        <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/> 
     38        <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/> 
     39        <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/> 
     40        <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>      
     41        <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/> 
     42        <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/> 
     43        <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/> 
     44        <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/> 
    4045 
    41     <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/> 
    42     <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/> 
    43     <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/> 
    44     <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/> 
    45     <!-- _httpsite_ and _clustername_ are macros that are defined in the java code --> 
    46     <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/> 
    47     <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/> 
    48     <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/> 
    49     <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/> 
    50     <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/> 
    51   </replaceList> 
    52   <replaceList id="gs2-image">  
    53     <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>  
    54     <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>  
    55     <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>  
    56     <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>  
    57     <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>  
    58     <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>  
    59     <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>  
    60   </replaceList>  
     46        <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/> 
     47        <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/> 
     48        <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/> 
     49        <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/> 
     50        <!-- _httpsite_ and _clustername_ are macros that are defined in the java code --> 
     51        <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/> 
     52        <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/> 
     53        <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/> 
     54        <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/> 
     55        <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/> 
     56    </replaceList> 
     57    <replaceList id="gs2-image">  
     58        <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>  
     59        <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>  
     60        <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>  
     61        <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>  
     62        <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>  
     63        <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>  
     64        <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>  
     65    </replaceList>  
    6166    <metadataList xmlns:gsf="http://www.greenstone.org/greenstone3/schema/MetadataFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    62         <metadata name="siteURL">http://localhost:8080/greenstone3/</metadata> 
     67        <!--<metadata name="siteURL">http://localhost:8080/greenstone3/</metadata>--> 
    6368        <metadata name="siteName" lang="en">My Greenstone Library</metadata> 
    6469        <metadata name="siteName" lang="fr">Mon site de dévelopment</metadata>  
     
    6772        <metadata name="siteAdmin">admin@example.com</metadata> 
    6873    </metadataList> 
    69  
    7074</siteConfig>