Ignore:
Timestamp:
2012-09-20T14:04:57+12:00 (12 years ago)
Author:
kjdon
Message:

changed a bit of formatting, edited it in GLI so lots of indentation has changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-cols/niupepa/etc/collectionConfig.xml

    r26201 r26231  
    77    </metadataList>
    88    <displayItemList>
     9        <displayItem assigned="true" lang="en" name="description">A sample of niupepa papers</displayItem>
    910        <displayItem assigned="true" lang="en" name="name">NiupepaTest</displayItem>
    1011        <displayItem assigned="true" lang="en" name="text">text</displayItem>
     
    1718        <displayItem assigned="true" lang="en" name="section">section</displayItem>
    1819    </displayItemList>
    19     <format>  <gsf:template name="choose-title">
    20     <gsf:choose-metadata>
    21       <gsf:metadata name="Series"/>
    22       <gsf:metadata name="exp.Title"/>
    23       <gsf:metadata name="ex.dc.Title"/>
    24       <gsf:metadata name="Title"/>
    25       <gsf:default>Untitled</gsf:default>
    26     </gsf:choose-metadata>
    27     <gsf:switch>
    28       <gsf:metadata name="Volume"/>
    29       <gsf:when test="exists">
    30         <xsl:text>, Volume: </xsl:text>
    31         <gsf:metadata name="Volume"/>
    32       </gsf:when>
    33     </gsf:switch>
    34     <gsf:switch>
    35       <gsf:metadata name="Issue"/>
    36       <gsf:when test="exists">
    37         <xsl:text>, Issue: </xsl:text>
    38         <gsf:metadata name="Issue"/>
    39       </gsf:when>
    40     </gsf:switch>
    41   </gsf:template>
    42 </format>
     20    <format>
     21            <gsf:template name="choose-icon">
     22                <gsf:switch>
     23                    <gsf:metadata name="DocType"/>
     24                    <gsf:when test="equals" test-value="Commentary">
     25                        <gsf:icon file="icomm.gif" select="collection"/>
     26                    </gsf:when>
     27                    <gsf:when test="equals" test-value="Description">
     28                        <gsf:icon file="iabstr.gif" select="collection"/>
     29                    </gsf:when>
     30                    <gsf:when test="equals" test-value="Niupepa">
     31                        <gsf:icon file="np.gif" select="collection"/>
     32                    </gsf:when>
     33                    <gsf:otherwise>
     34                        <gsf:icon type="document"/>
     35                    </gsf:otherwise>
     36                </gsf:switch>
     37            </gsf:template>
     38            <gsf:template name="choose-title">
     39                <gsf:choose-metadata>
     40                    <gsf:metadata name="Series"/>
     41                    <gsf:metadata name="exp.Title"/>
     42                    <gsf:metadata name="ex.dc.Title"/>
     43                    <gsf:metadata name="Title"/>
     44                    <gsf:default>Untitled</gsf:default>
     45                </gsf:choose-metadata>
     46                <gsf:switch>
     47                    <gsf:metadata name="Volume"/>
     48                    <gsf:when test="exists">
     49                        <xsl:text>, Volume:</xsl:text>
     50                        <gsf:metadata name="Volume"/>
     51                    </gsf:when>
     52                </gsf:switch>
     53                <gsf:switch>
     54                    <gsf:metadata name="Issue"/>
     55                    <gsf:when test="exists">
     56                        <xsl:text>, Issue:</xsl:text>
     57                        <gsf:metadata name="Issue"/>
     58                    </gsf:when>
     59                </gsf:switch>
     60            </gsf:template>
     61        </format>
    4362    <search type="mgpp">
    4463        <level name="document">
     
    87106            <plugin name="ZIPPlugin"/>
    88107            <plugin name="GreenstoneXMLPlugin"/>
    89       <plugin name="CommentaryPlugin"/>
     108            <plugin name="CommentaryPlugin"/>
    90109            <plugin name="NiupepaPlugin">
    91     <option name="-enable_cache"/>
    92     <option name="-OIDtype" value="filename"/>
     110                <option name="-enable_cache"/>
     111                <option name="-OIDtype" value="filename"/>
    93112                <option name="-process_exp" value="\.item$"/>
    94113                <option name="-create_thumbnail" value="true"/>
    95114                <option name="-create_screenview" value="true"/>
    96     <!--<option name="-block_exp" value="\.issue$"/>-->
    97115            </plugin>
    98       <plugin name="AbstractPlugin">
    99       </plugin>
     116            <plugin name="AbstractPlugin"/>
    100117            <plugin name="MetadataXMLPlugin"/>
    101118            <plugin name="ArchivesInfPlugin"/>
     
    106123        <classifier name="List">
    107124            <option name="-metadata" value="Series"/>
    108             <option name="-sort_leaf_nodes_using" value="ex.Volume|ex.Issue"/>
    109             <option name="-bookshelf_type" value="duplicate_only"/>
     125            <option name="-sort_leaf_nodes_using" value="ex.Date"/>
     126            <option name="-bookshelf_type" value="always"/>
     127            <option name="-partition_type_within_level" value="none"/>
     128            <format>  <gsf:template match="documentNode">
     129    <td valign="top">
     130      <gsf:switch>
     131        <gsf:metadata name="abstract"/>
     132        <gsf:when test="exists"><gsf:link OIDmetadata="abstract" type="document"><gsf:icon file="iabstr.gif" select="collection"/></gsf:link></gsf:when>
     133      </gsf:switch>
     134    </td>
     135    <td valign="top">
     136      <gsf:link type="document">
     137        <xsl:call-template name="choose-icon"/>
     138      </gsf:link>
     139    </td>
     140    <td valign="top">
     141      <gsf:metadata name="Title"/>
     142      <xsl:text>      </xsl:text>      <gsf:metadata format="formatDate" name="Date"/>
     143    </td>
     144  </gsf:template>
     145  <gsf:template match="classifierNode[@classifierStyle = 'VList']">
     146    <td valign="top">
     147      <gsf:link type="classifier">
     148        <gsf:icon type="classifier"/>
     149      </gsf:link>
     150    </td>
     151    <td valign="top">
     152      <gsf:metadata name="Title"/>
     153      <xsl:text>      </xsl:text>      <i>(<gsf:metadata name="numleafdocs"/> issues)</i>
     154    </td>
     155  </gsf:template>
     156
     157</format>
    110158        </classifier>
    111159        <classifier name="DateList">
    112160            <option name="-metadata" value="Date"/>
     161            <option name="-nogroup"/>
    113162        </classifier>
    114     <classifier name="List">
    115       <option name="-metadata" value="Title"/>
    116 </classifier>
    117         <format>  <gsf:template match="documentNode">
    118     <td valign="top">
    119       <gsf:link type="document">
    120         <gsf:icon type="document"/>
    121       </gsf:link>
    122     </td>
    123     <td valign="top">
    124       <gsf:link type="source">
    125         <gsf:choose-metadata>
    126           <gsf:metadata name="thumbicon"/>
    127           <gsf:metadata name="srcicon"/>
    128         </gsf:choose-metadata>
    129       </gsf:link>
    130     </td>
    131     <td valign="top">
    132       <gsf:link type="document">
    133 <!--
    134  Defined in the global format statement
    135 -->
    136         <xsl:call-template name="choose-title"/>
    137       </gsf:link>
    138     </td>
    139   </gsf:template>
    140   <gsf:template match="classifierNode[@classifierStyle = 'VList']">
    141     <td valign="top">
    142       <gsf:link type="classifier">
    143         <gsf:icon type="classifier"/>
    144       </gsf:link>
    145     </td>
    146     <td valign="top">
    147       <gsf:link type="source">
    148         <gsf:choose-metadata>
    149           <gsf:metadata name="thumbicon"/>
    150           <gsf:metadata name="srcicon"/>
    151         </gsf:choose-metadata>
    152       </gsf:link>
    153     </td>
    154     <td valign="top">
    155 <!--
    156  Defined in the global format statement
    157 -->
    158       <xsl:call-template name="choose-title"/>
    159       <gsf:switch>
    160         <gsf:metadata name="Source"/>
    161         <gsf:when test="exists">
    162           <br/>
    163           <i>(<gsf:metadata name="Source"/>)</i>
    164         </gsf:when>
    165       </gsf:switch>
    166     </td>
    167   </gsf:template>
    168   <gsf:template match="classifierNode[@classifierStyle = 'HList']">
    169     <gsf:link type="classifier">
    170       <gsf:metadata name="Title"/>
    171     </gsf:link>
    172   </gsf:template>
    173 
    174 </format>
     163        <format>
     164            <gsf:template match="documentNode">
     165                <td valign="top">
     166                    <gsf:link type="document">
     167                        <gsf:icon type="document"/>
     168                    </gsf:link>
     169                </td>
     170                <td valign="top">
     171                    <gsf:link type="source">
     172                        <gsf:choose-metadata>
     173                            <gsf:metadata name="thumbicon"/>
     174                            <gsf:metadata name="srcicon"/>
     175                        </gsf:choose-metadata>
     176                    </gsf:link>
     177                </td>
     178                <td valign="top">
     179                    <gsf:link type="document">
     180<!--
     181Defined in the global format statement
     182-->
     183                        <xsl:call-template name="choose-title"/>
     184                    </gsf:link>
     185                </td>
     186            </gsf:template>
     187            <gsf:template match="classifierNode[@classifierStyle = 'VList']">
     188                <td valign="top">
     189                    <gsf:link type="classifier">
     190                        <gsf:icon type="classifier"/>
     191                    </gsf:link>
     192                </td>
     193                <td valign="top">
     194                    <gsf:link type="source">
     195                        <gsf:choose-metadata>
     196                            <gsf:metadata name="thumbicon"/>
     197                            <gsf:metadata name="srcicon"/>
     198                        </gsf:choose-metadata>
     199                    </gsf:link>
     200                </td>
     201                <td valign="top">
     202<!--
     203Defined in the global format statement
     204-->
     205                    <xsl:call-template name="choose-title"/>
     206                    <gsf:switch>
     207                        <gsf:metadata name="Source"/>
     208                        <gsf:when test="exists">
     209                            <br/>
     210                            <i>(<gsf:metadata name="Source"/>)</i>
     211                        </gsf:when>
     212                    </gsf:switch>
     213                </td>
     214            </gsf:template>
     215            <gsf:template match="classifierNode[@classifierStyle = 'HList']">
     216                <gsf:link type="classifier">
     217                    <gsf:metadata name="Title"/>
     218                </gsf:link>
     219            </gsf:template>
     220        </format>
    175221    </browse>
    176222    <display>
    177         <format>  <gsf:option name="TOC" value="true"/>
    178 <xsl:template name="additionalHeaderContent">
    179     <!-- this javascript is needed to get the #Biblio etc links in the commentaries to work -->
    180     <script type="text/javascript">
    181       <xsl:text disable-output-escaping="yes">
    182       $(window).load(function()
     223        <format>
     224            <gsf:option name="TOC" value="true"/>
     225            <xsl:template name="additionalHeaderContent">
     226<!--
     227this javascript is needed to get the #Biblio etc links in the commentaries to work
     228-->
     229                <script type="text/javascript">
     230                    <xsl:text disable-output-escaping="yes">$(window).load(function()
    183231{
    184232    var links = $("a");
     
    190238        }
    191239    }
    192 });
    193         </xsl:text>
    194     </script>
    195       </xsl:template>
    196 <!--
    197  Overwriting this template allows you to change the heading of the document.
    198 -->
    199 <!--
    200 
     240});</xsl:text>
     241                </script>
     242            </xsl:template>
     243<!--
     244Overwriting this template allows you to change the heading of the document.
     245-->
     246<!--
    201247<gsf:template name="documentHeading">
    202248<span style="font-weight:bold; font-size: 120%;">
    203249<xsl:call-template name="choose-title"/>
    204250</span>
    205 </gsf:template>
    206 -->
    207 <!--
    208  Overwriting this template can be used to redefine the content of the whole document. This is useful for simple documents, but not recommended for more complex documents (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
    209 -->
    210 <!--
    211 
     251</gsf:template>
     252-->
     253<!--
     254Overwriting this template can be used to redefine the content of the whole document. This is useful for simple documents, but not recommended for more complex documents (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
     255-->
     256<!--
    212257<gsf:template name="documentContent">
    213258<xsl:call-template name="wrappedSectionImage"/>
    214259<xsl:call-template name="wrappedSectionText"/>
    215 </gsf:template>
    216 -->
    217 <!--
    218  Overwriting this template can be used to change the content of section headings.
    219 -->
    220     <gsf:template name="sectionHeading">
    221         <xsl:call-template name="choose-title"/>
    222     </gsf:template>
    223     <gsf:template name="pageTitle">
    224         <xsl:for-each select="/page/pageResponse/document/documentNode">
    225             <xsl:call-template name="choose-title"/>
    226         </xsl:for-each>
    227     </gsf:template>
    228 <!--
    229  Overwriting this template can be used to change the content of the top-level section.
    230 -->
    231 <!--
    232 
     260</gsf:template>
     261-->
     262<!--
     263Overwriting this template can be used to change the content of section headings.
     264-->
     265            <gsf:template name="sectionHeading">
     266                <xsl:call-template name="choose-title"/>
     267            </gsf:template>
     268            <gsf:template name="pageTitle">
     269                <xsl:for-each select="/page/pageResponse/document/documentNode">
     270                    <xsl:call-template name="choose-title"/>
     271                </xsl:for-each>
     272            </gsf:template>
     273<!--
     274Overwriting this template can be used to change the content of the top-level section.
     275-->
     276<!--
    233277<gsf:template name="topLevelSectionContent">
    234278<xsl:call-template name="wrappedSectionImage"/>
    235279<xsl:call-template name="wrappedSectionText"/>
    236 </gsf:template>
    237 -->
    238 <!--
    239  Overwriting this template can be used to change the content of sections.
    240 -->
    241 <!--
    242 
     280</gsf:template>
     281-->
     282<!--
     283Overwriting this template can be used to change the content of sections.
     284-->
     285<!--
    243286<gsf:template name="sectionContent">
    244287<xsl:call-template name="wrappedSectionImage"/>
    245288<xsl:call-template name="wrappedSectionText"/>
    246 </gsf:template>
    247 -->
    248 
    249 </format>
     289</gsf:template>
     290-->
     291        </format>
    250292    </display>
    251293    <replaceListRef id="gs2-standard"/>
    252294    <replaceListRef id="gs2-image"/>
    253   <replaceList>
    254     <replace macro="_vol_" scope="metadata" key="vol" bundle="niupepa" resolve="false"/>
    255     <replace macro="_num_" scope="metadata" key="num" bundle="niupepa" resolve="false"/>
    256     <replace macro="_commentary_" scope="metadata" key="commentary" bundle="niupepa" resolve="false"/>
    257     <replace macro="_textbiblio_" scope="text" key="textbiblio" bundle="niupepa" resolve="false"/>
    258     <replace macro="_textbackground_" scope="text" key="textbackground" bundle="niupepa" resolve="false"/>
    259     <replace macro="_textsubmat_" scope="text" key="textsubmat" bundle="niupepa" resolve="false"/>
    260     <replace macro="_textavail_" scope="text" key="textavail" bundle="niupepa" resolve="false"/>
    261    
    262 
    263 
    264   </replaceList>
     295    <replaceList>
     296        <replace bundle="niupepa" key="vol" macro="_vol_" resolve="false" scope="metadata"/>
     297        <replace bundle="niupepa" key="num" macro="_num_" resolve="false" scope="metadata"/>
     298        <replace bundle="niupepa" key="commentary" macro="_commentary_" resolve="false" scope="metadata"/>
     299        <replace bundle="niupepa" key="textbiblio" macro="_textbiblio_" resolve="false" scope="text"/>
     300        <replace bundle="niupepa" key="textbackground" macro="_textbackground_" resolve="false" scope="text"/>
     301        <replace bundle="niupepa" key="textsubmat" macro="_textsubmat_" resolve="false" scope="text"/>
     302        <replace bundle="niupepa" key="textavail" macro="_textavail_" resolve="false" scope="text"/>
     303    </replaceList>
    265304    <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->
    266305        <serviceRack name="OAIPMH">
Note: See TracChangeset for help on using the changeset viewer.