# &appname; details

## Veldtypen

Elke verzameling kan een ongelimiteerd aantal velden hebben. &appname; ondersteunt elf typen velden, wat mogelijkheden biedt voor een reeks van verschillende gegevens.

### Eenvoudige tekst

Het meest eenvoudige veldtype is Eenvoudige tekst. Er zijn geen beperkingen op de waarden van de velden en het invoerwidget is de standaard regelbewerking. Dit type is van toepassing op velden waarvan niet verwacht wordt om lange waarden te bevatten, dus zoiets als de auteur of het genre.

### Cijfers

Het type Getal is identiek aan het type eenvoudige tekst, behalve dat het gegevens beperkt is tot iets numerieks. Items zullen numeriek gesorteerd worden in de kolomweergave als Getal als veldkolom wordt aangeklikt. De standaard regelbewerking, met kleine pijlknoppen voor het verhogen of verlagen van de waarde, wordt gebruikt voor invoer. Er zal nooit formattering worden gebruikt.

### &URL;

The &URL; type allows for links to other documents, using the standard &kde; file type associations for opening the linked documents. No validation is done on the actual value of a &URL; field, but non-valid links are not opened. The data entry is a line edit with a button for opening the standard File-Open dialog, but any &URL; may be used. Relative &URL;s are interpreted relative to the location of the data file, once it has been saved.

In the Entry Editor, the label becomes the link, while in the Entry View, an actual hyperlink is used. This field type is convenient for linking to PDF files of bibliographic entries, or to movie reviews, for example. No formatting is ever applied.

Relative &URL;s may also be used. They are interpreted relative to the location of the &appname; data file. In the Entry Editor, the line edit provides auto-completion for local file locations. If you want the &URL; from the &kde; File Selector Dialog Box to be interpreted relative to the document location, then a property for the &URL; field should be set to relative : true.

### Paragraaf

For longer text fields, the Paragraph type offers a larger text edit area, and is always in its own category. A Paragraph field may not have multiple values, nor is it automatically formatted. It cannot be used for grouping. Abstracts, plot summaries, or reviews should be entered using this field type.

### Keuze

When a field should be limited to a few preset values, a Choice type is used. The acceptable values are presented in a drop down box for selection. Obviously, multiple values are not applicable. Fields such as bibliography type or personal rating are Choice-type fields.

Puntkomma's moeten worden gebruikt om de toegestane waarden te scheiden.

### Keuzevakje

For fields which take a yes or no value, the Checkbox type is available. By default, the field is toggled off. Checkbox fields are not formatted and are limited to single values. Internally, the field values are carried as `true` or `false`. Some examples are gift or loaned fields.

### Datum

A Date field can include a day, month, and year. The date is shown in the standard format of YYYY-MM-DD, which allows for easy sorting. The standard &kde; Date Selector may be used to choose the date with the mouse, or it may be entered directly. The field is not required to have non-empty values for the year, month, and day; only the year may be entered, for example. Multiple values are not allowed.

### Tabel

Table fields hold a one or more columns of values. In the Entry Editor, the field is presented using a spreadsheet-like view, with numbered rows. When the last row is selected, an additional row is then added. Auto-completion is not available. This field is useful for a list of chapters in a book, scenes in a movie, or songs in an album. Table fields are always a category by themselves.

The number of columns, up to a maximum of ten, is defined by adding a property to the field definition with the name columns. The columns may be labeled by right-clicking on the header, or by setting a field property named column1, etc.

When using the Entry Editor for Table fields, rows may be rearranged by dragging the mouse while holding the &Ctrl; button. A popup menu is also available by right-clicking on the table, which allows rows to be inserted or removed.

### Afbeelding

Image fields hold an image, of any format supported by &kde;. Some of the typical ones include PNG or JPEG. The image can be saved inside the &appname; data file itself or in the application data directory. The standard &kde; File Selector is used, so you can use a &URL; or just a file available locally. Images can also be dragged from a file manager or browser.

### Waardering

Rating fields show a number of stars to represent a numerical rating for an entry. By default, the rating is a maximum of five. The minimum and maximum may be changed by setting properties in the field definition in the Collection Fields Dialog, named minimum and maximum, respectively.

### Velden voor afgeleide waarde

Fields with derived values are a special case. The field type corresponds to the typical type of value contained in the field, but the value of the field is constructed from other fields using a format string in the field description. For example, if the field has a value template of `%{title} %{year}`, then the value of that field will be the title, followed by the year. This field type is used primarily for the title field in the coin, stamp, trading card, and wine collections. Either the internal field name or the field title may be used in the description for formatting.

To select only a single value for a field with multiple values, add a position index to the template, such as `%{author:1}` for the first author. The position may be negative, counting from the end, so `%{author:-1}` would be the last author. Upper and lower-case values may be used by setting template flags, such as `%{author:1/l}` for lower-case first author and `%{author:1/u}` for upper-case.

## Typen verzamelingen

&appname; supports twelve specific collection types by default: books, bibliographic entries, comic books, videos, music, video games, trading cards, coins, stamps, wines, board games, and file catalogs. In addition, an empty generic collection template is available for any other collectibles. The default collections are only meant to include a general set of fields. You should add, modify, or delete them to fit your needs. The only requirement is that a collection should always have a Title field, so that the Group View works correctly. For some collection types, that is just a derived value field combining two or more of the others.

In general, there's no functional difference between the collection types. You could create a custom collection for your books just as easily as using the default book collection. But &appname; chooses icons based on collection type, and there may be some specialized functionality that is unique to a certain collection, so if you can, you should use the defaults. So, if you want to create a wine collection, but don't like any of the default fields, go ahead and create a default wine collection, then delete all the defaults. That way, &appname; still knows that it's a wine collection.

By default, all the collection types include an ID field, which shows the ID number of the entry. In addition, except for the file catalog, each collection includes fields showing the date that the entry was created in the collection and the last time that it was modified.

### Verzamelingen van boeken

Book collections have 26 default fields: Title, Subtitle, Author, Binding, Purchase Date, Purchase Price, Publisher, Edition, Copyright Year, Publication Year, ISBN#, LCCN#, Pages, Language, Genre, Keywords, Series, Series Number, Condition, Signed, Read, Gift, Loaned, Rating, Front Cover, and Comments.

The ISBN# field is special, since ISBN numbers are automatically formatted and the check-digit is calculated. &appname; recognizes the ISBN field if its internal field name is isbn. If you have deleted it, or need to add it to another type of collection, create the field with the title as ISBN and apply the change, then you can return and modify the title as you want. &appname; creates the internal name based on the initial title, but never changes it if the title is later updated.

### Bibliografieën

Bibliografieën hebben 25 standaard velden: Titel, Itemtype , Auteur, Bibtex-sleutel, Boektitel, Editor, Organisatie, Uitgever, ISBN#, Adres, Editie, Pagina's, Jaar, Tijdschrift, Maand, Nummer, Hoe gepubliceerd, Hoofdstuk, Serie, Serienummer, Volume, Kruisverwijzing, Trefwoorden, Samenvatting en Notities.

Although bibliographic collections are not specifically linked to bibtex, the default set of fields is taken from a typical set of bibtex fields. When exporting to bibtex, a property called bibtex is used for each field to define the corresponding bibtex field. If you add an additional field to a bibliography and want to export it to bibtex, be sure to set the bibtex property.

&appname; does have some specialized functions for bibliographies. Bibtex string macros can be added, modified, or deleted from within &appname; and the bibtex export gives you the option of expanding the macros. Bibtex citations can be pushed to an external application such as LyX or Kile using the so-called lyxpipe.

Book collections can be converted to bibliographies. Default bibtex fields are added, and the bibtex properties are set. This functionality exists primarily to convert old collections, before the bibliography type was separated from the book collection type.

### Verzamelingen van stripboeken

Comic book collections have 22 default fields: Title, Subtitle, Writer, Artist, Series, Issues, Publisher, Edition, Publication Year, Pages, Country, Language, Genre, Keywords, Condition, Purchase Date, Purchase Price, Signed, Gift, Loaned, Front Cover, and Comments.

### Verzamelingen van video's

Videoverzamelingen hebben 30 standaard velden: Titel, Medium, Jaar productie, Certificering, Genre, Regio, Nationaliteit, Formaat, Cast, Director, Producer, Schrijver, Componist, Studio, Taaltracks, Taal ondertiteling, Audio-tracks, Afspeelduur, Beeldverhouding, Breed scherm, Kleurmodus, Director's Cut, Samenvatting plot, Persoonlijke rating, Aankoopdatum, Aankoopprijs, Gift, Geleend, Cover en Toelichting.

Het veld Cast is een tabel met twee kolommen en de naam van de acteur is bedoeld voor de eerste kolom, met de rol in de tweede. The Afspeelduur is bedoeld te zijn in minuten, maar u kunt dat natuurlijk wijzigen.

### Muziekverzamelingen

Muziekverzamelingen hebben 15 standaard velden: Titel, Medium, Artiest, Label, Jaar, Genre, Tracks, Waardering, Koopdatum, Aankoopprijs, Gift, Geleend, Sleutelwoorden, Hoes en Opmerkingen.

### Verzameling van spellen

Videospelenverzamelingen hebben 16 standaard velden: Titel, Platform, Genre, Jaar uitgave, Publisher, Ontwikkelaar, ESRB-rating, Beschrijving, Persoonlijke rating, Voltooid, Aankoopdatum, Aankoopprijs, Gift, Geleend, Cover en Toelichting.

### Kaartverzamelingen

Trading card-verzamelingen hebben 17 standaard velden: Titel, Speler, Team, Merk, Kaartnummer, Jaar, Serie, Kaarttype, Aankoopdatum, Aankoopprijs, Locatie, Gift, Sleutelwoorden, Hoeveelheid, Plaatje voorkant, Plaatje achterkant en Toelichting.

### Muntenverzameling

Muntenverzamelingen hebben 16 standaard velden: Titel, Type, Denominatie, Jaar, Muntmerk, Land, Muntset, Gehalte, Keuringsdienst, Aankoopdatum, Aankoopprijs, Locatie, Gift, Voorkant, Achterkant en Opmerkingen.

### Postzegelverzamelingen

Postzegelverzamelingen hebben 18 standaard velden: Titel, Beschrijving, Denominatie, Land, Jaar van uitgifte, Kleur, Scott#, Waardering, Vervallen, Vertanding, Centerring, Met gom, Aankoopdatum, Aankoopprijs, Locatie, Gift, Afbeelding en Opmerkingen.

### Wijnverzamelingen

Wine collections have 15 default fields. Title, Producer, Appellation, Varietal, Type, Country, Purchase Date, Purchase Price, Location, Quantity, Drink By, Rating, Gift, Label Image, and Comments.

### Board Game Collections

Board game collections have 15 default fields. Title, Genre, Mechanism, Release Year, Publisher, Designer, Number of Players, Description, Rating, Purchase Date, Purchase Price, Gift, Loaned, Cover, and Comments,

### File Catalogs

File catalogs have 14 default fields. Name, &URL;, Description, Volume, Folder, Mimetype, Size, Permissions, Owner, Group, Created, Modified, Meta Info, and Icon,

### Custom Collections

Custom collections have one default field, the Title. They should be used when the collectible item is not one of the default types.