Changeset 26266 for main

Show
Ignore:
Timestamp:
27.09.2012 14:14:43 (7 years ago)
Author:
kjdon
Message:

modifying format statements; added replace elem for abstract documents to get the links to the documents; removed displayItems from top level list that shouldn't be there - need to work on GLI not to add them back in; new params to series list so that abstracts aren't included explicitly; some Maori translations

Files:
1 modified

Legend:

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

    r26247 r26266  
    88    <displayItemList> 
    99        <displayItem assigned="true" lang="en" name="description">A sample of niupepa papers</displayItem> 
    10         <displayItem assigned="true" lang="en" name="name">niupepa: Maori newspapers</displayItem> 
    11         <displayItem assigned="true" lang="en" name="text">text</displayItem> 
    12         <displayItem assigned="true" lang="en" name="dc.Title,ex.dc.Title,Title">titles</displayItem> 
    13         <displayItem assigned="true" lang="en" name="Source">filenames</displayItem> 
    14         <displayItem assigned="true" lang="en" name="document:text">text</displayItem> 
    15         <displayItem assigned="true" lang="en" name="document:ex.Title">Title</displayItem> 
    16         <displayItem assigned="true" lang="en" name="document:ex.Source">Source</displayItem> 
    17         <displayItem assigned="true" lang="en" name="document">document</displayItem> 
    18         <displayItem assigned="true" lang="en" name="section">section</displayItem> 
     10        <displayItem assigned="true" lang="en" name="name">niupepa: māori newspapers</displayItem> 
    1911    </displayItemList> 
    2012    <format> 
     
    2517                        <gsf:icon file="icomm.gif" select="collection"/> 
    2618                    </gsf:when> 
    27                     <gsf:when test="equals" test-value="Description"> 
     19                    <gsf:when test="equals" test-value="Abstract"> 
    2820                        <gsf:icon file="iabstr.gif" select="collection"/> 
    2921                    </gsf:when> 
     
    3628                </gsf:switch> 
    3729            </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> 
     30    <gsf:template name="title-plain"> 
     31      <gsf:choose-metadata> 
     32    <gsf:metadata name="Series" select="root"/> 
     33    <gsf:metadata name="Series"/> 
     34      </gsf:choose-metadata> 
     35      <xsl:text>: </xsl:text> 
     36      <gsf:switch> 
     37    <gsf:metadata name="Title" select="ancestors"/> 
     38    <gsf:when test="exists"> 
     39      <gsf:metadata name="Title" select="ancestors"/><xsl:text>: </xsl:text> 
     40    </gsf:when> 
     41      </gsf:switch> 
     42    <gsf:metadata name="Title"/> 
     43    </gsf:template> 
    6144        </format> 
    6245    <search type="mgpp"> 
     
    7659        <indexSubcollection name="abstract,commentary,niupepa"> 
    7760      <displayItem lang="en" name="name">papers, commentaries and abstracts</displayItem> 
     61      <displayItem lang="mi" name="name">ngā niupepa, kupu whakataki, me ngā rāpopoto</displayItem> 
    7862    </indexSubcollection> 
    7963        <indexSubcollection name="niupepa"> 
    8064      <displayItem lang="en" name="name">newspapers</displayItem> 
     65      <displayItem lang="mi" name="name">ngā niupepa anake</displayItem> 
    8166      </indexSubcollection> 
    8267        <indexSubcollection name="commentary"> 
    8368      <displayItem lang="en" name="name">bibliographic commentaries</displayItem> 
    84       </indexSubcollection> 
     69      <displayItem lang="mi" name="name">ngā kupu whakataki anake</displayItem>0 
     70    </indexSubcollection> 
    8571        <indexSubcollection name="abstract"> 
    86       <displayItem lang="en" name="name">English abstracts</displayItem> 
     72      <displayItem lang="en" name="name">english abstracts</displayItem> 
     73      <displayItem lang="mi" name="name">ngā rāpopoto reo Pākehā anake</displayItem> 
    8774      </indexSubcollection> 
    8875        <subcollection filter="DocType/Commentary/" name="commentary"/> 
     
    9178        <searchType name="plain"/> 
    9279        <format> 
     80    <gsf:template name="title-with-link"> 
     81      <gsf:choose-metadata> 
     82    <gsf:metadata name="Series" select="root"/> 
     83    <gsf:metadata name="Series"/> 
     84      </gsf:choose-metadata> 
     85      <xsl:text>: </xsl:text> 
     86      <gsf:switch> 
     87    <gsf:metadata name="Title" select="ancestors"/> 
     88    <gsf:when test="exists"> 
     89      <gsf:metadata name="Title" select="ancestors"/><xsl:text>: </xsl:text> 
     90    </gsf:when> 
     91      </gsf:switch> 
     92      <gsf:link type="document"> 
     93    <gsf:metadata name="Title"/> 
     94      </gsf:link> 
     95    </gsf:template> 
     96 
    9397            <gsf:template match="documentNode"> 
    9498                <td valign="top"> 
    9599                    <gsf:link type="document"> 
    96                         <gsf:icon type="document"/> 
     100                        <xsl:call-template name="choose-icon"/> 
    97101                    </gsf:link> 
    98102                </td> 
    99103                <td> 
    100                     <gsf:link type="document"> 
    101                         <xsl:call-template name="choose-title"/> 
    102                     </gsf:link> 
     104                                <xsl:call-template name="title-with-link"/> 
    103105                </td> 
    104106            </gsf:template> 
     
    130132            <option name="-bookshelf_type" value="always"/> 
    131133            <option name="-partition_type_within_level" value="none"/> 
     134      <option name="-filter_metadata" value="DocType"/> 
     135      <option name="-filter_regex" value="(?i)(niupepa|commentary)"/> 
    132136            <format> 
    133137            <gsf:template match="documentNode"> 
     
    149153                <td valign="top"> 
    150154                    <gsf:metadata name="Title"/> 
    151                     <xsl:text>                  </xsl:text>                 <gsf:metadata format="formatDate" name="Date"/> 
     155                    <xsl:text>                  </xsl:text>                 <i><gsf:metadata format="formatDate" name="Date"/></i> 
    152156                </td> 
    153157            </gsf:template> 
     
    189193Defined in the global format statement 
    190194--> 
    191                         <xsl:call-template name="choose-title"/> 
     195                        <xsl:call-template name="title-plain"/> 
    192196                    </gsf:link> 
    193197                </td> 
     
    211215Defined in the global format statement 
    212216--> 
    213                     <xsl:call-template name="choose-title"/> 
     217                    <xsl:call-template name="title-plain"/> 
    214218                    <gsf:switch> 
    215219                        <gsf:metadata name="Source"/> 
     
    252256Overwriting this template allows you to change the heading of the document. 
    253257--> 
    254 <!-- 
     258 
    255259<gsf:template name="documentHeading"> 
    256260<span style="font-weight:bold; font-size: 120%;"> 
    257 <xsl:call-template name="choose-title"/> 
     261<xsl:call-template name="title-plain"/> 
    258262</span> 
     263<gsf:switch> 
     264<gsf:metadata name="DocType"/> 
     265<gsf:when test="equals" test-value="Abstract"> 
     266<gsf:collectionText name="abstract"/> 
     267</gsf:when> 
     268</gsf:switch> 
    259269</gsf:template> 
    260 --> 
    261270<!-- 
    262271Overwriting 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. 
     
    272281--> 
    273282            <gsf:template name="sectionHeading"> 
    274                 <xsl:call-template name="choose-title"/> 
     283                <xsl:call-template name="title-plain"/> 
    275284            </gsf:template> 
    276285            <gsf:template name="pageTitle"> 
    277286                <xsl:for-each select="/page/pageResponse/document/documentNode"> 
    278                     <xsl:call-template name="choose-title"/> 
     287                    <xsl:call-template name="title-plain"/> 
    279288                </xsl:for-each> 
    280289            </gsf:template> 
     
    309318        <replace bundle="niupepa" key="textsubmat" macro="_textsubmat_" resolve="false" scope="text"/> 
    310319        <replace bundle="niupepa" key="textavail" macro="_textavail_" resolve="false" scope="text"/> 
     320    <replace macro="_httpdocument_&amp;cl=_cgiargcl_&amp;gg=prev&amp;d=" scope="text" text="_libraryname_/collection/_clustername_/document/" resolve="true"/> 
    311321    </replaceList> 
    312322    <serviceRackList><!-- comment out the following serviceRack if you want to disable OAI for this collection -->