<t:switch prioritized="true"> <form> <template:meta default-text-matching="regex"/> <DIV class="kontozeile_center"> <TABLE> <tr> <t:siblings-header id="lendings"> <th>Status|Verlänger(ungen|t)|Number of renewals|Verl[.]</th>? <th>Verfasser|Author|Autor</th>? <th>Titel|Title</th> <th>Frist|Due date|Rückgabe|zurückzugeben bis</th> <th>Ausleihdatum</th>? <th>Barcode|^\s*No\s*$|Buchung|Number|Strichcode|barcode|signature</th>? <th>Bibliothek|Branch|Zweigstelle|Bücherei|Library|Location|branch|department|Filiale|Ausleihstelle|place</th>? <th/>* </t:siblings-header></tr> <t:loop> <TR>{$book := {}}<t:siblings id="lendings"> <TD>{$book.status}</TD> <TD>{$book.author}</TD> <TD>{$book.title}</TD> <TD>{$book.duedate := parse-date(.)}</TD> <TD>{$book.issuedate := parse-date(.)}</TD> <TD>{$book.id}</TD> <td>{$book.libraryBranch}</td> <td><a>{if (contains(@href, "vermsg")) then ( if (empty($book.status)) then $book.status := "nicht verlängerbar" else (), $book.statusId := "critical") else ($book.statusId := "curious", $book.renew-link := resolve-uri(@href)) }</a>?</td> </t:siblings></TR> </t:loop> </TABLE> </DIV> <DIV class="kontozeile_center"> <TABLE> <tr> <t:siblings-header id="orders"> <th>Verfasser|Author|Autor</th>? <th>Titel|Title</th>? <th>Available|Bereit|Eingetroffen|Unterwegs|Verfügbar</th>? <th>Abholbar bis|Available until|Zurückgelegt bis|bereit bis</th>? <th>Ausleihstelle|Bibliothek|Branch|Bücherei|Filiale|Library|Location|Zweigstelle|department|place</th>? <th/>* </t:siblings-header> </tr> <t:loop> <TR>{$book := {"statusId": "ordered", "cancelable": false()}} <t:siblings id="orders"> <TD>{$book.author}</TD> <TD>{$book.title}</TD> <td>{$book.statusStr}</td> <td>{$book.duedate:=parse-date(.)}</td> <td>{$book.libraryBranch}</td> <td><a t:condition='contains(@href, "delvor")'>{$book.cancelable := true(), $book.cancel-link := resolve-html(.)}</a>?</td> </t:siblings></TR> </t:loop> </TABLE> </DIV>? </form> <div class="kontomeldung"> { string() ! (if (matches(., "Diese Ausweisnummer (wurde|ist) nicht gefunden")) then vl:raise-login(.) else vl:raise(.)) } </div> </t:switch>