Show
Ignore:
Timestamp:
05/08/08 13:13:02 (2 months ago)
Author:
erickson
Message:

Merged revisions 9534-9535 via svnmerge from
svn://svn.open-ils.org/ILS/trunk

........

r9534 | dbs | 2008-05-08 12:16:48 -0400 (Thu, 08 May 2008) | 2 lines


Patch from Craig Ricciuto to care of XML i18n business in opac.xul

........

r9535 | erickson | 2008-05-08 13:12:40 -0400 (Thu, 08 May 2008) | 1 line


created a fully synchronous version of the login method

........

Location:
branches/acq-experiment
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/acq-experiment

    • Property svnmerge-integrated changed from /trunk:1-9532 to /trunk:1-9535
  • branches/acq-experiment/Open-ILS/web/js/dojo/openils/User.js

    r9443 r9536  
    8787         * Logs in, sets the authtoken/authtime vars, and fetches the logged in user 
    8888         */ 
    89         login : function(args, onComplete) { 
     89        login_async : function(args, onComplete) { 
    9090            var _u = this; 
    9191 
     
    102102                alert(seed); 
    103103                var loginInfo = { 
     104                    username : args.username, 
    104105                    password : hex_md5(seed + hex_md5(args.passwd)),  
    105106                    type : args.type, 
     
    121122            initReq.send(); 
    122123        }, 
     124 
     125        login : function(args) { 
     126            var _u = this; 
     127            if (!args) args = {}; 
     128            if (!args.username) args.username = _u.username; 
     129            if (!args.passwd) args.passwd = _u.passwd; 
     130            if (!args.type) args.type = _u.login_type; 
     131            if (!args.location) args.location = _u.location; 
     132 
     133            var seed = fieldmapper.standardRequest( 
     134                ['open-ils.auth', 'open-ils.auth.authenticate.init'], 
     135                [args.username] 
     136            ); 
     137 
     138            var loginInfo = { 
     139                username : args.username, 
     140                password : hex_md5(seed + hex_md5(args.passwd)),  
     141                type : args.type, 
     142                org : args.location, 
     143            }; 
     144 
     145            var data = fieldmapper.standardRequest( 
     146                ['open-ils.auth', 'open-ils.auth.authenticate.complete'], 
     147                [loginInfo] 
     148            ); 
     149 
     150            _u.authtoken = data.payload.authtoken; 
     151            if (!openils.User.authtoken) openils.User.authtoken = _u.authtoken; 
     152            _u.authtime = data.payload.authtime; 
     153            if (!openils.User.authtime) openils.User.authtime = _u.authtime; 
     154        }, 
     155 
    123156     
    124157        /** 
  • branches/acq-experiment/Open-ILS/web/opac/locale/en-US/lang.dtd

    r9385 r9536  
    18971897<!ENTITY staff.cat.marc_new.load.accesskey "L"> 
    18981898<!ENTITY staff.cat.marc_view.title "MARC View"> 
     1899<!ENTITY staff.cat.opac.menu.label "Actions for this Record"> 
     1900<!ENTITY staff.cat.opac.menu.accesskey "A"> 
     1901<!ENTITY staff.cat.opac.menuitem.opacview.label "OPAC View"> 
     1902<!ENTITY staff.cat.opac.menuitem.opacview.accesskey "O"> 
     1903<!ENTITY staff.cat.opac.menuitem.marcview.label "MARC View"> 
     1904<!ENTITY staff.cat.opac.menuitem.marcview.accesskey "V"> 
     1905<!ENTITY staff.cat.opac.menuitem.marcedit.label "MARC Edit"> 
     1906<!ENTITY staff.cat.opac.menuitem.marcedit.accesskey "E"> 
     1907<!ENTITY staff.cat.opac.menuitem.holding.label "Holdings Maintenance"> 
     1908<!ENTITY staff.cat.opac.menuitem.holding.accesskey "H"> 
     1909<!ENTITY staff.cat.opac.menuitem.viewholds.label "View Holds"> 
     1910<!ENTITY staff.cat.opac.menuitem.viewholds.accesskey "s"> 
     1911<!ENTITY staff.cat.opac.menuitem.addtobucket.label "Add to Bucket"> 
     1912<!ENTITY staff.cat.opac.menuitem.addtobucket.accesskey "B"> 
     1913<!ENTITY staff.cat.opac.menuitem.refreshinterfaces.label "Refresh All Interfaces"> 
     1914<!ENTITY staff.cat.opac.menuitem.dupnewtab.label "Duplicate in New Tab"> 
     1915<!ENTITY staff.cat.opac.menuitem.removeframe.label "Remove this Frame"> 
  • branches/acq-experiment/Open-ILS/xul/staff_client/server/cat/opac.xul

    r7296 r9536  
    1111<!-- LOCALIZATION --> 
    1212<!DOCTYPE window PUBLIC "" ""[ 
    13         <!--#include virtual="/opac/locale/en-US/lang.dtd"--> 
     13        <!--#include virtual="/opac/locale/${locale}/lang.dtd"--> 
    1414]> 
    1515 
     
    332332                <splitter><grippy/></splitter> 
    333333                <menubar id="nav" hidden="true"> 
    334                         <menu label="Actions for this Record" accesskey="A"> 
     334                        <menu label="&staff.cat.opac.menu.label;" accesskey="&staff.cat.opac.menu.accesskey;"> 
    335335                        <menupopup> 
    336                         <menuitem label="OPAC View" accesskey="O" id="opac_view" oncommand="set_opac();"/> 
    337                         <menuitem label="MARC View" accesskey="V" id="marc_view" oncommand="set_marc_view();"/> 
    338                         <menuitem label="MARC Edit" accesskey="E" id="marc_edit" oncommand="set_marc_edit();"/> 
    339                         <menuitem label="Holdings Maintenance" accesskey="H" id="copy_browse" oncommand="set_copy_browser();"/> 
    340                         <menuitem label="View Holds" accesskey="s" id="view_holds" oncommand="set_hold_browser();"/> 
     336                        <menuitem label="&staff.cat.opac.menuitem.opacview.label;" accesskey="&staff.cat.opac.menuitem.opacview.accesskey;" id="opac_view" oncommand="set_opac();"/> 
     337                        <menuitem label="&staff.cat.opac.menuitem.marcview.label;" accesskey="&staff.cat.opac.menuitem.marcview.accesskey;" id="marc_view" oncommand="set_marc_view();"/> 
     338                        <menuitem label="&staff.cat.opac.menuitem.marcedit.label;" accesskey="&staff.cat.opac.menuitem.marcedit.accesskey;" id="marc_edit" oncommand="set_marc_edit();"/> 
     339                        <menuitem label="&staff.cat.opac.menuitem.holding.label;" accesskey="&staff.cat.opac.menuitem.holding.accesskey;" id="copy_browse" oncommand="set_copy_browser();"/> 
     340                        <menuitem label="&staff.cat.opac.menuitem.viewholds.label;" accesskey="&staff.cat.opac.menuitem.viewholds.accesskey;" id="view_holds" oncommand="set_hold_browser();"/> 
    341341                        <menuseparator/> 
    342                         <menuitem label="Add to Bucket" accesskey="B" id="add_bucket" oncommand="add_to_bucket();"/> 
     342                        <menuitem label="&staff.cat.opac.menuitem.addtobucket.label;" accesskey="&staff.cat.opac.menuitem.addtobucket.accesskey;" id="add_bucket" oncommand="add_to_bucket();"/> 
    343343                        <menuseparator/> 
    344                         <menuitem label="Refresh All Interfaces" id="refresh" oncommand="refresh();"/> 
    345                         <menuitem label="Duplicate in New Tab" id="bib_in_new_tab" oncommand="bib_in_new_tab();"/> 
    346                         <menuitem label="Remove this Frame" id="remove_me" oncommand="remove_me();"/> 
     344                        <menuitem label="&staff.cat.opac.menuitem.refreshinterfaces.label;" id="refresh" oncommand="refresh();"/> 
     345                        <menuitem label="&staff.cat.opac.menuitem.dupnewtab.label;" id="bib_in_new_tab" oncommand="bib_in_new_tab();"/> 
     346                        <menuitem label="&staff.cat.opac.menuitem.removeframe.label;" id="remove_me" oncommand="remove_me();"/> 
    347347                        </menupopup> 
    348348                        </menu>