Substitution Rules

When you declare parameters in the template file, you can use $-substitution to construct values from the contents of other parameters. For instance, if you wish to create a ZAP template that supports a URL such as: "http:getrecord.zap?id=xxxxxx", you might use something like this:


     term1=$id
     field1=@attr 1=12
    
where the value of the parameter id is used as a search term. Similarly, if you wish to supply the name of the database independently of the hostname, like:

     http:search.zap?id=xxxx&hostname=myhost&db=mydatabase
    
you could do something like:

     target=$myhost/$mydatabase
    
in the def or override sections of your template.