|
In our patent example, we not only list the matching patents,
but we link each one to a page that displays the full abstract text
of that patent.
We'd also like to mark up that abstract and show where the user's
query words appeared, in bold. The <fmt>
statement has
this capability with the m
flag, which is used in the patent
example's <details>
function:
<fmt "%mbH" $query $pabstract>
|
The m
flag says that we're going to execute a Metamorph
query - the next argument $query
- against the second argument,
which is the text to mark up and display.
The b
flag can appear after m
, and says that our
query's words are to appear in bold.
Finally, the H
code (not a flag) says that we're printing
a string - $pabstract
- with HTML escapement.
If we searched for solar cells
after June 1982
,
and picked patent #4338482, we'd see our query words in bold in
the patent text:
|