/upstream/templates/lib/search_head.tmpl
Type: /type/template
body: value: $def with (page)

$ advanced = (
$    ('title', _("Title"),_("like 'To Kill A Mockingbird'")),
$    ('author', _("Author"),_("like 'Eudora Welty'")),
$    ('isbn', "ISBN",_("ISBN-10 or ISBN-13")),
$    ('subject', _("Subject"),_("like 'doors' or 'the sky'")),
$    ('place', _("Place"),_("like 'Narnia' or 'Rome'")),
$    ('person', _("Person"),_("like 'Tom Jones'")),
$    ('publisher', _("Publisher"),_("like 'Harper Collins'")),
$ )

    <div class="siteSearch" id="headerSearch">
        <form method="get" action="/search" class="siteSearch">
            <fieldset class="home">
            <legend>Site Search</legend>
            <label for="qtop" class="hidden">Keyword</label>
            <input type="text" name="q" id="qtop" size="35"/>
            <input type="submit" value="$_('Search')"/>

            <div class="searchPlacement">
                <div class="searchFilter">
                    <div class="searchOpener">
                        <a href="javascript:;" id="searchHead">$_("More search options")</a>
                    </div>
                    <div class="searchCheckbox">
                        <input name="has_fulltext" type="checkbox" value="true" id="ftokenstop"/>
                        <label for="ftokenstop">$_("Only show eBooks")</label>
                    </div>
                </div>
            </div>
            </fieldset>
            <div id="topOptions" class="searchOptions hidden">
            <fieldset class="home">
                <legend>Advanced Search</legend>
            $for name, label, placeholder in advanced:
                <div class="formElement">
                <label for="qtop-$name">$label</label><br/>
                <input type="text" name="$name" id="qtop-$name" placeholder="$placeholder" size="35"/>
                </div>
            </fieldset>
            <div class="searchPlus">
                <a href="/search/inside">Search inside books instead</a>?
            </div>
            </div>
        </form>
    </div>


    <div id="headerTools">
        <div id="headerLogin">
        $if ctx.user:
            <div class="hidden">
                <form name='logout' action="$homepath()/account/logout" method="post"></form>
            </div>
            <div id="headerUser">
                <a href="javascript:;" id="userToggle" title="Open Menu"><span class="label">$ctx.user.displayname</span><span class="arrow">&nbsp;&#9660;</span></a>
                <div id="headerUserOpen">
                    <a href="$ctx.user.key">$_("Your Profile")</a>
                    <a href="$homepath()/account/loans">$_("Loans")</a>
                    <a href="$ctx.user.key/lists">$_("Lists")</a>
                    <a href="$homepath()/account">$_("Settings")</a>
                    <a href="#" onclick="document.forms['logout'].submit()">Log out</a>
                </div>
            </div>
        $else:
            <a href="/account/login" class="white">$_("Log in")</a>
            /
            <a href="/account/create">$_("Sign Up")</a>
        </div>
    </div>
plugin: upstream
title: Site Header search
m: edit