{culture := (//input[contains(@name, "Culture")], "de-DE")[1]/@value, vl:delete-current-books() } {extendableCheck := extract(resolve-uri(@href), "^.*PatronAccountModule/") || "PatronAccountService.asmx/IsCatalogueCopyExtendable"}
{ $user-form := form(.), $renew-button := (//input[ends-with(@name, "BtnExtendMediums")])[1]/{"__EVENTTARGET": @name}, $cancel-ordered-button := (//input[ends-with(@name, "BtnCancelReservations")])[1]/{"__EVENTTARGET": @name}, $cancel-provided-button := (//input[ends-with(@name, "BtnCancelReadyForPickup")])[1]/{"__EVENTTARGET": @name} }
{book._copyId := @value, book.id := @value}
?
{book := {"_renewid": @name}} {book.title := .} {book.author := .} {book.category := .} {book.libraryBranch := .} {book.duedate := parse-date(., 'd.m.yyyy')}
*
{book := {"_cancelid": @name, "statusId": "ordered", "cancelable": true()}} {book.title := .} {book.author := .}
*
{book := {"_cancelid": @name, "statusId": "provided", "cancelable": true()}} {book.title := .} {book.author := .}