vl:delete-current-books() ? ? ? ? ? ? ? ? ? ? {$book:={},$prestatus := ()} +
^(Title|Titel) ^(Author|Verfasser)^(Due|Fällig)^(Call|Signatur)^(Renew|Verlängern)^(Fines|Gebühren)^(Placed on|Bestellt am)^(Expires|Läuft ab)^((Pick up )?location|Abholstandort)^(Status)^(Modify|Ändern)*
{$book.title := a, $prestatus[] := a/@href!("Details: "||resolve-uri(.)), $book("author") := join(a/following-sibling::node())} {$book.author} {$book.duedate := parse-date(span/@title)} {$book.id := join(node() except span[1])} {$book._item := input/@value, $prestatus[] := span} {$prestatus[] := .} {$book.issueDate := parse-date(span/@title) } {$prestatus[] := . } {$book.libraryBranch} {$prestatus[] := . }
{$book._cancel-form := serialize-json(form(.))}
$book.status := join(reverse($prestatus), "; "), $book.statusId := if (exists($book._cancel-form)) then "ordered" else if (exists($book._item)) then "curious" else "critical"
+ renew-form := (//form[contains(@action, "renew")])[1]/form(.)
{vl:raise-login(.)}