{mode := @name/string(), switch ($mode) case "vorml" return cancel-form := form(.) case "medkl" return renew-form := form(.) default return vl:raise-internal("Unknown list: " || $mode) } ? ? ? ? ? ? ? ? ? ? {book:={"status": ""}} +
Nr FälligMediennrAVM Statusgültig abgültig bisentliehen bisRang*
{$book._internalId := @name/string()}? {$book.duedate := parse-date(.)} {$book.libraryBranch := join((normalize-space(), .//@title), ", ")} {$book.status := $book.status || (normalize-space()[.]!x"{.} Verlängerungen") } {$book.status := $book.status || (extract(., "[0-9]+")[.]!x"{.} Mahnungen") } {book.id := extract(., "^[^/]+"), book.title := substring-after(., ":"), book.author := extract(., "/([^:]+)", 1), book._internalTitleId := extract(a/@href, "[0-9]+") } {$book.status := $book.status || .} {$book.issuedate := parse-date(.)} {$book.duedate := parse-date(.)} {$book.status := $book.status || " Entliehen bis: " || . } {$book.status := $book.status || " Rang: " || . } {$book.statusId := if ($mode eq "vorml") then "ordered" else if (exists($book._internalId)) then "curious" else "critical" }
Kein Medium Sie haben keine Medien
{vl:raise-login((../preceding::table)[1])}
Status {vl:raise(.)}
{vl:raise(.)}