A recipe used for constructing a URL that points to a resource in its native interface. The URL is constructed using elements of the metadata record made available by the back-end server that points to the resource.

The URL recipes supported by the search UI may contain expressions of the form:

   ${variable-name[pattern/replacement/mode]}

pattern/replacement/mode is a substituting regular expression and is optional.

The expression consists of:

variable-name
Name of the metadata element that will be inserted into the recipe
pattern
A regex pattern, matched against the preceding variable value
replacement
A string for replacing the matched value
mode
matching modifiers, possible values:
  • i - case insensitive match
  • g - global match
  • m - multi-mode match

The replacement and mode are optional when specifying the regex. When replacement is absent all matched values will be substituted with an empty string.

When a variable is missing from metadata record, an empty string is inserted in place of the expression.

Examples

http://sever.com?title=${md-title[\s+//g]}
Constructs the URL and strips all whitespaces from md-title
${md-electronic-url[^url=]}
Strips the stupid url= prefix from the links in Hein records
http://sever.com?title=${md-title[\s+/+/g]}
Substitute all whitespaces with '+' signs, so that for example The Art of Computer Programming becomes The+Art+Of+Computer+Programing.