Show
Ignore:
Timestamp:
05/20/08 23:42:34 (5 months ago)
Author:
dbs
Message:

Patch from Craig Ricciuto:

opac.xul changes:

cat.properties changes:

  • Added the strings from opac.xul
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/xul/staff_client/server/cat/opac.xul

    r9534 r9649  
    3333        <script> 
    3434        <![CDATA[ 
     35                function $(id) { return document.getElementById(id); } 
     36                function $w(id,text) { if ($(id)) util.widgets.set_text($(id),text); } 
    3537 
    3638                var docid; var marc_html; var top_pane; var bottom_pane; var opac_frame;  
     
    4547                        try { 
    4648                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
    47                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } 
     49                                        if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); } 
    4850                                JSAN.errorLevel = "die"; // none, warn, or die 
    4951                                JSAN.addRepository('/xul/server/'); 
     
    6769 
    6870                        } catch(E) { 
    69                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " + 
    70                                         "system administrator or software developer the following:\ncat/opac.xul\n" + E + '\n'; 
     71                                var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['cat/opac.xul', E]); 
    7172                                try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); } 
    7273                                alert(err_msg); 
     
    127128                                                                                throw(r); 
    128129                                                                        } else { 
    129                                                                                 alert('Record successfully saved.'); 
     130                                                                                alert( $("catStrings").getString('staff.cat.opac.set_marc_edit.alert') ); 
    130131                                                                        } 
    131132                                                                } catch(E) { 
    132                                                                                 g.error.standard_unexpected_error_alert('Record not likely updated.',E); 
     133                                                                                g.error.standard_unexpected_error_alert( $("catStrings").getString('staff.cat.opac.set_marc_edit.std_unexpected_error'), E ); 
    133134                                                                } 
    134135                                                        } 
     
    321322 
    322323                function refresh() { 
    323                         alert('Not yet implemented.  Work around: Choose Duplicate in New Tab option'); 
     324                        alert( $("catStrings").getString('staff.cat.opac.refresh.function_not_implemented.alert') ); 
    324325                } 
    325326        ]]> 
    326327        </script> 
     328         
     329        <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" /> 
     330        <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" /> 
     331        <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" /> 
    327332 
    328333        <commandset><command id="cmd_forward"/><command id="cmd_back"/></commandset>