-<?xml version="1.0"?>
+<?xml version="1.0" encoding="utf-8"?>
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Brief Bib Display -->
+<!--
+vim: noet:sw=4:ts=4:
+-->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- STYLESHEETS -->
function my_init() {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
+ if (typeof JSAN == 'undefined') { throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); }
JSAN.errorLevel = "die"; // none, warn, or die
JSAN.addRepository('/xul/server/');
JSAN.use('util.error'); g.error = new util.error();
JSAN.use('util.network'); g.network = new util.network();
JSAN.use('util.date');
- document.getElementById('caption').setAttribute('tooltiptext','Record ID = ' + docid);
+ document.getElementById('caption').setAttribute('tooltiptext',document.getElementById('catStrings').getFormattedString('staff.cat.bib_brief.record_id' + [docid]));
if (docid > -1) {
);
var t = document.getElementById('caption').getAttribute('label');
if (get_bool( meta.deleted() )) {
- t += ' (Deleted) ';
+ t += ' ' + document.getElementById('catStrings').getString('staff.cat.bib_brief.deleted') + ' ';
document.getElementById('caption').setAttribute('style','background: red; color: white;');
}
if ( ! get_bool( meta.active() ) ) {
- t += ' (Inactive) ';
+ t += ' ' + document.getElementById('catStrings').getString('staff.cat.bib_brief.inactive') + ' ';
document.getElementById('caption').setAttribute('style','background: red; color: white;');
}
document.getElementById('caption').setAttribute('label',t);
} else {
var t = document.getElementById('caption').getAttribute('label');
- t += ' (Not Cataloged) ';
+ t += ' ' + document.getElementById('catStrings').getString('staff.cat.bib_brief.noncat') + ' ';
document.getElementById('caption').setAttribute('style','background: red; color: white;');
document.getElementById('caption').setAttribute('label',t);
}
} catch(E) {
- var err_msg = "!! This software has encountered an error. Please tell your friendly " +
- "system administrator or software developer the following:\ncat/bib_brief.xul\n" + E + '\n';
+ var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['cat/bib_brief.xul', E]);
try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
alert(err_msg);
}
try {
JSAN.use('util.window'); var win = new util.window();
if (docid < 0) {
- alert('Item not cataloged.');
+ alert(document.getElementById("catStrings").getString('staff.cat.bib_brief.noncat.alert'));
} else {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
//win.open( urls.XUL_MARC_VIEW + '?noprint=1&docid=' + docid, 'marc_view', 'chrome,resizable,modal,width=400,height=400');
]]>
</script>
+ <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties"/>
+ <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties"/>
+
<groupbox id="groupbox" flex="1" style="overflow: auto; min-height: 100px;">
<caption label="Record Summary" id="caption"/>
<html:table width="90%">
document.getElementById('checkin_auto').checked = true;
document.getElementById('checkin_auto').hidden = true;
document.getElementById('checkin_effective_date_hbox').hidden = true;
- document.getElementById('caption').setAttribute('label','Hold Capture');
+ document.getElementById('caption').setAttribute('label',document.getElementById('circStrings').getString('staff.circ.checkin.hold_capture'));
document.getElementById('hold_capture_blurb').hidden = false;
- tab_name = 'Hold Capture';
+ tab_name = document.getElementById('circStrings').getString('staff.circ.checkin.hold_capture');
} else {
- tab_name = 'Item Check In';
+ tab_name = document.getElementById('circStrings').getString('staff.circ.checkin.check_in.tab');
}
JSAN.use('circ.checkin'); g.checkin = new circ.checkin();