The record sets are not directly accessible from TCL and in order to do record manipulation the functions getMarc (for MARC records) and getGrs (for GRS-1 and XML). The functions take a string of arguments as input where the elements are the tagpath to the record element you want to get but with spaces instead of "/".
For the getMarc function you also have to specify the type of the output you want as the first element in the list of arguments for the function. The valid values are "list" and "field". The field type will give you only the data in the field you requested. List will return a list with the tagpath and the data
It is only meaningful to use getMarc and getGrs in the record and format sections where there are records to manipulate.
Example 10-3. Record manipulation using TCL
The following code
Title: %{html [getMarc field 245 * a]%} |
Title: The Art of Computer Programming |