<dtml-comment> advanced_search_form method User interface for advanced library queries Author: Casey Duncan (casey_duncan@yahoo.com) Dependencies: document_search method nav_links method Arguments: None CSS classes used: document-library help-text </dtml-comment> <dtml-var standard_html_header> <dtml-call expr="setFlag('nav_link_flag', document_id)"> <div class="document-library"> <h2>Advanced Document Search</h2> <p class="help-text"> Enter search criteria in as many document data fields as desired. Entering more criteria will result in a more refined search. Visit the <a href="&dtml.url-search_tips;">search tips</a> page for help creating your search criteria. <dtml-unless no_simple_search> For easier searching, use the <a href="&dtml-URL1;">simple search</a>. </dtml-unless> </p> <form action="document_search"> <input type='hidden' name='batch_size:int' value="20" /> <input type="hidden" name="advanced_search" value="1" /> <table> <tr> <th align="left">Title</th> <td><input name="title:ignore_empty" size="40" value="<dtml-var expr="REQUEST.get('title','')">" /></td> </tr> <tr> <th align="left">Type</th> <td> <select name="type:ignore_empty"> <option value="">All Types</option> <dtml-in name="document_types"> <option value="&dtml-sequence-item;">&dtml-sequence-item;</option> </dtml-in> </select> </td> <tr> <th align="left">Subject Area</th> <td><input name="subject" size="40" value="<dtml-var expr="REQUEST.get('subject','')">" /></td> </tr> <tr> <th align="left">Creator</th> <td><input name="creator" size="40" value="<dtml-var expr="REQUEST.get('creator','')">" /></td> </tr> <tr> <th align="left">Dated</th> <td><b>From:</b> <input name="dated_from" size=10 maxlength=10 value="<dtml-var expr="REQUEST.get('dated_from','')">" /> <b>To:</b> <input name="dated_to" size=10 maxlength=10 value="<dtml-var expr="REQUEST.get('dated_to','')">" /></td> </tr> <dtml-if name="isLibraryTopicIndex"> <dtml-unless expr="meta_type == 'Topic Index Root'"> <tr> <th> </th> <td> <input type="radio" name="super_topics:ignore_empty" id="search_topic" value="&dtml-getTopicId;" checked /> <label for="search_topic">Search only in "&dtml-title;".</label><br /> <input type="radio" name="super_topics:ignore_empty" id="search_all" value="" /> <label for="search_all">Search the entire library.</label><br /> </td> </tr> </dtml-unless> </dtml-if> <tr><td colspan=2> </td></tr> <tr> <th> </th> <td><input type="submit" value=" Begin Search " /></td> </tr> </table> <hr /> <dtml-var name="nav_links"> </div> <dtml-var standard_html_footer>