var obj = this;
obj.scratch_data = {};
+ // If set, save and restore columns as if the tree/list id was the value of columns_saved_under
+ obj.columns_saved_under = params.columns_saved_under;
+
JSAN.use('util.widgets');
obj.printer_context = params.printer_context;
'_save_columns_tree' : function (params) {
var obj = this;
try {
- var id = obj.node.getAttribute('id'); if (!id) {
+ var id = obj.node.getAttribute('id');
+ if (obj.columns_saved_under) { id = obj.columns_saved_under; }
+ if (!id) {
alert("FIXME: The columns for this list cannot be saved because the list has no id.");
return;
}
'_restores_columns_tree' : function (params) {
var obj = this;
try {
- var id = obj.node.getAttribute('id'); if (!id) {
+ var id = obj.node.getAttribute('id');
+ if (obj.columns_saved_under) { id = obj.columns_saved_under; }
+ if (!id) {
alert("FIXME: The columns for this list cannot be restored because the list has no id.");
return;
}
obj.shelf = params['shelf'];
obj.tree_id = params['tree_id'];
+ obj.determine_hold_interface_type();
+
var progressmeter = document.getElementById('progress');
JSAN.use('circ.util');
JSAN.use('util.list'); obj.list = new util.list( obj.tree_id || 'holds_list');
obj.list.init(
{
+ 'columns_saved_under' : 'holds_' + obj.hold_interface_type,
'columns' : columns.concat(
obj.list.fm_columns('acp', {
'*' : { 'expanded_label' : true, 'hidden' : true },