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

	<!-- templates for translating IDs to names -->

    <xsl:template name="accessLevelName">
      	<xsl:param name="accessLevelID" />
        <xsl:if test="$accessLevelID = 1">RoyaltyShare Admin</xsl:if>
        <xsl:if test="$accessLevelID = 2">LEVEL 2</xsl:if>
        <xsl:if test="$accessLevelID = 3">Admin</xsl:if>
        <xsl:if test="$accessLevelID = 4">LEVEL 4</xsl:if>
        <xsl:if test="$accessLevelID = 5">LEVEL 5</xsl:if>
        <xsl:if test="$accessLevelID = 6">Marketing</xsl:if>
        <xsl:if test="$accessLevelID = 7">View Only</xsl:if>
        <xsl:if test="$accessLevelID = 8">LEVEL 8</xsl:if>
        <xsl:if test="$accessLevelID = 9">RoyaltyShare Standard</xsl:if>
        <xsl:if test="$accessLevelID = 10">Standard</xsl:if>
        <xsl:if test="$accessLevelID = 11">Imprint View</xsl:if>
    </xsl:template>


    <xsl:template name="onixCodePublishingStatus">
      	<xsl:param name="statusID" />
      	<xsl:if test="$statusID = '00'">Unspecified</xsl:if>
        <xsl:if test="$statusID = '01'">Cancelled</xsl:if>
        <xsl:if test="$statusID = '02'">Forthcoming</xsl:if>
        <xsl:if test="$statusID = '03'">Postponed indefinitely</xsl:if>
        <xsl:if test="$statusID = '04'">Active</xsl:if>
        <xsl:if test="$statusID = '05'">No longer our product</xsl:if>
        <xsl:if test="$statusID = '06'">Out of stock indefinitely</xsl:if>
        <xsl:if test="$statusID = '07'">Out of print</xsl:if>
        <xsl:if test="$statusID = '08'">Inactive</xsl:if>
        <xsl:if test="$statusID = '09'">Unknown</xsl:if>
        <xsl:if test="$statusID = '10'">Remaindered</xsl:if>
        <xsl:if test="$statusID = '11'">Withdrawn from sale</xsl:if>
        <xsl:if test="$statusID = '12'">Recalled</xsl:if>
        <xsl:if test="$statusID = '13'">Active, but not sold separately</xsl:if>
        <xsl:if test="$statusID = '15'">Recalled</xsl:if>
        <xsl:if test="$statusID = '16'">Temporarily withdrawn from sale</xsl:if>
        <xsl:if test="$statusID = '17'">Permanently withdrawn from sale</xsl:if>
        <xsl:if test="$statusID = '18'">Active, but not sold as set</xsl:if>
    </xsl:template>


    <xsl:template name="priceTypeQualifierName">
        <xsl:param name="id" />
        <xsl:choose>
            <xsl:when test="$id = 0">Unqualified</xsl:when>
            <xsl:when test="$id = 1">Member</xsl:when>
            <xsl:when test="$id = 2">Export</xsl:when>
            <xsl:when test="$id = 3">Reduced</xsl:when>
            <xsl:when test="$id = 4">Voucher</xsl:when>
            <xsl:when test="$id = 5">Consumer</xsl:when>
            <xsl:when test="$id = 6">Corporate</xsl:when>
            <xsl:when test="$id = 7">Reservation</xsl:when>
            <xsl:when test="$id = 8">Promotional</xsl:when>
            <xsl:when test="$id = 9">Linked</xsl:when>
            <xsl:when test="$id = 10">Library</xsl:when>
            <xsl:when test="$id = 11">Education</xsl:when>
            <xsl:when test="$id = 12">Corporate</xsl:when>
            <xsl:when test="$id = 13">Subscription</xsl:when>
            <xsl:when test="$id = 14">School Library</xsl:when>
            <xsl:when test="$id = 15">Academic Library</xsl:when>
            <xsl:when test="$id = 16">Public Library</xsl:when>
            <xsl:otherwise><xsl:value-of select="$id" /></xsl:otherwise>
        </xsl:choose>
    </xsl:template>


</xsl:stylesheet>

