Main -> Documentation -> Open SiteSearch Record Builder -> Customizing DC Templates -> constant.xml File

constant.xml File for DC Databases

 

Contents

Introduction
constant.xml Example
Element Section Layout in constant.xml


Introduction

This document contains an example of the Record Builder constant.xml file for the DC database frameworks (DC(2) or DCQ) in SiteSearch 4.1.2 and the general layout of an element's section in a DC constant.xml file.

A constant.xml file for a DC database includes a section for each element for which you want to define constant data. In this file:

  • <DC> opening and closing tags start and end the file
  • Each element's section begins and ends with opening and closing tags in the form <namespace:element_name>, such as <DC:Publisher> and </DC:Publisher>.
Note:  

The constant data feature is available beginning with SiteSearch 4.1.2.


constant.xml Example

Here is an an example of part of a constant.xml file. It includes constant data for the <DC:Publisher> element and shows how Record Builder uses this information to populate the Publisher element on the Edit Record screen. The table underneath the graphic describes each of the callouts in the graphic.


Excerpts from template.xml

Item

Description

Item 1

Value for the element. Record Builder adds this to the element's text box or list box on the Edit Record screen.

Qualifier 2
Scheme value for the element. This must be one of the scheme values defined for the element in field.xml.
Item 3
Qualifier value for the element. This should be one of the qualifier values defined for the element (for a DC(2) database) or the qualifier associated with the scheme value in Qualifier 2 (for a DCQ database) in field.xml.

Return to Contents

Element Section Layout in constant.xml

The constant.xml example illustrates the general layout of an element's section in constant.xml for a DC database:

<namespace:element_name>
      <RDF:Value>element_value</RDF:Value>
    <DC:Scheme>
       <RDF:Value>scheme_value</RDF:Value>
    </DC:Scheme>
   <DC:Qualifier>
     <RDF:Value>qualifier_value</RDF:Value>
   </DC:Qualifier>
</namespace:element_name>

Return to Contents


See Also

Record Builder and Constant Data
Adding or Removing Constant Data for a DC Database


[Main][Documentation][Support][Technical Reference][Community][Glossary][Search]

Last Modified: