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

<xsl:template name="searchForm">
    <xsl:if test="Access/bookpub/catalog/search">
        <div class="Header-search">
            <form action="/bookpub/catalog" method="get" id="bookpubHeaderSearch">
                <input type="hidden" name="c" value="search" />
                <div class="MainSearch-item ControlsGroup ControlsGroup-type-input">
                    <label class="InputWrapper InputWrapper-with-icon InputWrapper-with-icon-right ControlsGroup-item BookSearch-query-input">
                        <input class="Input" placeholder="Search Books/Authors by book title, ISBN, or author name" type="text" name="Query" id="bookQuery">
                            <xsl:if test="$area != 'user'">
                                <xsl:attribute name="value"><xsl:value-of select="Params/Query" /></xsl:attribute>
                            </xsl:if>
                        </input>
                        <div class="InputWrapper-icon Icon-trigger" id="bookpubHeaderSearchTrigger" onclick="document.getElementById('bookpubHeaderSearch').submit();">
                            <xsl:call-template name="icon">
                                <xsl:with-param name="type" select="'search'" />
                                <xsl:with-param name="role" select="'action'" />
                            </xsl:call-template>
                        </div>
                    </label>
                </div>
            </form>
        </div>
    </xsl:if>
</xsl:template>

</xsl:stylesheet>
