[open-ils-commits] r9058 - in
trunk/Open-ILS/xul/staff_client/server: cat locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Mar 16 17:26:03 EDT 2008
Author: phasefx
Date: 2008-03-16 16:52:06 -0400 (Sun, 16 Mar 2008)
New Revision: 9058
Added:
trunk/Open-ILS/xul/staff_client/server/locale/en-US/multiclass_search_help.html
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
Log:
Some focus/label tweaks. And a help button point to an html file. Dan and I need to revisit this and come up with a best practice and infrastructure
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2008-03-16 19:16:04 UTC (rev 9057)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2008-03-16 20:52:06 UTC (rev 9058)
@@ -832,9 +832,12 @@
'submit' : function() {
try {
var obj = this;
+ var x = document.getElementById('record_query_input');
+ 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 x = document.getElementById('record_query_input');
- if (x.value == '') return;
var y = document.getElementById('query_status');
x.disabled = true;
if (y) y.value = 'Searching...';
@@ -858,9 +861,16 @@
}(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);
}
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2008-03-16 19:16:04 UTC (rev 9057)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2008-03-16 20:52:06 UTC (rev 9058)
@@ -66,8 +66,11 @@
</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">
Added: trunk/Open-ILS/xul/staff_client/server/locale/en-US/multiclass_search_help.html
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/multiclass_search_help.html (rev 0)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/multiclass_search_help.html 2008-03-16 20:52:06 UTC (rev 9058)
@@ -0,0 +1,23 @@
+<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>
More information about the open-ils-commits
mailing list