Changeset 33613

Show
Ignore:
Timestamp:
31.10.2019 11:18:44 (2 weeks ago)
Author:
kjdon
Message:

added allowdocumentediting and allowmapgpsediting options, plus also added 'this collection contains x documents...' text to about page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/collect/modelcol/etc/collectionConfig.xml

    r33475 r33613  
    1414    <!-- Global format statement --> 
    1515    <format> 
    16         <gsf:template name="choose-title"> 
    17             <gsf:choose-metadata> 
    18                 <gsf:metadata name="dc.Title"/> 
    19                 <gsf:metadata name="exp.Title"/> 
    20                 <gsf:metadata name="ex.dc.Title"/> 
    21                 <gsf:metadata name="Title"/> 
    22                 <gsf:default>Untitled</gsf:default> 
    23             </gsf:choose-metadata> 
    24         </gsf:template> 
     16      <gsf:template name="choose-title"> 
     17        <gsf:choose-metadata> 
     18          <gsf:metadata name="dc.Title"/> 
     19          <gsf:metadata name="exp.Title"/> 
     20          <gsf:metadata name="ex.dc.Title"/> 
     21          <gsf:metadata name="Title"/> 
     22          <gsf:default>Untitled</gsf:default> 
     23        </gsf:choose-metadata> 
     24      </gsf:template> 
     25      <!-- modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message --> 
     26      <xsl:template name="coll-description"> 
     27        <p><gslib:collectionDescriptionTextAndServicesLinks/></p> 
     28        <xsl:variable name="raw_date"><gslib:collectionMeta name="buildDate"/></xsl:variable> 
     29        <xsl:variable name="formatted_date"><xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/></xsl:variable> 
     30        <xsl:variable name="numdocs"><gslib:collectionMeta name="numDocs"/></xsl:variable> 
     31        <p><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/></p> 
     32      </xsl:template>    
    2533    </format> 
    2634    <search type="lucene"> 
     
    150158        <format> 
    151159            <gsf:option name="TOC" value="true"/> 
    152             <gsf:option name="AllowUserComments" value="false"/> 
     160            <gsf:option name="allowUserComments" value="false"/> 
     161            <gsf:option name="allowDocumentEditing" value="true"/> 
     162            <gsf:option name="allowMapGPSEditing" value="true"/> 
    153163            <!--  
    154164                Overwriting this template allows you to change the heading of the document.