Template für Koha-System Web-URI der Bibliothek kohaurl := $baseurl || "/cgi-bin/koha/"
{$request := form(., {"userid": $username, "password": $password})}
req := request-combine($renew-form, $renew-books!{"item": (.)._item}) kohaurl := $baseurl || "/cgi-bin/koha/", search-keys := {"author": "au,wrdl", "title": "ti", "keywords": "su,wrdl", "isbn": "nb"} { search-params := ("title", "author", "keywords", "year", "isbn", .//select[@name eq "limit"]/(let $name := (switch(@id) case "branchloop" return "libraryBranch" case "language-limit" return "language" default return ()) where $name return {"name": $name, "options": .//option } ) ) } req:=$kohaurl || "opac-search.pl?sort_by=relevance&count=20&" || string-join(( for $key in jn:keys($search-keys) let $value := $book($key) where $value return ("idx="||uri-encode($search-keys($key)), "q="||uri-encode($value), "op=and"), $book.year[.]!("limit-yr=" || uri-encode(.)), ($book?("libraryBranch", "language"))[.]!("limit=" || uri-encode(.)) ), $amp) $search-next-page-available:=$search-result-count > 20,offset:=0 offset := $offset + 20 $search-next-page-available:=$search-result-count > 20 + $offset req:=$kohaurl || "opac-reserve.pl?" || extract($book.home-url, "biblionumber=([0-9]+)") loggedIn:=true() form:=json($b._cancel-form)