source: gs3-installations/whakatohea-dl/trunk/sites/wmtb/siteConfig.xml@ 38353

Last change on this file since 38353 was 38347, checked in by kjdon, 8 months ago

add in the default format for favourites

File size: 10.0 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">[email protected]</metadata>
4 <!--<metadata name="siteURL">http://www.greenstone.org/greenstone3/</metadata>-->
5<!-- NOT YET WORKING
6 <metadata name="siteURL">//HOST:PORT/whakatohea/</metadata>
7-->
8<!-- INSTEAD, ACTIVATE THIS LINE AFTER EDITING IT: -->
9<!-- <metadata name="siteURL">//dl.whakatohea.co.nz/greenstone3/</metadata>
10-->
11
12 </metadataList>
13 <displayItemList>
14 <displayItem name="siteName" key="siteName" dictionary="siteConfig"/>
15 <displayItem name="siteDescription" key="siteDescription" dictionary="siteConfig"/>
16 </displayItemList>
17 <siteList/>
18 <format>
19 <paramDefault name="favouritebasket" value="on"/>
20 </format>
21
22 <serviceRackList>
23 <!--Provides the Authentication service -->
24 <serviceRack name='Authentication'>
25 <!-- Go to https://www.google.com/recaptcha/admin and replace these testing keys when you deploy your site -->
26 <recaptcha name="site_key" value="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"/>
27 <recaptcha name="secret_key" value="6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"/>
28 <!-- this determines which operations to add recaptcha to. Choose from Register, AddUser, EditUser, AccountSettings -->
29 <recaptcha name="operations" value="Register,AddUser"/>
30 </serviceRack>
31 <serviceRack name="ArchiveIO"/>
32 <serviceRack name="CollectionGroups"/>
33 <serviceRack name="DocumentMaker"/>
34 <serviceRack name="DocXMLUtil"/>
35 <!-- <serviceRack name="DocumentBasket"/>-->
36 <serviceRack name="FavouriteBasket">
37 <format>
38 <!-- set the following to true is you have an email service on the server, or if you have setup mail server properties in resources/web/global.properties.in-->
39 <gsf:option name="serverEmail" value="false"/>
40 <!-- default template used for email/copy-->
41 <xsl:template match="documentNode" mode="plain-text">
42 <xsl:call-template name="displayPlainText"/>
43 </xsl:template>
44 <!-- default template used for favourites display -->
45 <xsl:template match="documentNode">
46 <xsl:call-template name="displayFavourite"/>
47 </xsl:template>
48 </format>
49 <metadataList>
50 <metadata name="wmtb.Title"/>
51 </metadataList>
52 </serviceRack>
53 <serviceRack name="GS2Construct"/>
54 <serviceRack name="DebugService"/>
55 <serviceRack name="UserTracker"/>
56 <serviceRack name="CrossCollectionSearch">
57 <format>
58 <!-- this format is used for the search results -->
59 <gsf:template match="documentNode">
60 <xsl:variable name="collname" select="@collection"/>
61 <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>
62 <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:if test="$opt-doc-link-args">?<xsl:value-of select="$opt-doc-link-args"/></xsl:if></xsl:attribute><gsf:icon/></a></td>
63 <td><gsf:metadata name='Title'/></td>
64 <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>
65 </gsf:template>
66 </format>
67 <!-- uncomment to provide the GATE tagging service -->
68 <!--<serviceRack name="GATEServices"/>-->
69 </serviceRack>
70 </serviceRackList>
71 <serviceClusterList/>
72 <!-- 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 -->
73 <!-- replace elements can look like:
74 <replace macro="original text" scope="text|metadata|all" text="replacement text"/>
75 <replace macro="original text" scope="text|metadata|all" metadata="metadata element value to replace with"/>
76 <replace macro="original text" scope="text|metadata|all" key="dictionary key" bundle="dictionary name"/> -->
77 <replaceList id="gs2-standard">
78 <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/>
79 <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
80 <replace macro="_iconodp_" scope="metadata" text="&lt;img src='interfaces/opotiki/images/iodp.gif' border='0'/&gt;" resolve="false"/>
81 <replace macro="_icondocx_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
82 <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/>
83 <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/>
84 <replace macro="_iconxls_" scope="metadata" text="&lt;img src='interfaces/default/images/iexcel.gif' border='0'/&gt;" resolve="false"/>
85 <replace macro="_iconppt_" scope="metadata" text="&lt;img src='interfaces/default/images/ippt.gif' border='0'/&gt;" resolve="false"/>
86 <replace macro="_icontext_" scope="metadata" text="&lt;img src='interfaces/default/images/itext.gif' border='0'/&gt;" resolve="false"/>
87 <replace macro="_iconblanktext_" scope="metadata" text="&lt;img src='interfaces/default/images/ibtext.gif' border='0'/&gt;" resolve="false"/>
88 <replace macro="_iconmp3_" scope="metadata" text="&lt;img src='interfaces/default/images/imp3.gif' border='0'/&gt;" resolve="false"/>
89 <replace macro="_iconmp4_" scope="metadata" text="&lt;img src='interfaces/default/images/imp4.png' border='0'/&gt;" resolve="false"/>
90 <replace macro="_iconmidi_" scope="metadata" text="&lt;img src='interfaces/default/images/imidi.gif' border='0'/&gt;" resolve="false"/>
91 <replace macro="_iconworld_" scope="metadata" text="&lt;img src='interfaces/default/images/iworld.gif' border='0'/&gt;" resolve="false"/>
92 <replace macro="_iconunknown_" scope="metadata" text="&lt;img src='interfaces/default/images/iunknown.gif' border='0'/&gt;" resolve="false"/>
93
94 <replace macro="[archivedir]" scope="all" metadata="assocfilepath" resolve="false"/>
95 <replace macro="[assocfilepath]" scope="all" metadata="assocfilepath" resolve="false"/>
96 <replace macro="[srcurl]" scope="metadata" metadata="srcurl" resolve="false"/>
97 <replace macro="[SourceFile]" scope="metadata" metadata="SourceFile" resolve="false"/>
98 <!-- _httpsite_ and _clustername_ are macros that are defined in the java code -->
99 <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/>
100 <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/>
101 <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[assocfilepath]/" resolve="true"/>
102 <replace macro="_httpsamepagelink_" scope="text" text="_libraryname_/collection/_clustername_/document/[DocOID]" resolve="true"/>
103 <replace macro="[collection]" scope="all" text="_clustername_" resolve="true"/>
104 <replace macro="_httpextlink_" scope="all" text="_libraryname_?el=&amp;a=d&amp;c=_clustername_&amp;d=" resolve="true"/>
105 </replaceList>
106 <replaceList id="gs2-image">
107 <replace macro="[Image]" scope="metadata" metadata="Image" resolve="false"/>
108 <replace macro="[Thumb]" scope="metadata" metadata="Thumb" resolve="false"/>
109 <replace macro="[ThumbWidth]" scope="metadata" metadata="ThumbWidth" resolve="false"/>
110 <replace macro="[ThumbHeight]" scope="metadata" metadata="ThumbHeight" resolve="false"/>
111 <replace macro="[Screen]" scope="metadata" metadata="Screen" resolve="false"/>
112 <replace macro="[ScreenWidth]" scope="metadata" metadata="ScreenWidth" resolve="false"/>
113 <replace macro="[ScreenHeight]" scope="metadata" metadata="ScreenHeight" resolve="false"/>
114 </replaceList>
115 <replaceList id="gs2-months">
116 <replace macro="_textmonth01_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth01"/>
117 <replace macro="_textmonth02_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth02"/>
118 <replace macro="_textmonth03_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth03"/>
119 <replace macro="_textmonth04_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth04"/>
120 <replace macro="_textmonth05_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth05"/>
121 <replace macro="_textmonth06_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth06"/>
122 <replace macro="_textmonth07_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth07"/>
123 <replace macro="_textmonth08_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth08"/>
124 <replace macro="_textmonth09_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth09"/>
125 <replace macro="_textmonth10_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth10"/>
126 <replace macro="_textmonth11_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth11"/>
127 <replace macro="_textmonth12_" scope="metadata" resolve="false" bundle="interface_default" key="textmonth12"/>
128 <replace bundle="interface_default" key="num" macro="_num_" resolve="false" scope="metadata"/>
129 </replaceList>
130</siteConfig>
Note: See TracBrowser for help on using the repository browser.