if (xul_param('edit',{'modal_xulG':true}) == '1') {
- g.edit = true;
+ g.edit = false;
if (g.copies.length > 0) { // When loaded in the unified interface, there may be no copies yet (from the volum/item creator)
// Editor desired, but let's check permissions
- g.edit = false;
try {
var check = g.network.simple_request(
if (g.edit) {
$('caption').setAttribute('label', $('catStrings').getString('staff.cat.copy_editor.caption'));
$('save').setAttribute('hidden','false');
- g.retrieve_templates();
} else {
$('top_nav').setAttribute('hidden','true');
}
+ g.retrieve_templates();
+
} else {
$('top_nav').setAttribute('hidden','true');
}
xulG.refresh_copy_editor = function() {
try {
g.copies = xulG.copies;
+ g.edit = g.copies.length > 0;
+ if (g.edit) {
+ $('caption').setAttribute('label', $('catStrings').getString('staff.cat.copy_editor.caption'));
+ }
g.original_copies = js2JSON( g.copies );
g.hide_copy_notes_button();
for (var i = 0; i < g.applied_templates.length; i++) {