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

Last change on this file since 32417 was 32417, checked in by kjdon, 3 years ago

add in recaptcha operations setting, to add recaptcha to register and adduser pages

  • Property svn:keywords set to Author Date Id Revision
File size: 8.9 KB
Line 
1<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 <!--<metadata name="siteURL">http://www.greenstone.org/greenstone3/</metadata>-->
5 </metadataList>
6 <displayItemList>
7 <displayItem name="siteName" lang="en">My Greenstone Library</displayItem>
8 <displayItem name="siteName" key="siteName" dictionary="siteConfig"/>
9 <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>
10 <displayItem name="siteDescription" key="siteDescription" dictionary="siteConfig"/>
11 </displayItemList>
12 <siteList/>
13 <serviceRackList>
14 <!--Provides the Authentication service -->
15 <serviceRack name='Authentication'>
16 <!-- Go to https://www.google.com/recaptcha/admin and replace these testing keys when you deploy your site -->
17 <recaptcha name="site_key" value="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"/>
18 <recaptcha name="secret_key" value="6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"/>
19 <!-- this determines which operations to add recaptcha to. Choose from Register, AddUser, EditUser, AccountSettings -->
20 <recaptcha name="operations" value="Register,AddUser"/>
21 </serviceRack>
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">
35 <xsl:variable name="collname" select="@collection"/>
36 <td><gsf:if-metadata-exists><gsf:metadata name="srclinkFile"/><gsf:if><a><xsl:attribute name='href'>sites/localsite/collect/<xsl:value-of select='@collection'/>/index/assoc/<gsf:metadata name="assocfilepath"/>/<gsf:metadata name="srclinkFile"/></xsl:attribute><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></a></gsf:if></gsf:if-metadata-exists></td>
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 <!-- uncomment to provide the GATE tagging service -->
43 <!--<serviceRack name="GATEServices"/>-->
44 </serviceRack>
45 </serviceRackList>
46 <serviceClusterList/>
47 <!-- 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 -->
48 <!-- replace elements can look like:
49 <replace macro="original text" scope="text|metadata|all" text="replacement text"/>
50 <replace macro="original text" scope="text|metadata|all" metadata="metadata element value to replace with"/>
51 <replace macro="original text" scope="text|metadata|all" key="dictionary key" bundle="dictionary name"/> -->
52 <replaceList id="gs2-standard">
53 <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/>
54 <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
55 <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/>
56 <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/>
57 <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/>
58 <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/>
59 <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/>
60 <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>
61 <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/>
62 <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/>
63 <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/>
64 <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/>
65
66 <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/>
67 <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/>
68 <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/>
69 <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/>
70 <!-- _httpsite_ and _clustername_ are macros that are defined in the java code -->
71 <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/>
72 <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/>
73 <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/>
74 <replace macro="_httpsamepagelink_" scope="text" text="_libraryname_/collection/_clustername_/document/[DocOID]" resolve="true"/>
75 <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/>
76 <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/>
77 </replaceList>
78 <replaceList id="gs2-image">
79 <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>
80 <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>
81 <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>
82 <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>
83 <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>
84 <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>
85 <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>
86 </replaceList>
87 <replaceList id="gs2-months">
88 <replace macro="_textmonth01_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth01"/>
89 <replace macro="_textmonth02_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth02"/>
90 <replace macro="_textmonth03_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth03"/>
91 <replace macro="_textmonth04_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth04"/>
92 <replace macro="_textmonth05_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth05"/>
93 <replace macro="_textmonth06_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth06"/>
94 <replace macro="_textmonth07_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth07"/>
95 <replace macro="_textmonth08_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth08"/>
96 <replace macro="_textmonth09_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth09"/>
97 <replace macro="_textmonth10_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth10"/>
98 <replace macro="_textmonth11_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth11"/>
99 <replace macro="_textmonth12_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth12"/>
100 <replace bundle="interface_default" key="num" macro="_num_" resolve="false" scope="metadata"/>
101 </replaceList>
102</siteConfig>
Note: See TracBrowser for help on using the repository browser.