workstation registration tweaks.. layout, help, and NO_SESSION handling
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Apr 2009 02:14:56 +0000 (02:14 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Apr 2009 02:14:56 +0000 (02:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12856 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/server/main/ws_info.xul

index ec26567..a740c69 100644 (file)
 <!ENTITY staff.circ.print_list.line_item.label "Line Item">
 <!ENTITY staff.circ.print_list.footer.label "Footer">
 <!ENTITY staff.main.data.loading "Loading data...">
-<!ENTITY staff.main.ws_info.entry "Enter a workstation name and library to register this client under:">
-<!ENTITY staff.main.ws_info.name "Name">
+<!ENTITY staff.main.ws_info.entry "Enter a workstation name and organization to register this client under.  This will be used for statistics and auditing, and for determining the 'place' where check-ins and check-outs occur.">
+<!ENTITY staff.main.ws_info.name "WS Name">
+<!ENTITY staff.main.ws_info.organization "Organization">
 <!ENTITY staff.main.ws_info.register_btn.label "Register">
 <!ENTITY staff.main.ws_info.register_btn.accesskey "R">
+<!ENTITY staff.main.ws_info.help_btn.label "Help">
+<!ENTITY staff.main.ws_info.help_btn.accesskey "H">
 <!ENTITY staff.cat.bib_brief.record_summary "Record Summary">
 <!ENTITY staff.cat.bib_brief.title "Title:">
 <!ENTITY staff.cat.bib_brief.view_marc "View MARC">
index 625a041..122d17b 100644 (file)
                                        switch(Number(robj.ilsevent)) {
                                                case -1 : g.error.standard_network_error_alert(); break;
                                                case 1703 /* WORKSTATION_NAME_EXISTS */ : /* handled with override request */ break;
+                        case 1001 /* NO_SESSION */ : /* handled with request dialog */ break;
                                                default: g.error.standard_unexpected_error_alert(document.getElementById('commonStrings').getFormattedString('staff.main.gen_offline_widgets.registration.error', ['1']), robj); break;
                                        }
                                } else {
        ]]>
        </script>
 
-       <vbox flex="1" style="background: #993333">
-               <description>
-                       &staff.main.ws_info.entry;
-               </description>
-               <hbox>
-                       <label value="&staff.main.ws_info.name;" control="wsname"/>
-                       <textbox id="wsname"  context="clipboard"/>
-               </hbox>
-               <vbox>
-                       <hbox id="placeholder"/>
-                       <button id="register_btn" label="&staff.main.ws_info.register_btn.label;" accesskey="&staff.main.ws_info.register_btn.accesskey;" oncommand="register();"/>
-               </vbox>
-       </vbox>
+    <vbox flex="1" class="my_overflow">
+        <description id="desc" hidden="true">
+            &staff.main.ws_info.entry;
+        </description>
+            <grid style="border: solid thick red;">
+                <columns>
+                    <column/>
+                    <column/>
+                </columns>
+                <rows>
+                    <row>
+                        <label value="&staff.main.ws_info.name;" control="wsname"/>
+                        <textbox id="wsname"  context="clipboard"/>
+                    </row>
+                    <row>
+                        <label value="&staff.main.ws_info.organization;" control="placeholder"/>
+                        <hbox id="placeholder" flex="1"/>
+                    </row>
+                    <row>
+                        <button id="register_btn" label="&staff.main.ws_info.register_btn.label;" accesskey="&staff.main.ws_info.register_btn.accesskey;" oncommand="register();"/>
+                        <button id="help_btn" label="&staff.main.ws_info.help_btn.label;" accesskey="&staff.main.ws_info.help_btn.accesskey;" oncommand="alert(document.getElementById('desc').textContent); document.getElementById('wsname').focus();"/>
+                    </row>
+                </rows>
+            </grid>
+    </vbox>
 </window>