Ignore:
Timestamp:
2023-08-03T22:23:29+12:00 (10 months ago)
Author:
davidb
Message:

Further development of formatting/display focusing on banner and footer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/thewillow/trunk/sites/thewillow/collect/community-contributions/etc/collectionConfig.xml

    r37866 r37886  
    164164                        <gsf:template match="documentNode-OrigTableTD">
    165165                               <td valign="top">
    166                                         <gsf:link type="document">
    167                                                 <gsf:icon type="document"/>
    168                                         </gsf:link>
     166                                 <gsf:link type="document">
     167                   <gsf:icon type="document"/>
     168                                 </gsf:link>
    169169                               </td>
    170170                               <td>
     
    187187                <span>
    188188                  <gsf:link type="document">
    189                 <gsf:icon type="document"/>
     189                <gsf:choose-metadata>
     190                  <gsf:metadata name="thumbicon"/>
     191                  <gsf:metadata name="srcicon"/>
     192                  <gsf:default><gsf:icon type="document"/></gsf:default>
     193                </gsf:choose-metadata>             
    190194                  </gsf:link>
    191195                </span>
     
    227231                <option name="-enable_cache"/>
    228232                <option name="-thumbnailtype" value="png"/>
    229                 <option name="-thumbnailsize" value="100"/>
    230                 <option name="-screenviewsize" value="750"/>
     233                <option name="-thumbnailsize" value="220"/>
     234                <option name="-screenviewsize" value="845"/> <!-- used to be 750 -->
    231235            </plugin>
    232236            <plugin name="TextPlugin"/>
     
    290294            <option name="-mingroup" value="2"/>
    291295            <option name="-sort" value="tw.VideoOrder"/>
     296
     297            <format>
     298              <gsf:template match="documentNode">
     299                <td style="width: 22px; text-align: center;" valign="top">
     300                  <gsf:link type="document">
     301                <!-- <gsf:metadata name="srcicon"/> -->
     302                <!-- select the original small icon in default -->
     303                <img src='interfaces/default/images/imp4.png' border='0'/>
     304                  </gsf:link>
     305                </td>
     306                <td valign="top">
     307                  <gsf:link type="document">
     308                <xsl:call-template name="choose-title"/>
     309                  </gsf:link>
     310                </td>
     311              </gsf:template>
     312            </format>
    292313        </classifier>
    293314       
     
    311332                <td valign="top">
    312333                    <gsf:link type="document">
    313 <!--
    314 Defined in the global format statement
    315 -->
    316334                        <xsl:call-template name="choose-title"/>
    317 <!--
    318 <gsf:switch>
    319                             <gsf:metadata name="Source"/>
    320                             <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
    321                         </gsf:switch>
    322 -->
    323335                    </gsf:link>
    324336                </td>
     
    368380                <gsf:metadata name="tw.Notes"/>
    369381                <gsf:metadata name="tw.OptHyperlink"/>
     382                <gsf:metadata name="tw.ObjectType"/>               
    370383            </gsf:headMetaTags>
    371 <!--
    372 <gsf:option name="TOC" value="true"/>
    373 -->
    374384            <gsf:option name="TOC"           value="false"/>
    375385            <gsf:option name="disableZoom"   value="true"/>
     
    378388            <gsf:option name="allowDocumentEditing" value="false"/>
    379389            <gsf:option name="allowMapGPSEditing"   value="false"/>
    380 <!--
    381 Overwriting this template allows you to change the heading of the document.
    382 -->
     390
     391            <!--
     392                Overwriting the documentHeading template allows you to change the heading of the document.
     393            -->
    383394            <gsf:template name="documentHeadingShared">
    384395              <xsl:param name="twTitle"/>
     
    413424                </xsl:call-template>
    414425            </gsf:template>
    415 <!--
    416 Overwriting this template can be used to redefine the content of the whole document.
     426            <!--
     427                Overwriting this template can be used to redefine the content of the whole document.
    417428                This is useful for simple documents, but not recommended for more complex documents
    418429                (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing.
    419 -->
     430            -->
    420431            <gsf:template name="documentPre">
    421432<!--
     
    596607                </div>
    597608            </gsf:template>
     609
     610            <gsf:template name="documentNodeVideo">
     611
     612                    <xsl:variable name="thisAssocfilepath">                 
     613                  <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/document/metadataList/metadata[@name='assocfilepath']" />
     614                </xsl:variable>
     615             
     616                <video controls="controls" style="width: 100%;">
     617                  <source type="video/mp4">
     618                    <xsl:attribute name='src'>
     619                      <xsl:value-of
     620                   disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']" />/index/assoc/<xsl:value-of
     621                   disable-output-escaping="yes" select="$thisAssocfilepath" />/<xsl:value-of
     622                   disable-output-escaping="yes" select="metadataList/metadata[@name='srclinkFile']" />
     623                    </xsl:attribute>
     624                  </source>
     625                  <!-- think about adding in an alt text tag -->
     626                  Your browser does not support the video tag.
     627                </video>             
     628            </gsf:template>
     629           
    598630            <gsf:template name="documentContentTopLevel">
    599631                <div id="gs-document">
     
    603635                          <xsl:call-template name="wrappedSectionImage"/>
    604636                    </div>
    605                     <xsl:call-template name="documentPre"/>
     637
     638
    606639                    <gsf:switch>
    607640                        <gsf:metadata name="Plugin"/>
    608                         <gsf:when test="equals" test-value="HTMLPlugin">                        </gsf:when>                     <gsf:when test="equals" test-value="CSVPlugin">
    609                             <i>Original document content not publicly available</i>
     641                        <gsf:when test="equals" test-value="HTMLPlugin">
     642                          <xsl:call-template name="documentPre"/>
     643                        </gsf:when>
     644                        <gsf:when test="equals" test-value="CSVPlugin">
     645                          <xsl:call-template name="documentPre"/>
     646                          <i>Original document content not publicly available</i>
    610647                        </gsf:when>
    611648                        <gsf:otherwise>
     649                         
     650                          <gsf:switch>
     651                            <gsf:metadata name="tw.ObjectType"/>
     652                            <gsf:when test="equals" test-value="Video">
     653                              <xsl:call-template name="documentNodeVideo"/>
     654                            </gsf:when>
     655                            <gsf:otherwise>
    612656                            <div id="gs-document-text">
    613657                                <xsl:call-template name="documentNodeText"/>
    614658                            </div>
     659                            </gsf:otherwise>
     660
     661                          </gsf:switch>                       
    615662                        </gsf:otherwise>
    616663                    </gsf:switch>
Note: See TracChangeset for help on using the changeset viewer.