Chapter 131. Template Terminology

Table of Contents

Data Types
timestamp
link
text
bool
org_unit
id
money
int
interval
Field Transforms

Data Types

The information in Evergreen’s database can be classified in nine data types, formats that describe the type of data and/or its use. These were represented by text-only labels in prior versions of Evergreen. Evergreen 3.0 has replaced the text labels with icons. When building templates in Reports, you will find these icons in the Field Name Pane of the template creation interface.

timestamp

media/datatypes_timestamp.png

An exact date and time (year, month, day, hour, minutes, and seconds). Remember to select the appropriate date/time transform. Raw Data includes second and timezone information, which is usually more than is required for a report.

link

media/datatypes_link.png

A link to another database table. Link outputs a number that is a meaningful reference for the database but not of much use to a human user. You will usually want to drill further down the tree in the Sources pane and select fields from the linked table. However, in some instances you might want to use a link field. For example, to count the number of patrons who borrowed items you could do a count on the Patron link data.

text

media/datatypes_text.png

A field of text. You will usually want to use the Raw Data transform.

bool

media/datatypes_bool.png

True or False. Commonly used to filter out deleted item or patron records.

org_unit

media/datatypes_orgunit.png

Organizational Unit - a number representing a library, library system, or federation. When you want to filter on a library, make sure that the field name is on an org_unit or id data type.

id

media/datatypes_id.png

A unique number assigned by the database to identify each record. These numbers are meaningful references for the database but not of much use to a human user. Use in displayed fields when counting records or in filters.

money

media/datatypes_money.png

A monetary amount.

int

media/datatypes_int.png

Integer (a number)

interval

media/datatypes_interval.png

A period of time.