steps += array( 'wizard_step50' => lang('Manage mapping'), ); // Field mapping $export = new resources_wizard_export_csv(); $this->mapping_fields = array( 'res_id' => lang('Resource ID'), 'name' => lang('name'), 'short_description' => lang('short description'), 'cat_id' => lang('Category'), 'quantity' => lang('Quantity'), 'useable' => lang('Useable'), 'location' => lang('Location'), 'storage_info' => lang('Storage'), 'bookable' => lang('Bookable'), // Deprecated, but still in DB //'buyable' => lang('Buyable'), //'prize' => lang('Prize'), 'long_description' => lang('Long description'), 'inventory_number' => lang('inventory number'), 'accessory_of' => lang('Accessory of') ); $custom = config::get_customfields('resources', true); foreach($custom as $name => $data) { $this->mapping_fields['#'.$name] = $data['label']; } // Actions $this->actions = array( 'none' => lang('none'), 'update' => lang('update'), 'insert' => lang('insert'), 'delete' => lang('delete'), ); // Conditions $this->conditions = array( 'exists' => lang('exists'), ); } }