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

Last change on this file since 14188 was 13904, checked in by kjdon, 17 years ago

added in a replace element for [collection]

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
1<siteConfig xmlns:gsf='' xmlns:xsl=''>
2 <siteList/>
3 <serviceRackList>
4 <!-- uncomment to provide the GATE tagging service -->
5 <!--<serviceRack name="GATEServices"/>-->
6 <serviceRack name="BerryBasket"/>
7 <serviceRack name="CrossCollectionSearch">
8 <format>
9 <!-- this format is used for the search results -->
10 <gsf:template match="documentNode">
11 <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>
12 <td>[<a href='?a=p&amp;sa=about&amp;c={@collection}'><xsl:value-of select='@collection'/></a>]</td>
13 <td><gsf:metadata name='Title'/></td>
14 </gsf:template>
15 </format>
16 </serviceRack>
17 </serviceRackList>
18 <serviceClusterList/>
19 <!-- 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 -->
20 <replaceList id="gs2-standard">
21 <replace macro="_iconpdf_" scope="metadata" text="&lt;img src='interfaces/default/images/ipdf.gif' border='0'/&gt;" resolve="false"/>
22 <replace macro="_icondoc_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
23 <replace macro="_iconps_" scope="metadata" text="&lt;img src='interfaces/default/images/ips.gif' border='0'/&gt;" resolve="false"/>
24 <replace macro="_iconrtf_" scope="metadata" text="&lt;img src='interfaces/default/images/irtf.gif' border='0'/&gt;" resolve="false"/>
25 <replace macro="\[archivedir\]" scope="all" metadata="archivedir" resolve="false"/>
26 <replace macro="\[assocfilepath\]" scope="metadata" metadata="assocfilepath" resolve="false"/>
27 <replace macro="\[Image\]" scope="metadata" metadata="Image" resolve="false"/>
28 <replace macro="\[Thumb\]" scope="metadata" metadata="Thumb" resolve="false"/>
29 <!-- _httpsite_ and _clustername_ are macros that are defined in the java code -->
30 <replace macro="_httpcollection_" scope="metadata" text="_httpsite_/collect/_clustername_" resolve="true"/>
31 <replace macro="_httpprefix_" scope="metadata" text="_httpsite_" resolve="true"/>
32 <replace macro="_httpdocimg_" scope="text" text="_httpsite_/collect/_clustername_/index/assoc/[archivedir]/" resolve="true"/>
33 <replace macro="\[collection\]" scope="all" text="_clustername_" resolve="true"/>
34 </replaceList>
Note: See TracBrowser for help on using the repository browser.