{
lastSearchedIndex := get("lastSearchedIndex", 0),
lastSearchedIndexWithNavigation := get("lastSearchedIndexWithNavigation", 0),
search-result-count := get("search-result-count", ()),
let $statustext := (id("R06"), id("R03"))!extract(., ".*Treffer(.*)$", 1)[.]
let $numbers := $statustext!extract(., "(?:([0-9]+)\s*(?:-\s*([0-9]+))\s*von\s*)?([0-9]+)", (1,2,3))
return (
if (empty($search-result-count)) then $search-result-count := xs:integer($numbers[last()][.]) else (),
if ($numbers[1] and $numbers[2]) then (
$firstIndex := xs:integer($numbers[1][.]),
$lastIndex := xs:integer($numbers[2][.])
) else let $indices := css(".rList_num")[.]!xs:integer(.)
where exists($indices) or ($lastSearchedIndex > $lastSearchedIndexWithNavigation (:a search increases lastSearchedIndex and we skip this:) )
return (
$firstIndex := $indices[1] ,
$lastIndex := $indices[last()]
)
),
$lastSearchedIndexWithNavigation := $lastSearchedIndex
}
Wir haben seit einiger Zeitvl:raise-timeout(.)
Ihre Sitzung wurde beendetvl:raise-timeout(.)