# Gegevens importeren en exporteren

&appname; is in staat om een brede verscheidenheid aan gegevensbestanden te im- en exporteren, evenals op verscheidene internetsites te zoeken naar informatie.

## Uit het internet importeren

&appname; kan op verschillende internetsites zoeken met de Internetzoekdialoog. Ingangen kunnen direct worden geïmporteerd en toegevoegd aan uw huidige verzameling. De verschillende leveranciers zijn in te stellen via de Opties voor gegevensbronnen.

Zoekopdrachten kunnen verschillende criteria gebruiken: Titel, Persoon, ISBN, UPC/EAN, LCCN of Trefwoord. Niet alle criteria zijn beschikbaar voor bepaalde gegevensbronnen. De waarden ISBN en LCCN zijn er alleen voor boeken, terwijl de waarden van UPC of EAN van toepassing zijn op elk type item.

Nadat een zoekopdracht is gestart, wordt de knop Zoeken Stop die een zoekopdracht beëindigd. Als er resultaten zijn gevonden, dan worden ze toegevoegd aan de lijst direct onder het zoekvak, waar een item selecteren het resultaat zal tonen zonder het aan de verzameling toe te voegen. Klikken op de knop Item toevoegen zal alle geselecteerde items aan uw verzameling toevoegen. Als de gegevensbron meer resultaten heeft dan in eerste instantie zijn gevraagd , dan wordt de knop Meer resultaten ophalen actief. Klikken op Wissen zal alle huidige resultaten verwijderen en de zoekopdracht resetten.

De Internetzoekdialoog van &appname;
De Internetzoekdialoog van &appname;

Alleen items die overeenkomen met de huidige type verzameling zal worden gevonden. De kolom Beschrijving levert extra informatie over het item, om bijvoorbeeld verschillen aan te geven over video's in verschillende formaten of boeken in verschillende banden. Wanneer een item met succes is toegevoegd aan de verzameling, wordt een vinkje in de eerste kolom van de lijst toegevoegd.

Meerdere items kunnen in een keer worden toegevoegd door de standaard &kde;-methode voor meervoudige selectie te gebruiken, wat gewoonlijk het ingedrukt houden van de toets &Shift; or &Ctrl; inhoudt bij het klikken op een item.

To facilitate the use of barcode scanners, searches can include multiple ISBN/UPC values. Selecting the Multiple ISBN/UPC search check box will disable the search box and enable the Edit ISBN/UPC values... button, which will open a multi-line text entry box. Each ISBN should be entered on a line by itself. After closing the box, each ISBN will be validated for correct formatting. The ISBN validation is able to convert 13-digit EAN values, as well as full UPC codes, to the proper formatting. The ISBN list may also be read from a text file.

## Gegevens importeren

&appname; offers three different actions when importing data. Replace current collection will close the current collection, and create a new one with the data from the imported file. Append to current collection tells &appname; to add all the entries in the imported collection to the current one, and to add any fields which don't currently exist. The Merge collection action is the same as appending, except that each imported entry is compared to the current ones, and any identical entries are skipped. Future plans include an improved heuristic for identifying matching entries, but currently, except for music collections, they must be identical for every field. Music collections compare the artist and album only, and the tracks are merged for matching entries. The audio file importer is able to correctly build track lists by merging entries.

### Gegevens in &appname; importeren

Andere gegevensbestanden van &appname; kunnen geïmporteerd worden. Vervanging van de huidige verzameling door een &appname;-bestand te importeren, is hetzelfde als het bestand zelf openen. De waarde van het importeren van &appname;-gegevens is primair om iets toe te voegen of twee verzamelingen samen te voegen.

### CSV-gegevens worden geïmporteerd

Komma-gescheiden waarden (CSV) invoeren is een algemene manier om gegevens in tabelvorm te im- en exporteren. Elke veldwaarde is gescheiden door een komma, met één item per regel. De veldtitels kunnen meegenomen worden in de eerste regel. Het importprogramma is niet beperkt tot het gebruiken van een komma als scheidingsteken. Elk teken of tekenreeks kan worden gebruikt.

De importdialoog voor een CVS
De importdialoog voor een CVS

First, select the type of collection that you are importing. If you are appending or merging to your open collection, the type is limited to your current collection type. If the first line of the CSV file contains the field titles, click the check box and the importer will automatically compare the titles against the fields in the current collection. If a field title matches, the header for that column changes to show that the column has been assigned to that field. If the file uses a delimiter other than a comma, be sure to change that option accordingly.

In order for &appname; to properly import the file, it must know which field corresponds to each column. If the column only has a number in the header, the data in that column will not be imported. You should assign fields to each column by selecting a column, either by clicking in it or changing the column number itself, then selecting the field to assign from the drop down box and clicking the Assign Field button. If you need to add a new field to the collection, the last item in the drop down box opens the Collection Fields Dialog.

Alleen de eerste vijf regels van het geïmporteerde CSV-bestand worden in de dialoog getoond.

### Gegevens van audio-cd's importeren

&appname; kan de service freedb.org gebruiken om informatie over een &CD; te gebruiken, inclusief de tracklijst. Afhankelijk van uw distributie, kunnen instellingen voor toegang tot de service ingesteld worden in het &kde; &systemsettings;. De artiest, titel, genre, jaar en tracklijst worden allen toegevoegd.

Bovendien, als de schijf &CD;-tekst bevat, dan wordt die informatie gelezen en toegevoegd aan het geïmporteerde item.

### Metagegevens van audiobestanden importeren

&appname; kan een map scannen en de tags voor gewone formaten van audiobestanden lezen, zoals `mp3` en `ogg`. De songs worden ingevoerd in een muziekverzameling, waar elk item een album is. Als de songbestanden het tracknummer bevatten, dan wordt de naam van de song ingevoegd op de juiste plek in de tracklijst. De informatie over de artiest en het genre wordt ook toegevoegd aan het item. Als de tags van de song toelichtingen bevatten, dan worden deze in toelichtingsveld in het item toegevoegd, voorafgegaan door de bestandsnaam.

Als bovendien een map een bestand `.directory` bevat en de mapnaam komt overeen met een albumtitel, dan zal het item `Icon` in het desktop-bestand worden gebruikt als hoes-illustratie van het album.

The audio file metadata importer can recursively scan a folder to find all audio files in any subfolder, though symbolic links are not followed. &appname; uses the TagLib library for reading the audio file metadata, and so can import data from any file type that TagLib understands.

### Importing Alexandria Libraries

Alexandria is an alternate book collection manager for the GNOME desktop environment. The importer offers a choice of importing any of the libraries found in `$`HOME`/.alexandria/`.

### Importing Ant Movie Catalog Data

Ant Movie Catalog is an alternate movie collection manager.

### Importing Bibtex Data

Bibtex is a bibliography format used with the LaTeX document preparation system. Various type of bibliographic references may be included in the file. &appname; imports bibtex files as a Bibliographic collection.

If the bibtex importer encounters fields in the file which are not in the default bibliography collection, they are added as Simple Text fields, with two exceptions. If the field value contains more than 100 characters, it becomes a Paragraph field. If the field value appears to contain a &URL; or a file reference, then a &URL; field is created. &appname; uses an internal copy of the btparse library for parsing the bibtex files.

### Importing Bibtexml Data

Bibtexml is an &XML; representation of bibtex data, and the data from the imported bibtexml file is treated in the same way as bibtex data would be.

### Importing Delicious Library Data

Delicious Library is an alternate collection manager for the &Mac; OS X desktop. &appname; imports a subset of the data used by Delicious Library.

### Importing GCstar Data

GCstar is an alternate collection manager. Importing books, movies, music, coins, games, board games and wine collections is currently supported.

&appname; can also import GCfilms data files. GCfilms is the predecessor of GCstar and was an alternate movie collection manager. Normally, GCfilms data files are found in `$`HOME`/.local/share/gcfilms/`.

### Importing Griffith Data

Griffith is an alternate video collection manager. &appname; is able to import most data from a Griffith database.

### Importing MODS Data

MODS is a format for representing various types of media collections. Currently, only books are imported by &appname;, as a Bibliographic collection.

### Importing PDF Data

If &appname; was compiled with exempi or poppler support, metadata from PDF files can be imported. Metadata may include title, author, and date information, as well as bibliographic identifiers which are then used to update other information.

### Importing Referencer Data

Referencer is a document organizer and bibliography manager for the GNOME desktop. &appname; will import most of the data found in a Referencer database.

### Importing RIS Data

The RIS format is a bibliographic file format used by Reference Manager and others. &appname; imports RIS files as a Bibliographic collection.

### Importing Goodreads Collection

Goodreads is an online social network for readers to track book collections. &appname; can import the list of books in a user's collection, given either the user name or user ID, as long as the collection is set to be publicly accessible.

### Importing File Listings

The best way to create a File Catalog is to import the contents of a folder. The folder may be searched recursively, to add all files found within. This importer is most useful for backup listings and media cataloging, such as &CD; or DVD listings. In addition, image previews of the file contents may be generated, although it can take some time to read a large number of files. The file previews are same as those shown in the &kde; file manager.

### Importing &XML; Data via XSLT

Any &XML; file may be imported into &appname; provided an &XSL; stylesheet is available to convert the file to &appname; format. &appname; automatically loads the stylesheet and performs the &xslt; processing needed to load the file.

## Slepen en neerzetten

Dragging data files to the main &appname; window and dropping them will import the files, just as if the import command was made from the menus. Drag and drop works for the following file formats: Tellico, Bibtex, RIS, and PDF. Importing multiple files at once is also supported.

So, for example, if you want to catalog several PDF files, select them in the file manager and drag them to the &appname; window. &appname; will import as much metadata from the files as it can, and then fetch additional information from various configured Internet sources.

## Gegevens exporteren

When exporting the data in the collection, the entry values may be exported as entered, or with the automatic formatting provided by &appname;. Additionally, the export may be limited to the currently selected entries of the collection as well, where the statusbar shows the number of selected entries.

Exported text files, such as Bibtex or CSV, may use the Unicode (UTF-8) character encoding, or the current locale of the operating system.

General Export Options
General Export Options

### Exporting &XML;

The file format for &appname; data is a zipped &XML; file. Exporting to &XML; merely creates the &XML; file without zipping it. Images may be included in the &XML; file as base64-encoded data in an image element, but doing so can create very large text files.

### Exporting Zip

The standard file format for &appname; is a zipped file, contained the &XML; collection file, and optionally, all the images referenced in the collection. If the images are being stored in the application folder instead, exporting to a Zip file will create a self-contained data file, which includes all the images in the collection.

### Exporting &HTML;

The &HTML; export uses the `tellico2html.xsl` stylesheet. Images are exported to a folder with the same name as the exported &HTML; file with `_files` appended.

The default format is similar to the printed output, and allows various options for modifying the &HTML;. Field headers may be printed at the top of each column, but unfortunately, &kde; does not yet allow the table headers to be repeated on each page. The entries may be grouped as in the Group View, as well.

Additionally, individual files may be created for each entry in the collection, with links created in the top-level &HTML; file. The entry files will be created in the same folder as the images. The entry &HTML; files will use the current stylesheet template, as shown in the Entry View.

&HTML; Export Options
&HTML; Export Options

### Exporting CSV

Comma-separated values (CSV) are a common way of importing and exporting tabular data. Each field value is separated by a comma, with one entry per line. The field titles may be included as headers in the first line. Any character or string other than a comma may also be used to delimit the fields.

CSV Export Options
CSV Export Options

### Exporting Pilot-DB

Pilot-DB is a database format for &PalmOS;. Various desktop applications can read and write Pilot-DB files. Exported `.pdb` files can be transferred to a PDA, and used directly. At the moment, &appname; is not able to import Pilot-DB files.

Pilot-DB Export Options
Pilot-DB Export Options

### Exporting Alexandria

Alexandria is a book collection manager for the GNOME desktop environment. &appname; is able to export a limited subset of book collection fields to the default Alexandria data location.

### Exporting ONIX

ONIX is an &XML; format for representing and communicating book industry product information, primarily for book vendors. &appname; can export book collections using a small subset of ONIX.

### Exporting Bibtex

When exporting to Bibtex, the field values may be escaped with braces or quotation marks. If any string macros are used in the collection, they may optionally be exported as macros or expanded. For &URL; fields, &appname; may enclose the field values with the `\url{...}` tag. Finally, entries with no citation key may be skipped rather than have &appname; auto-generate the key.

Opties voor Bibtex exporteren
Opties voor Bibtex exporteren

### Bibtexml exporteren

Bibtexml is een formaat voor bibtex-gegevens in &XML;.

### GCstar exporteren

GCstar is another movie collection manager. &appname; is able to export most collection types to a GCstar data file.

### Exporting &XML; via &xslt;

Finally, &appname; is able to process its internal &XML; representation of the collection data through an external &XSL; stylesheet before exporting. This type of export may be useful for generating text reports or other file types.

## Working With Citations

When working with a bibliography, citations for the currently selected entries may be generated and used in various other applications. A citation in bibtex format can be copied to the clipboard, and then pasted in a latex file. Bibtex citations can also be pushed to an external application such as LyX or Kile using the so-called lyxpipe.