|
{$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" }