<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:template name="catalogContractViewLayout">
        <xsl:call-template name="catalogContractView" />
        <xsl:call-template name="buttons" />
    </xsl:template>


    <xsl:template name="catalogContractView">

        <div class="section">
            <xsl:call-template name="successMessageGeneral">
                <xsl:with-param name="successMessage">Album successfully updated!</xsl:with-param>
            </xsl:call-template>
            <xsl:call-template name="albumDetailView" /><br /><br />
        </div>

        <xsl:call-template name="catalogViewTabs" />

        <div class="section withTabs">
            <xsl:call-template name="contractList">
                <xsl:with-param name="contracts" select="Form/AlbumContractList/AlbumContract/Contract" />
                <xsl:with-param name="ccompTest" select="$ccompTest" />
                <xsl:with-param name="type">Album</xsl:with-param>
            </xsl:call-template>
            <br />
            <xsl:if test="$ccompTest = 1">
                <xsl:call-template name="ccompView">
                    <xsl:with-param name="ccomp" select="Form/Album/ControlledComposition" />
                    <xsl:with-param name="lockedRecord">0</xsl:with-param>
                </xsl:call-template>
                <br />
            </xsl:if>
            <br />
        </div>

    </xsl:template>

</xsl:stylesheet>
