All Data Types
At this point you will find an example of data preparation in CSV format for each data type that is available in FYLR.
Pools
If you only want to import records into one pool, you do not have to enter the pool in the CSV file, but simply select it in the import settings. However, if you have records that should go in different pools or if you want to change the pool for records that already exist in the system, you must add the pool in the CSV file. You can use the ID, short name or reference of the pool in the CSV file. If no pool is specified for a record in the CSV file, the pool from the import settings is used.
1
Berlin by Night
Pool A
2
Berliner Fernsehturm
3
Berliner Dom
Pool B
In the import mapping, select “_pool” for the column containing the pool and the “ID”, “Short name” or “Reference” field, depending on what you used in your CSV file.
Tags
If you want to import tags, please make sure, that the tags are available in your system. You can use the ID or the display name of the tags in the CSV file.
1
Berlin by Night
TAG A
3
Berliner Dom
TAG B
In the import mapping, select “_tags” for the column containing the tag and the “ID” or “Display Name” field, depending on what you used in your CSV file. On the "Import Settings" tab choose, if the tags should be added to existing tags or should replace them when updating existing records.
Owner
The owner can be given as user id, login, email or reference, or as group id or reference. Only offered when the mask allows editing the owner.
Single Line & Multi Line Text, Simple Text (String)
It is recommended to enclose the texts in double quotation marks. If a text contains a comma, semicolon, backslash, tab or a break, double quotes must be used so that they are not interpreted as column separators.
1
Berlin by Night
The image shows the illuminated Alexanderplatz at night.
signature_2019_001
2
Berlin Cathedral
“The Berlin Cathedral in the midday sun. Many people lie on the lawn in front of the Berlin Cathedral.”
SIgnature_2018_002
3
Berlin from above
Signature_2017_003
In the mapping, only the corresponding target fields have to be selected in each case. There are no further options.
Single Line & Multiline Text (multilingual)
For multilingual fields, the contents for the different languages are stored internally in separate fields. Therefore, the languages must also be written in different columns in the CSV file.
1
German title
English title
Título en español
2
Only a German title is available here
3
Titel in Deutsch und Englisch
Title in German and English
In the mapping, the same target field must first be selected for both columns (i.e. "TITLE"). Then the corresponding language can be selected. If a language is not displayed in the pulldown, it must first be activated by the administrator in the base configuration.
Date, Date + Time
When importing dates, both the German and American formats are supported.
1
2019-12-06
2019-12-09 13:39:00
2
24.12.2019
3
2018-11
2019-12-09
4
2017
In the mapping, only the corresponding target fields have to be selected in each case (i.e. "CREATE DATE"). There are no further options.
Date (Range)
The date range field is characterized by the fact that the values are stored internally in two fields. There is a “from” and “to” field. Therefore, the start and end date must also be written in two columns in the CSV file. Again, the German as well as the American format are accepted.
1
2019-10-01
2019-10-08
2
2016-01
2018-12
3
2009
2019-12-31
In the mapping, the same target field must first be selected for both columns. Then it can be selected whether the data should be written in “from” or “to”.
Number (integer), Decimal Number (2 digits), Double
When importing decimal numbers, both the period and the comma are supported. Thousands separators (point or comma) may not be used currently.
1
1
1.40
2
2
5,80
3
3
35
In the mapping, only the corresponding target fields have to be selected in each case. There are no further options.
Yes/No Field (Boolean)
Fields of type “Yes/No field (Boolean)” are displayed as checkbox in the FYLR frontend. The two states “enabled” and “disabled” can be set by “true” or “1” and “false” or “0” during import. Empty fields in the CSV correspond to “false”.
1
true
2
false
3
Only the corresponding target field has to be selected in the mapping. There are no further options.
Simple Linking to Flat Lists
If a field connects to a list, these links can also be imported via CSV. The record you want to link can, but does not have to exist in the list in FYLR.
1
Persons
2
Buildings
3
Events
In the mapping, first select the corresponding target field. Then select the field from the linked object type. FYLR uses this field to check whether the record already exists in the list. If yes, the existing record will be linked. If not, a new record will be created in the list and linked (provided that the checkbox “Create Linked Records” is activated on the “Import Settings” tab during CSV import).
Simple Linking to Hierarchical Lists
If a field connects to a hierarchical list, these links can also be imported via CSV. The record you want to link can, but does not have to exist in the list in FYLR.
1
Germany > Berlin
2
Ireland > Dublin
3
United Kingdom > Scotland > Glasgow
In the mapping, first select the corresponding target field. Then select the field from the linked object type. FYLR uses this field to check whether the record already exists in the list. If yes, the existing record will be linked. If not, a new record will be created in the list and linked (provided that the checkbox “Create Linked Records” is activated on the “Import Settings” tab during CSV import). When importing hierarchical lists, the separator used can be selected (">" or “/”) to build a hierarchy.
Repeatable Text Fields
If the target field is a so-called nested field (i.e. several entries can be made per record), all records in the CSV file must be written in one cell and separated with a break. Use double quotes to import texts that contain a break.
1
First text Second text Third text
2
“Text that contains a break. Continued after the break." “Text without a break, but with a comma.”
Only the corresponding target field has to be selected in the mapping. There are no further options.
Nested Fields
If the target field is a so-called nested field in which another object type is referenced, all records to be linked in the CSV file must be written in one cell and separated with a break. Use double quotes to import entries that contain a break or separator.
1
Sun Moon Stars
2
“City, Country, River Game” “Children’s Games”
This works even if the linked object type is hierarchical:
1
Germany > Berlin Ireland > Dublin United Kingdom > Scotland > Glasgow
In the mapping, first select the corresponding target field. Then select the field from the linked object type. FYLR uses this field to check whether the record already exists in the list. If yes, the existing record will be linked. If not, a new record will be created in the list and linked (provided that the checkbox “Create Linked Records” is activated on the “Import Settings” tab during CSV import). When importing hierarchical lists, the separator used can still be selected (">” or “/”) to build a hierarchy.
Nested Fields with Multiple Fields
If the target field is a so-called nested field, which contains more than one field, these fields must be divided into individual columns. If more than one record is to be linked to a record, these must again be entered in a cell and separated by a break.
1
IDA123 ID1XYZ IDA1B2C3
Altsystem XY Portal XY
Nested Fields inside Nested Fields
A nested field can contain nested fields of its own. The example below uses a nested field events, where every event has an event_type and two nested fields of its own, dates and places. Which event a date or a place belongs to is decided by the column name.
The column name is the path of the field, with brackets for every nested level. Only the innermost brackets stay empty, every level above them carries the number of the entry it belongs to, starting at 0:
Berlin by Night
Production
1962 1963
Berlin
Publication
2014
Frankfurt
This record is imported with two events: the first one produced in Berlin with the dates 1962 and 1963, the second one published in Frankfurt in 2014.
Three rules are enough to write such a file:
Only the innermost
[]stays empty. It is the level that is filled from a single cell: several values separated by line breaks, exactly as described under Nested Fields. In the example, the two dates of the first event share one cell.Every level above it needs a number. The number decides where the value goes, not the position of the column. All columns named
events[0]…fill the first event, all columns namedevents[1]…the second one. Number the entries consecutively, starting at0.Without a number, all columns are written into the first entry. Column names such as
event1_placeandevent2_placecarry no number in the notation the importer reads, so both columns end up inevents[0], and the second event only receives the fields that sit directly in it (see below).
For fields that sit directly in the outer nested field, such as events[<n>].event_type, the number is optional: those columns are filled in the order in which they appear. Writing the number anyway keeps the file readable, but keep the columns of an entry together and in order.
Files
The import of files is explained in the examples.
Plugins
To import content into Custom Data Fields, it is best to first manually create a record in FYLR and export it as CSV. There you can have a look at the structure of the content. This varies depending on the plugin. Sometimes not all information is needed for the import, but can be added automatically by the Custom-Data-Updater. You can find more information at the respective Plugins.
The following information is sufficient for the GND custom data type:
The following information is sufficient for the GVK custom data type:
Only the corresponding target field has to be selected in the mapping. There are no further options.
Last updated