Wiki source code of Excel generator

Last modified by Anniina Kuusijärvi on 2024/02/12 14:11

Show last authors
1 Page in Finnish: [[Excel generator -työkalu>>doc:digit.Kotka Collection Management System.Kotka-kokoelmienhallintajärjestelmä.Kotkan käyttöohjeet.Työkalut.Excel generator -työkalu.WebHome]]
2
3 **Excel generator is a tool for generating a Kotka compatible Excel template**, where you can enter specimen data and import it later to Kotka. The tool can be found in the top menu bar, //Tools → Excel generator// and the direct link to it is [[https:~~/~~/kotka.luomus.fi/excel>>url:https://kotka.luomus.fi/excel||shape="rect"]] (can also be used without signing in to Kotka). Data fields on Kotka web forms correspond to Excel columns. In the tool you can choose which fields/columns to include on your Excel template. This page gives instructions for the usage of the generator tool. See [[doc:digit.Kotka Collection Management System.Manual for Kotka.SpecimensNäytteet.Entering specimen data.Excel templates and import.WebHome]] and [[doc:digit.Kotka Collection Management System.Manual for Kotka.SpecimensNäytteet.Entering specimen data.WebHome]] for more information on actually using the template for data entry.
4
5 == Tool options ==
6
7 On the beginning of the page you can choose **how many units, identifications and types** are repeated on the Excel template (yellow circle below). You can choose 1-3 units, 1-10 identifications and 1-3 type elements. When the hierarchical data model is flattened to two dimensions in Excel, each additional unit/identification/type increases the number of columns, as columns are repeated for each element, and the table becomes wider. If you know the data you are going to enter includes e.g. several determinations/identifications, it is wise to add the necessary amount already when generating the template, so you avoid having to add columns and figure out the correct headers etc. manually. On the other hand if you know you don't need any additional units/identifications/types, it is wise to keep the amount of columns to the minimum.
8
9 You can also select the **language** to use to display the second header row on the table, either English or Finnish.
10
11 == Choosing the fields ==
12
13 The generator tool has fields grouped by Kotka hierarchical structure. To select all fields/columns to the excel, click //Select all// (blue circle below). To select fields on by one, click //Select all// and then //Clear all// and start checking the check boxes for the fields you want to include. Mandatory fields are included to the template automatically. There are many fields that are specific to for example botany specimens and not needed for zoological specimens, and vice versa. **So it is often wise to choose the fields you really need.**
14
15 Hover your mouse over the question mark symbols to see field information.
16
17 Like mentioned above, number of columns is large because Kotka data model has to be flattened to two dimensions, columns and rows in the table. For example measurements fields each have their own column in the template.
18
19 To create the Excel template, click //Make the Excel// //(//orange circle below)//. //Generating the file may take a few moments.
20
21
22 [[image:attach:image2021-12-2_16-55-18.png||data-xwiki-image-style-border="true"]]
23
24 == Important notes and tips ==
25
26 It wise to **take a new Excel template from Kotka every once in a while**, to keep your template up to date (e.g. new fields and new options to dropdowns) Whenever changes are made to existing Kotka fields, we try to make sure old fields from old templates would get mapped to new fields, but it is not always possible to cover all cases.
27
28 //Also note that for now, **some fields can be used when importing data, even though the same fields are not available on all specimen web forms**. For example, Kotka allows you to use field "Earliest epoch or lowest series" when importing zoological data, although the field is available only on palaeontological form. What happens is that Kotka lets you import the data and shows the information in the specimen view, but you are unable to edit the data in that field on the web form.//
29
30 You can keep one template excel with all possible fields as a **source for correct Excel column headers.** You may need to add headers when you are for example editing Kotka data in Excel or transforming data from an old database to Kotka import format.