[%
WRAPPER html/html;
WRAPPER html/head title='Evergreen';
INCLUDE opac/pages/chunks/css_includes.ttk;
#"";
END;
WRAPPER html/body id='body' onload='pageInit();';
WRAPPER html/center;
lines(2);
img( src='/images/main_logo.jpg');
lines(4);
PROCESS front_search;
END;
INCLUDE opac/pages/chunks/org_tree.ttk;
END;
END;
# ---------------------------------------------------------------------------
# main search form
# ---------------------------------------------------------------------------
BLOCK front_search;
WRAPPER html/div id='front_search_form';
span(id='now_searching_cell', class='front_now_searching');
lines(3);
input( type='hidden', name='target', value='mr_result');
input( type='hidden', name='page', value='0');
input(id='mr_search_query', name='mr_search_query',
type='textarea', size='54' );
#onkeydown='logicNode.mrSearchSubmitOnEnter(event); event.preventDefault = true; event.cancelBubble=true;'); # overwite this onkeydown if !IE XXX
#space(1);
lines(2);
PROCESS stype_selector;
space(2);
PROCESS location_input;
space(2);
PROCESS search_range;
lines(2);
input(type='submit', id='mr_search_button',
value="Search", onclick='alert("help");' );
space(3);
space(3);
lines(3);
anchor( id='login_link', href='?target=my_opac', text = "My OPAC" );
space(3);
anchor( id='adv_search_link', href='?target=advanced_search', text = "Advanced Search" );
END;
END;
# ---------------------------------------------------------------------------
# search type
# ---------------------------------------------------------------------------
BLOCK stype_selector;
WRAPPER html/select name='mr_search_type' id='mr_search_type';
option(value='title', selected='selected', content="Title");
option(value='author', content='Author');
option(value='subject', content='Subject');
option(value='keyword', content='Keyword');
option(value='series', content='Series');
END;
space(2);
WRAPPER html/select name='format' id='mr_search_format';
option(value='all', selected='selected', content="All Formats");
option(value='at', content="Books");
option(value='at-d', content="Large Print Books");
option(value='ij', content="Audiobooks");
option(value='g', content="Video Recording");
option(value='cd', content="Music");
option(value='m', content="Electronic Resources");
END;
END;
# ---------------------------------------------------------------------------
# location button
# ---------------------------------------------------------------------------
BLOCK location_input;
input( type='submit', name='tree_button', value="Location", id='location_select_button');
END;
# ---------------------------------------------------------------------------
# search range
# ---------------------------------------------------------------------------
BLOCK search_range;
WRAPPER html/span;
"Expand search to ";
space(2);
WRAPPER html/select
name='search_range_select'
id='search_range_select'
onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
END;
END;
END;
%]