Changes between Version 2 and Version 3 of UserGuidelines/Importer

08/14/10 17:48:29 (14 years ago)
Shikhar Kohli



  • UserGuidelines/Importer

    v2 v3  
    33== Spreadsheets ==
    44 * [ GSoC project] - not yet merged with Trunk
    5  === Steps ===
     6 === Outline ===
    67  * Spreadsheet importer, in its current form, can be used to import data in .XLS files to the Sahana Eden database
    78  * It has a spreadsheet like interface to enable users to edit spreadsheets in the browser itself.
    89  * Referenced resources, like pr_person in org_staff, can be imported as well.
    910  * Records, which could not be validated, are not inserted into the database. These records are displayed to the users in a spreadsheet interface. Records have at least one field in red.
    10    This is the field with in incorrect value. The format in which errors are displayed is :  <field-name>: <error> . You entered <value entered by user>. Records can then be corrected and re-imported.
     11   This is the field with in incorrect value. The format in which errors are displayed is :  ''' <field-name>: <error> . You entered <value entered by user> '''. Records can then be corrected and re-imported.
    1112  * The spreadsheet importer uses the Jaro-Winkler metric to determine the similarity of two rows. Similarity between rows is checked two at a time. Similar rows are displayed consecutively in another spreadsheet like interface. The user can choose to edit, delete and then import these rows to the database. Errors in these rows are displayed in the same form as described previously.
     14 === Steps ===
     161. Import spreadsheet
     17   * The importer can be accessed at http://<web address>/<application name>/<importer> . This is the landing page for the importer.
     18   * Click on spreadsheet.
     19   * Upload a spreadsheet. Add a name to the spreadsheet record, and a comment if you wish.
     20   * Tips:
     21     * Keep a single worksheet in the spreadsheet.
     22     * Keep the number of rows around 100. More rows require more rendering and processing,therefore more time. This could also cause server requests to time out.
     252. Edit spreadsheet
     26   * You can make changes to the spreadsheet in this step. You can modify cells, delete and add rows.
     27   * You can search for data. Search returns the first occurrence of a the string in the spreadsheet. Substrings in cells are also matched.
     28   * Rows can be deleted by either clicking the cross on the right end of each row.
     29   * A checkbox on the left of each row selects that row. You can click the delete button in the tool bar to delete the select row. You can only select one row at a time.
     30   * Prior to clicking import, select a row which has titles for each column in the spreadsheet. You will be prompted to select one if you haven't done so already.
     323. Select module and resource
     33   * This step of the spreadsheet importer wizard has two sections, so to speak.
     34   * On the left is a list of modules in the Sahana Eden installation. You can select a single module from this list.
     35   * As soon as a selection is  made from the modules list, the panel on the right updates to show which resources are present in that module. You can select one resource.
     36   * When you click the next button, the module fetches resources and fields from the server. Depending upon server speed, this process could take some time. Please be patient during this step.
     384. Mapping columns to fields
     39  * The column titles selected in the second step are displayed next to dropdowns in this step.
     40  * The drop down lists are populated with the fields present in selected resource. There are two types of fields.
     41    * Normal fields.
     42    * Reference fields. These fields are are actually references to different tables in the Eden schema. In the drop down list, they are represented as <field-name> --> <resource-name> --> <field in the nested resource>.
     43      Therefore, reference to a person in org_staff is represented in the drop down as person_id --> pr_person --> first_name etc.
     44  * All columns '''must''' be matched to fields. Otherwise, you cannot proceed.
     45  * The data is extracted from the spreadsheet and then processed for import to the database.
     475. Edit invalid rows
     48  * The database only accepts those records/rows which satisfy validation checks.
     49  * In case some rows are present which do not conform to the validation enforced on the database, they are rejected. Rows in which all fields have valid values are accepted.
     50  * The spreadsheet interface shows only those rows which returned an error. The fields which could not be validated are shown in red. Each row will have '''at least one''' red field.
     51  * Errors are represented as <field-name> : <error message>. You entered <your value>. The text in the entire field has to be replaced with the '''correct''' value.
     52  * If you do not wish to import a row, make sure that it is deleted.
     53  * Click on import to move to the next step.
     556. Edit similar rows
     56  * In large spreadsheets, it is possible that some rows may be similar. The spreadsheet importer determines such rows.
     57  * These rows are represented in a spreadsheet format are displayed. Two consecutive rows (like 1 & 2, 3 & 4) are similar.
     58  * You can edit these rows as you wish. You '''do not''' have to select a row with column titles.
     59  * Click the import button to import these rows.
     617. Edit invalid rows (only those which were flagged as similar)
     62  * In case there are some errors in the fields in the similar rows, they are displayed in the same format as in step 5.
     63  * Operations that can be performed in this step are identical to step 5.
    1365== Ushahidi ==