Field
Field is a placeholder for information related to the book. The template is constructed from a list of fields. There is no limitation for the number of fields but the real-estate of the label is limited based on the paper definition. The label height is divided equally between the fields. Text that is extending the label size might not be displayed.

The field customization options:
- “Choose field type” one of the following options:
- Alma – the value in the field will be based on a field retrieved from Alma.
- Image – display an image as part of the label. More details on manager images in “Administration” chapter. More details on adding image to template in this chapter.
- Sequence – display a number that is automatically incremental for every new template. More details on sequence number configuration in “Administration” chapter.

- “Choose Source” sets the fields’ source from a list of the available sources that are retrieved in Alma. Used only in “Alma” field type.

- “Choose Image Source” sets the fields’ source from a list of upload images. Used only in “Image” field type.

- “Hide if empty” removes the height of the field if the value is empty. This feature is available for “default” (linear) label layout.
For example, there are 4 fields so each one gets 25% of the entire label height. If field #2 is empty so each of the remaining fields will be assigned with 33.3% of label height.
Used only in “Alma” field type.

- “Display as Barcode” displays the selected field value as barcode in “CODE128” format. The width and height of the displayable barcode can be configured using the 2 dropdowns. Used “Alma” and “Sequence” field types.

- “Choose font” sets the current field’s font from a pre-defined font list.
Additional custom fonts can be added to the drop down.

- “Choose text size” sets the current fields’ text size starting from 8px up to 24px.

- “Choose text align” sets the current fields’ text alignment. The options are: Left, Center, Right, Justify

- “Bold\Italic\Underline” switches are used to set the current fields’ style.

- “Choose text color” changes the current fields’ text color by picking a color from the color picker or entering the colors’ Hex Code.

- “Margins” set custom margins for each field – top, left, bottom and right margins.

- “Regex Filter” – enable users to update the value of the field. This is an advanced feature. For example, displaying the call number in multiple lines according to some logic.

- There are 3 ways to use assign filter:
- Built in functions that can be invoked from this field.
More details and the list of function in “Filter functions” chapter.
- Custom JavaScript functions.
In cases where there is a specific logic, it is possible to write JavaScript function and invoke them for a specific field.
More details on JavaScript functions in “Administration” chapter.
- Regular expression.
The field excepts regular expressions which are executed once the focus of the field changes.
More details on Regex: https://www.regular-expressions.info/quickstart.html
Regex examples:
- Built in functions that can be invoked from this field.
Description | Regex | Input | Output |
Get last word after space | [\s]+([a-zA-Z0-9\u0590-\u05FF_]*)$ | 57 CHE | CHE |
Exclude first word | ([a-zA-Z0-9\u0590-\u05FF_.-\s]*)?\s | 57 CHE TECH | CHE TECH |
- When done creating\editing the new template press the X button on the left navigation bar and press the Actions > Save button to save your changes.
0 Comments