source: main/trunk/greenstone3/web/sites/localsite/siteConfig.xml@ 30540

Last change on this file since 30540 was 30540, checked in by Georgiy Litvinov, 7 years ago

Added collection groups. Config file in web/sites/localsite/groupConfig.xml
PageAction now send request to CollectionGroups service to retrieve information about collections and groups.

  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 KB
Line 
1<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 <!-- 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="CollectionGroups"/>
15 <serviceRack name="DocumentMaker"/>
16 <serviceRack name="DocXMLUtil"/>
17 <serviceRack name="DocumentBasket"/>
18 <serviceRack name="BerryBasket"/>
19 <serviceRack name="GS2Construct"/>
20 <serviceRack name="DebugService"/>
21 <serviceRack name="UserTracker"/>
22 <serviceRack name="CrossCollectionSearch">
23 <format>
24 <!-- this format is used for the search results -->
25 <gsf:template match="documentNode">
26 <xsl:variable name="collname" select="@collection"/>
27 <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>
28 <td><gsf:metadata name='Title'/></td>
29 <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>
30 </gsf:template>
31 </format>
32 </serviceRack>
33 </serviceRackList>
34 <serviceClusterList/>
35 <!-- 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 <!-- replace elements can look like:
37 <replace macro="original text" scope="text|metadata|all" text="replacement text"/>
38 <replace macro="original text" scope="text|metadata|all" metadata="metadata element value to replace with"/>
39 <replace macro="original text" scope="text|metadata|all" key="dictionary key" bundle="dictionary name"/> -->
40 <replaceList id="gs2-standard">
41 <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/>
42 <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
43 <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/>
44 <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/>
45 <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/>
46 <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/>
47 <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/>
48 <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>
49 <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/>
50 <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/>
51 <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/>
52 <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/>
53
54 <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/>
55 <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/>
56 <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/>
57 <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/>
58 <!-- _httpsite_ and _clustername_ are macros that are defined in the java code -->
59 <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/>
60 <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/>
61 <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/>
62 <replace macro="_httpsamepagelink_" scope="text" text="_libraryname_/collection/_clustername_/document/[DocOID]" resolve="true"/>
63 <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/>
64 <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/>
65 </replaceList>
66 <replaceList id="gs2-image">
67 <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>
68 <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>
69 <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>
70 <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>
71 <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>
72 <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>
73 <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>
74 </replaceList>
75 <metadataList xmlns:gsf="http://www.greenstone.org/greenstone3/schema/MetadataFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
76 <!--<metadata name="siteURL">http://localhost:8080/greenstone3/</metadata>-->
77 <metadata name="siteName" lang="en">My Greenstone Library</metadata>
78 <metadata name="siteName" lang="fr">Mon site de dévelopment</metadata>
79 <metadata name="siteDescription" lang="en">This is just a random site for testing stuff...</metadata>
80 <metadata name="siteDescription" lang="fr">C'est juste un site pour tester des trucs...</metadata>
81 <metadata name="siteAdmin">admin@example.com</metadata>
82 </metadataList>
83</siteConfig>
Note: See TracBrowser for help on using the repository browser.