{book := {"title": ., "statusId": if (exists($bulkRenew)) then "normal" else "critical"}} | {$book.author} | {$book.id} | {$book.issuedate := parse-date(., "dd/mm/yyyy")} | {$book.duedate := parse-date(., "dd/mm/yyyy")} | { $book._renewLink := extract(@onclick, "renewItem\(['""](.*)['""]\)", 1), $book.statusId := "normal" } | ?|
{$book.status := normalize-space(), if (contains(., "Kann nicht verlängert werden")) then $book.statusId:="critical" else () } |