-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get pagination through document list to work again
- Loading branch information
1 parent
f42b8f6
commit ca478d5
Showing
4 changed files
with
101 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
xquery version "3.1"; | ||
|
||
declare namespace api="https://tei-publisher.com/xquery/api"; | ||
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization"; | ||
declare namespace tei="http://www.tei-c.org/ns/1.0"; | ||
|
||
import module namespace roaster="http://e-editiones.org/roaster"; | ||
import module namespace auth="http://e-editiones.org/roaster/auth"; | ||
import module namespace rutil="http://e-editiones.org/roaster/util"; | ||
import module namespace dapi="http://teipublisher.com/api/documents" at "api/document.xql"; | ||
import module namespace capi="http://teipublisher.com/api/collection" at "api/collection.xql"; | ||
import module namespace sapi="http://teipublisher.com/api/search" at "api/search.xql"; | ||
import module namespace deploy="http://teipublisher.com/api/generate" at "api/generate.xql"; | ||
import module namespace dts="http://teipublisher.com/api/dts" at "api/dts.xql"; | ||
import module namespace iapi="http://teipublisher.com/api/info" at "api/info.xql"; | ||
import module namespace vapi="http://teipublisher.com/api/view" at "api/view.xql"; | ||
import module namespace anno="http://teipublisher.com/api/annotations" at "api/annotations.xql"; | ||
import module namespace iiif="https://e-editiones.org/api/iiif" at "api/iiif.xql"; | ||
import module namespace custom="http://teipublisher.com/api/custom" at "../custom-api.xql"; | ||
import module namespace nlp="http://teipublisher.com/api/nlp" at "api/nlp.xql"; | ||
import module namespace rapi="http://teipublisher.com/api/registers" at "../registers.xql"; | ||
|
||
declare option output:indent "no"; | ||
|
||
let $lookup := function($name as xs:string) { | ||
try { | ||
let $cfun := custom:lookup($name, 1) | ||
return | ||
if (empty($cfun)) then | ||
function-lookup(xs:QName($name), 1) | ||
else | ||
$cfun | ||
} catch * { | ||
() | ||
} | ||
} | ||
let $resp := roaster:route( | ||
( | ||
"modules/custom-api.json", | ||
[% for $api in $apis?* %] | ||
"[[$api]]", | ||
[% endfor %] | ||
"modules/lib/api.json" | ||
), | ||
$lookup) | ||
return | ||
$resp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters