{$holding.libraryBranch := local:parse-column(.)} |
{$holding.libraryLocation := normalize-space($holding.libraryLocation || " " || local:parse-column(.))} |
{$holding.id := local:parse-column(.)} |
{$holding.statusStr := local:parse-column(.)} |
{translate(local:parse-column(.), " ", "")[.] ! ( $holding.duedate := parse-date(.) ) } |
{translate(local:parse-column(.), " ", "")[.] ! ( $holding.pendingOrders := . ) } |
{$holding.barcode := local:parse-column(.)} |
{$holding.category := local:parse-column(.)} |
{$holding.category := local:parse-column(.)} |
{$holding("Ausleihhinweis!") := local:parse-column(.)} |
|
{let $orderBtn := .//a[contains(@id, "BtnReserve")]
return (
$holding("orderable") := exists($orderBtn),
$orderBtn ! (
$holding("_orderTarget") := extract(@href, "'([^']+)'", 1),
$holding("orderTitle") := $orderBtn,
$book.orderable := false() (: when it can order a specific holding, it does not need to order all :)
)
), $book.holdings[] := $holding
}