Feature Request

Robby Stephenson robby at periapsis.org
Tue Jun 13 01:13:54 UTC 2017


On 05/23/2017 11:55 AM, JAMES IRVING wrote:
> In Video Collections enhance the output of the field "Running Time" on
> the Detail view so in addition to showing the value of that field it
> concatenates the output of a conversion to Hours & Minutes.
> 
> Something like: 86 (1:26).

If you edit the tellico-common.xsl, you can find a comment down around 
line 190 or so that actually mentions doing something similar. In your 
suggestion, it would look like this:

      <!-- hack for running-time in videos -->
      <xsl:if test="$field='running-time' and 
key('fieldsByName',$field)/@type=6">
       <xsl:text> minutes</xsl:text>
       <xsl:if test="$child > 59">
        <xsl:text> (</xsl:text>
        <xsl:value-of select="floor($child div 60)"/>
        <xsl:text>:</xsl:text>
        <xsl:value-of select="format-number($child mod 60, '00')"/>
        <xsl:text>)</xsl:text>
       </xsl:if>
      </xsl:if>

Robby


More information about the tellico-users mailing list