{selections := true()}
{$nameTitle := @name} {$nameAuthor := @name} {$nameIsbn := @name} {$nameKeywords := @name} {$nameYear := @name} { startSearch := form(//form, { $nameTitle: $book.title, $nameAuthor: $book.author, $nameIsbn: $book.isbn, $nameKeywords: $book.keywords, $nameYear: $book.year }), selections := false() }
{search-keys := {}, selects := (), inputs := () } {$inputs := ($inputs, @name)} {$inputs := ($inputs, @name)} {$inputs := ($inputs, @name)} {$inputs := ($inputs, @name)} {$nameYear := @name} { i := 1, startSearch := form(//form, {| { $nameYear: $book.year }, for $key at $i in ("title", "author", "isbn", "keywords") where (boolean($book($key)) and exists($search-keys($key))) return {$selects[$i]: $search-keys($key), $inputs[$i]: $book($key)} |}) }