'submit' : function() {
try {
var obj = this;
- obj.list0.clear();
var x = document.getElementById('record_query_input');
- if (x.value == '') return;
+ if (x.value == '') {
+ setTimeout( function() { obj.controller.view.record_query_input.focus(); obj.controller.view.record_query_input.select(); }, 0 );
+ return;
+ }
+ obj.list0.clear();
var y = document.getElementById('query_status');
x.disabled = true;
if (y) y.value = 'Searching...';
}(resp.ids[i][0])
);
}
+ funcs.push(
+ function() {
+ obj.controller.view.record_query_input.focus();
+ obj.controller.view.record_query_input.select();
+ }
+ );
exec.chain( funcs );
+ } else {
+ setTimeout( function() { obj.controller.view.record_query_input.focus(); obj.controller.view.record_query_input.select(); }, 0 );
}
- obj.controller.view.record_query_input.focus();
} catch(E) {
obj.error.standard_unexpected_error_alert('submit_query_callback',E);
}
</vbox>
<hbox id="record_query_top_ui">
+ <label id="record_query_label" value="Query" accesskey="y" control="record_query_input"/>
<textbox id="record_query_input" flex="1"/>
<button command="cmd_submit_query" label="Submit" accesskey="S"/>
+ <button id="query_help" label="Help" accesskey="H" oncommand="window.open('/xul/server/locale/<!--#echo var='locale' -->/multiclass_search_help.html','multiclass_search_help','chrome,modal,resizable');" >
+ </button>
</hbox>
<hbox id="record_query_bottom_ui">
--- /dev/null
+<html>
+<head><title>Multiclass Search Help</title></head>
+<body onload="window.focus()">
+<p>
+Recognized search keys include:
+</p>
+<blockquote>
+ keyword/kw - search keyword(s)<br/>
+ author/au/name - search author(s)<br/>
+ title/ti - search title<br/>
+ subject/su - search subject<br/>
+ series/se - search series<br/>
+ lang - limit by language (specifiy multiple langs with lang:l1 lang:l2 ...)<br/>
+ site - search at specified org unit, corresponds to actor.org_unit.shortname<br/>
+ sort - sort type (title, author, pubdate)<br/>
+ dir - sort direction (asc, desc)<br/>
+ available - if set to anything other than "false" or "0", limits to available items<br/>
+<br/>
+ keyword, title, author, subject, and series support additional search
+ subclasses, specified with a "|". For example, "title|proper:gone with the wind"<br/>
+</blockquote>
+</body>
+</html>