Changeset 9356 for trunk/Open-ILS/xul/staff_client/server/cat/marc_new.xul
- Timestamp:
- 04/14/08 20:23:18 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/Open-ILS/xul/staff_client/server/cat/marc_new.xul
r7298 r9356 2 2 <!-- Application: Evergreen Staff Client --> 3 3 <!-- Screen: Example Template for remote xul --> 4 <!-- 5 vim:noet:sw=4:ts=4: 6 --> 4 7 5 8 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// --> … … 12 15 <!-- LOCALIZATION --> 13 16 <!DOCTYPE window PUBLIC "" ""[ 14 <!--#include virtual="/opac/locale/ en-US/lang.dtd"-->17 <!--#include virtual="/opac/locale/${locale}/lang.dtd"--> 15 18 ]> 16 19 … … 39 42 try { 40 43 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 41 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } 44 if (typeof JSAN == 'undefined') { 45 throw( document.getElementById('commonStrings').getString('common.jsan.missing') ); 46 } 42 47 JSAN.errorLevel = "die"; // none, warn, or die 43 48 JSAN.addRepository('/xul/server/'); … … 83 88 'record' : { 'marc' : marc }, 84 89 'save' : { 85 'label' : 'Create Record',90 'label' : $('catStrings').getString('staff.cat.marc_new.create_record.label'), 86 91 'func' : function(new_marcxml) { 87 92 try { 88 93 var robj = g.network.simple_request( 89 94 'MARC_XML_RECORD_IMPORT', 90 [ ses(), new_marcxml, 'System Local', 1 ]95 [ ses(), new_marcxml, $('catStrings').getString('staff.cat.marc_new.system_local.label'), 1 ] 91 96 ); 92 97 if (typeof robj.ilsevent != 'undefined') throw(robj); 93 alert( 'Record created.');98 alert($('catStrings').getString('staff.cat.marc_new.record_created.label')); 94 99 95 100 /* Replace tab with OPAC-view of record */ … … 103 108 xulG.set_tab( 104 109 xulG.url_prefix(urls.XUL_OPAC_WRAPPER), 105 {'tab_name': 'Retrieving title...'},110 {'tab_name': $('catStrings').getString('staff.cat.marc_new.retrieving.label')}, 106 111 content_params 107 112 ); … … 109 114 } catch(E) { 110 115 g.error.standard_unexpected_error_alert( 111 'Error creating MARC record.', E116 $('catStrings').getString('staff.cat.marc_new.creating_record.error'), E 112 117 ); 113 118 } … … 126 131 } catch(E) { 127 132 g.error.standard_unexpected_error_alert( 128 'Error loading MARC template: ' + template_name, 129 E 133 $('catStrings').getFormattedString('staff.cat.marc_new.loading_template.error', [template_name]), E 130 134 ); 131 135 } … … 143 147 </script> 144 148 149 <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" /> 150 <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" /> 151 <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" /> 152 145 153 <vbox flex="1"> 146 154 <hbox id="actions"> 147 155 <hbox id="menu_placeholder" /> 148 <button id="load" label=" Load" accesskey="L"/>156 <button id="load" label="&staff.cat.marc_new.load.label;" accesskey="&staff.cat.marc_new.load.accesskey;"/> 149 157 </hbox> 150 158 <iframe id="marc_editor" flex="1"/>
