Configure the columns and values displayed in views

You can define which columns appear in views and how the values in the columns are displayed by default.

The views contain columns which display values. The values are obtained from system properties or indexes defined in the Index Definition document. The columns are defined in the display.xml file. The display.xml file defines which columns are available in the views and how they are displayed.

You define a column as a <key> element inside the <columns> section in the display.xml file. Each <key> contains attributes defining the heading, index name, alignment, sort order, sort type, type of information, visibility, and column width for the column. The index used must be defined in the Index Definition document with the attribute KEEPEXTRACTEDVALUES="True", and be listed as a <field> element in the <summaries> section.

To add columns:

  1. Open the TEXTML Administration perspective by clicking the TEXTML Administration shortcut on the tool bar. If the shortcut is not displayed, follow these steps:
    1. Select Window > Perspective > Open Perspective > Other
    2. Click TEXTML Administration.
    3. Click Open.
  2. In the TEXTML Administration view, double-click the server. If your server is not displayed in the view, you must add it to the view.
  3. When the Connect as dialog opens, type your username and password and click OK.
  4. Double-click the name of your Content Store to open a connection to it.
  5. Locate the display.xml file in the repository's /system/conf folder.
  6. Right-click the file and click Check Out.
  7. Double-click the file to open it in the editor.
  8. Inside the <columns> element, add a <key> element for the column with the following attributes:
    • name: type the name of the index (or system property) as its name is specified in the Index Definition document.
    • label: type the heading to be displayed at the top of the column in the view.
    • width: type the column width in pixels to set the initial size of the column by default.
    • halign: define the type of horizontal alignment for the content in the column. Valid values are: LEFT, RIGHT, CENTER.
    • sortType: define the sort algorithm to be used in the column. Valid values are: ALPHA, DATE, NUMERIC.
    • sortOrder: define the sort order used as the initial order displayed in the column. Valid values are: ASC (ascending), DESC (descending).
    • visibility: type 255. This attribute is required, but obsolete.
    • type: define the type of information displayed in the column. Valid values are:
      • Index: information that is referenced by one of the indexes in the Index Definition document.
      • Property: information (such as size, name, and so on) that is kept in a TEXTML property index.
      • Other: information used as a special case with Locked By.

    For example:

    <key halign="LEFT" label="Title from source language" name="authoringTitle" sortOrder="ASC" sortType="ALPHA" type="Index" visibility="255" width="100"/>
    Tip:

    List the <key> elements in alphabetical order by their name attribute to make the list easier to read.

  9. Save, close, and check in the display.xml file.
  10. Expand the Content Store node to display the Index Definition document.
  11. Right-click Index Definition and select Lock.
  12. Double-click Index Definition to open it in the XML editor.
  13. Locate the <summaries> section.
  14. In the <summary NAME="fullsummary"> element, add a new <field> element inside <fieldlist>.
  15. Define the <field> with the following attributes:
    • Name: type the name (Name attribute value) of the index as it is defined in the <Indexes> section.
    • Type: type either Index for an index defined in the Index Definition or Property for a system or custom document property.
    • Value: type All to retrieve all instances of the value or First to retrieve only the first instance of the value.

    For example:

    <field NAME="authoringTitle" TYPE="Index" VALUE="All"/>
    Tip:

    List the <field> elements in alphabetical order by their name attribute to make the list easier to read.

  16. Save, close, and check in the Index Definition document.
  17. Inform users of the changes and request that they close and reopen their IXIASOFT CCMS Desktop to apply the changes.