Changeset 36292


Ignore:
Timestamp:
2022-07-13T14:28:05+12:00 (22 months ago)
Author:
anupama
Message:
  1. The wiki-e dec collection port for GS3. 2. lomdemo-e update 1 to better display the formatted lom XML Record.
Location:
documented-examples/trunk
Files:
16 added
1 edited

Legend:

Unmodified
Added
Removed
  • documented-examples/trunk/lomdemo-e/etc/collectionConfig.xml

    r36289 r36292  
    88    <displayItemList>
    99        <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
    10         <displayItem assigned="true" lang="en" name="name">LOM Demonstration</displayItem>     
     10        <displayItem assigned="true" lang="en" name="name">LOM Demonstration</displayItem>
     11        <displayItem assigned="true" dictionary="collectionConfig" key="name" name="name"/>
    1112        <displayItem assigned="true" dictionary="collectionConfig" key="shortDescription" name="shortDescription"/>
    1213        <displayItem assigned="true" dictionary="collectionConfig" key="description1" name="description1"/>
     
    2122        <displayItem assigned="true" dictionary="collectionConfig" key=".general^keyword" name=".general^keyword"/>
    2223    </displayItemList>
    23     <format/>
     24    <format>  <xsl:template name="additionalHeaderContent">
     25    <xsl:variable name="httpCollection">
     26      <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
     27    </xsl:variable>
     28    <link href="{$httpCollection}/style/lom-style.css" rel="stylesheet" type="text/css"/>
     29    <script src="{$httpCollection}/script/lomscript.js" type="text/javascript">    </script>  </xsl:template>
     30
     31</format>
    2432    <search type="mgpp">
    2533        <level name="document"/>
     
    5765        <format>
    5866            <gsf:template match="documentNode">
    59                 <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>]]></gsf:format-gs2>
     67                <gsf:format-gs2><![CDATA[
     68<td>[link][icon][/link]
     69</td>
     70<td>{If}{[numleafdocs],([numleafdocs])}
     71</td>
     72<td>{OR}{[general^title],[Title]}
     73</td>]]></gsf:format-gs2>
    6074                <td>
    6175                    <gsf:link type="document">
     
    116130        <format>
    117131            <gsf:template match="documentNode">
    118                 <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>]]></gsf:format-gs2>
     132                <gsf:format-gs2><![CDATA[
     133<td>[link][icon][/link]
     134</td>
     135<td>{If}{[numleafdocs],([numleafdocs])}
     136</td>
     137<td>{OR}{[general^title],[Title]}
     138</td>]]></gsf:format-gs2>
    119139                <td>
    120140                    <gsf:link type="document">
     
    131151            </gsf:template>
    132152            <gsf:template match="classifierNode">
    133                 <gsf:format-gs2><![CDATA[<td>[link][icon][/link]</td><td>{If}{[numleafdocs],([numleafdocs])}</td><td>{OR}{[general^title],[Title]}</td>]]></gsf:format-gs2>
     153                <gsf:format-gs2><![CDATA[
     154<td>[link][icon][/link]
     155</td>
     156<td>{If}{[numleafdocs],([numleafdocs])}
     157</td>
     158<td>{OR}{[general^title],[Title]}
     159</td>]]></gsf:format-gs2>
    134160                <td>
    135161                    <gsf:link type="classifier">
     
    156182    </browse>
    157183    <display>
    158         <format>
    159             <gsf:option name="TOC" value="true"/>
    160             <gsf:option name="AllowUserComments" value="false"/>
     184        <format>  <gsf:option name="TOC" value="true"/>
     185  <gsf:option name="AllowUserComments" value="false"/>
     186  <gsf:template name="documentContent">
     187    <div id="gs-document">
     188      <xsl:call-template name="documentPre"/>
     189      <xsl:call-template name="wrappedSectionImage"/>
     190      <div id="gs-document-text">
     191        <gsf:metadata name="MetadataTable"/>
     192<!--
     193<xsl:call-template name="documentNodeText"/>
     194-->
     195      </div>
     196    </div>
     197  </gsf:template>
    161198<!--
    162199Overwriting this template allows you to change the heading of the document.
    163200-->
    164201<!--
    165 <gsf:template name="documentHeading"><span style="font-weight:bold; font-size: 120%;"><xsl:call-template name="choose-title"/></span></gsf:template>
     202<gsf:template name="documentHeading">
     203<span style="font-weight:bold; font-size: 120%;">
     204<xsl:call-template name="choose-title"/>
     205</span>
     206</gsf:template>
    166207-->
    167208<!--
     
    169210-->
    170211<!--
    171 <gsf:template name="documentContent"><div id="gs-document"><xsl:call-template name="documentPre"/><xsl:call-template name="wrappedSectionImage"/><div id="gs-document-text"><xsl:call-template name="documentNodeText"/></div></gsf:template>
     212<gsf:template name="documentContent">
     213<div id="gs-document">
     214<xsl:call-template name="documentPre"/>
     215<xsl:call-template name="wrappedSectionImage"/>
     216<div id="gs-document-text">
     217<xsl:call-template name="documentNodeText"/>
     218</div>
     219</div>
     220</gsf:template>
    172221-->
    173222<!--
     
    175224-->
    176225<!--
    177 <gsf:template name="sectionHeading"><xsl:call-template name="choose-title"/></gsf:template>
     226<gsf:template name="sectionHeading">
     227<xsl:call-template name="choose-title"/>
     228</gsf:template>
    178229-->
    179230<!--
     
    181232-->
    182233<!--
    183 <gsf:template name="topLevelSectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
     234<gsf:template name="topLevelSectionContent">
     235<xsl:call-template name="wrappedSectionImage"/>
     236<xsl:call-template name="wrappedSectionText"/>
     237</gsf:template>
    184238-->
    185239<!--
     
    187241-->
    188242<!--
    189 <gsf:template name="sectionContent"><xsl:call-template name="wrappedSectionImage"/><xsl:call-template name="wrappedSectionText"/></gsf:template>
    190 -->
    191         </format>
     243<gsf:template name="sectionContent">
     244<xsl:call-template name="wrappedSectionImage"/>
     245<xsl:call-template name="wrappedSectionText"/>
     246</gsf:template>
     247-->
     248
     249</format>
    192250    </display>
    193251    <replaceListRef id="gs2-standard"/>
Note: See TracChangeset for help on using the changeset viewer.