Changeset 9649 for trunk/Open-ILS/xul/staff_client/server/cat/opac.xul
- Timestamp:
- 05/20/08 23:42:34 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/Open-ILS/xul/staff_client/server/cat/opac.xul
r9534 r9649 33 33 <script> 34 34 <![CDATA[ 35 function $(id) { return document.getElementById(id); } 36 function $w(id,text) { if ($(id)) util.widgets.set_text($(id),text); } 35 37 36 38 var docid; var marc_html; var top_pane; var bottom_pane; var opac_frame; … … 45 47 try { 46 48 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') ); } 48 50 JSAN.errorLevel = "die"; // none, warn, or die 49 51 JSAN.addRepository('/xul/server/'); … … 67 69 68 70 } 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]); 71 72 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); } 72 73 alert(err_msg); … … 127 128 throw(r); 128 129 } else { 129 alert( 'Record successfully saved.');130 alert( $("catStrings").getString('staff.cat.opac.set_marc_edit.alert') ); 130 131 } 131 132 } 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 ); 133 134 } 134 135 } … … 321 322 322 323 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') ); 324 325 } 325 326 ]]> 326 327 </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" /> 327 332 328 333 <commandset><command id="cmd_forward"/><command id="cmd_back"/></commandset>
